mirror of
https://github.com/nasa/trick.git
synced 2025-06-23 01:08:52 +00:00
Make object .d files order-only prerequisites
This will ensure objects are rebuilt only due to a missing dependency file, not a newer one. Fixes #501.
This commit is contained in:
committed by
dbankieris
parent
9b3813dd1f
commit
143d0f2c41
@ -383,7 +383,7 @@ void PrintAttributes::printIOMakefile() {
|
||||
|
||||
makefile_io_src << " \\\n build/class_map.o" << std::endl
|
||||
<< std::endl
|
||||
<< "$(IO_OBJECTS): \%.o : \%.cpp \%.d" << std::endl
|
||||
<< "$(IO_OBJECTS): \%.o : \%.cpp | \%.d" << std::endl
|
||||
<< "\t$(PRINT_COMPILE)" << std::endl
|
||||
<< "\t@echo $(TRICK_CPPC) $(TRICK_CXXFLAGS) $(TRICK_SYSTEM_CXXFLAGS) $(TRICK_IO_CXXFLAGS) -MMD -MP -c -o $@ $< >> $(MAKE_OUT)" << std::endl
|
||||
<< "\t$(ECHO_CMD)$(TRICK_CPPC) $(TRICK_CXXFLAGS) $(TRICK_SYSTEM_CXXFLAGS) $(TRICK_IO_CXXFLAGS) -MMD -MP -c -o $@ $< 2>&1 | $(TEE) -a $(MAKE_OUT) ; exit $${PIPESTATUS[0]}" << std::endl
|
||||
|
Reference in New Issue
Block a user