From: groepaz (groepaz_at_gmx.net)
Date: 2001-12-11 14:24:13
Hello Adam, AD> I guess that I am missing your point, but what do you mean with AD> machine-dependant paths in makefiles? anything that would need a change to compile the stuff on another machine. AD> To me it seems quite simple to add a AD> few paths to the makefiles and refrain from usign full pathnames in the AD> #include directives. yes, and i dont even want to see those paths in the makefile :) >> i wrote that in the mail before.... you'll run into troubles when >> using several files of the same name. (and yeah, i tend to do this >> heavily) AD> Having many include files with the same name is definately a problem that can AD> lead to interesting and surprising results. Somehow, one always ends up AD> including the wrong file... One way to fix it is to move such files into AD> dedicated subdirectories. For instance, one usually wants to have a few AD> "debug.h" files for controlling debugging output and such. Instead of always AD> #including "debug.h" and hope to get the right file, I try to put these in AD> subdirectories with descriptive names so that I can #include "proj/debug.h" AD> and "c64/debug.h", "files/debug.h", and so on. well yes, thats almost what i want to do, .... eg i am writing a debugger currently, whose sourcetree looks like +-debugger +-core target independent stuff lives here +-targets +-c64 target specific stuff lives here +-gba +-...etc so, the files contained in /c64 /gba etc are basically the same, the implement same functionality and files have the same names... in each of these directories lives a file "target.h" which includes all files in that directory, different "target.h" files are included by a "targetglue.h" in /targets. what you suggest would ofcoz be a solution, but that'd mean moving some files to different places, or include them from another place - which i dont want :o) however... its not THAT much of a problem anyway.... and if it'll ever be one, i guess i need to fix the assembler myself ;=D -- Best regards, groepaz mailto:groepaz_at_gmx.net ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo_at_musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.
This archive was generated by hypermail 2.1.3 : 2001-12-14 22:05:44 CET