Hi, >> http://www.cc65.org/doc/make.html > Would you be able to create a Makefile that would allow building from a > sources directory containing arbitrary number of mixed (C and ASM) source > files? > > I mean the location of the directory is the parameter, not each and every > source file... I'm not really sure what you want to express. Could you please elaborate? > AFAIR due to the fact that C files are compiled into asm, which > only then gets assembled into object files. Now I don't remember exactly the > reason but I think it was due to the fact that both dependent and > non-dependent asm files were to be taken into account, which is not a very > typical situation with other compilers. Two solutions to this problem (if I understand you right) come into my mind first: 1. AFAIK coming from the GCC world is the idea to distinguish between '.S' for source assembler files and '.s' for intermediate assembler files. Doing so will work even on a Windows filesystem. 2. Keep GNU make from knowing about the intermediate assembler files by compiling and assembling C sources in a single make recipe and deleting the intermediate assembler file right away. > This sort of "universal" Makefile would be really highly appreciated! If I clearly understand what you're looking for I'm rather optimistic that I can provide a solution. With "universal" you are refering to "both C and assembler sources" ? Regards, Oliver ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.Received on Wed Apr 21 16:28:26 2010
This archive was generated by hypermail 2.1.8 : 2010-04-21 16:28:28 CEST