Building a C-only project ------------------------- Makefile specifies dependencies: .c --> .o (suffix rule) .h --> .o (often auto-generated) CC compiles to .o: Read main .c file Includes .h files (from "project" and from ) Adding LRL to this ------------------ Makefile specifies dependencies: .c --> .o (suffix rule) .lh --> .h (suffix rule [does it work when mixed with normal .h files?]) .h --> .o (often auto-generated. dependency checks need to run after LRL has generated the .lh files) CC compiles to .o: Read main .c file Includes .h files (from "project" and from ) (some of those will be auto-generated) LRLC compiles to .o Read main .lc file Includes .lh files Includes .h files Perhaps change interop syntax into: use "blabla.h"; // *.h = use C interop use ; // <> = special hack in tokenizer OR simply use the pre-processor, even for LRL files? - tricky when C code is pasted inside LRL code - would need to trace pre-processor pastes "Reverse includes" -- Includes from Makefile -------------------------------------------- Instead of writing/generating the makefile from includes in source files, we could parse the Makefile and turn dependencies into includes. This will of course require a Makefile and might be tricky to do with a makefile generator such as Automake.