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
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
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