1 May 2009 23:32
Setting CCFLAGS for a library
Jeremy Cowgar <jeremy <at> cowgar.com>
2009-05-01 21:32:30 GMT
2009-05-01 21:32:30 GMT
I have to set CCFLAGS to contain /dERUNTIME only when building a specific library. For the rest of the time, /dERUNTIME should not be part of the CCFLAGS variable. I tried this: Library runtime : file1.c ; CCFLAGS on runtime = /dERUNTIME $(CCFLAGS) ; and that did not work. The only way I could get file1.c to compile with /dERUNTIME was: CCFLAGS on file1.obj = /dERUNTIME $(CCFLAGS) ; That is both cumbersome and problemsome for me because I use file1.c else where and if ERUNTIME is defined then file1 contains code that will cause problems. So my question is, how can I set the CCFLAGS for all files within a library but not cause all instances of that file to contain those flags? Thanks, Jeremy _______________________________________________ jamming mailing list - jamming <at> maillist.perforce.com http://maillist.perforce.com/mailman/listinfo/jamming
RSS Feed