Re: pch.h fun

2005-05-09 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | Angus Leeming wrote: >> But it would appear that this rule in config/common.am isn't doing what >> it's meant to be doing. >> >> PCH_FILE = ./pch.h.gch >> *.C *.cpp: $(PCH_FILE) > | Changing it to: > | # Make the TARGETS depend on the pch.h.gch, not the

Re: pch.h fun

2005-05-04 Thread Angus Leeming
Angus Leeming wrote: > But it would appear that this rule in config/common.am isn't doing what > it's meant to be doing. > > PCH_FILE = ./pch.h.gch > *.C *.cpp: $(PCH_FILE) Changing it to: # Make the TARGETS depend on the pch.h.gch, not the SOURCES! *.o *.lo *.obj: $(PCH_FILE) appears to do the

Re: pch.h fun

2005-05-04 Thread Angus Leeming
Angus Leeming wrote: > However, I find that explicitly passing "-o ./pch.h.gch" to the compiler > does work: Hmmm. Modifying config/common.am, so: pch-file: - $(CXXCOMPILE) -x c++-header $(PCH_SOURCE) -MT $(PCH_FILE) -MD -MP \ --MF "./$(PCH_FILE).Tdep" \ - && mv "./$(PCH_FIL