mirror of
https://github.com/nasa/trick.git
synced 2025-06-18 23:28:26 +00:00
Automatically generate dependencies with SWIG
Like gcc, swig supports all those -M options. Use them to automatically manage *_py.cpp dependencies. Add dependency generation to trickify.mk as well.
This commit is contained in:
@ -458,7 +458,7 @@ void PrintAttributes::printIOMakefile() {
|
||||
<< "\t$(PRINT_COMPILE)" << std::endl
|
||||
<< "\t$(ECHO_CMD)$(TRICK_CPPC) $(TRICK_CXXFLAGS) $(TRICK_SYSTEM_CXXFLAGS) -MMD -MP -c -o $@ $<" << std::endl
|
||||
<< std::endl
|
||||
<< "$(IO_OBJECTS:.o=.d): \%.d: ;" << std::endl
|
||||
<< "$(IO_OBJECTS:.o=.d): ;" << std::endl
|
||||
<< std::endl
|
||||
<< "-include $(IO_OBJECTS:.o=.d)" << std::endl
|
||||
<< std::endl
|
||||
|
Reference in New Issue
Block a user