source: cpp/frams/Makefile-maintain @ 229

Last change on this file since 229 was 138, checked in by sz, 11 years ago

genetic operator example - frams/_demos/genooper_test.cpp

  • Property svn:eol-style set to native
File size: 458 bytes
Line 
1
2clean:
3ifeq "$(ALL_DIRS)$(ALL_DIRS)" ""
4        @echo "Makefile-maintain clean: ALL_DIRS and/or EXTRA_CLEAN_FILES must be defined"
5else
6        rm -f $(EXTRA_CLEAN_FILES) $(ALL_DIRS)/*.{a,o,d}
7endif
8
9ALL_DEPS=$(ALL_OBJS:.o=.d)
10
11ifneq "$(MAKECMDGOALS)" "clean"
12-include $(ALL_DEPS)
13endif
14
15depend: $(ALL_DEPS)
16
17%.d: %.cpp
18        @set -e; rm -f $@; $(CXX) $(CXXFLAGS) -MM -MT $(<:.cpp=.o) $< > $@
19#       g++ $(CXXFLAGS) -MM -MT $(<:.o=.d) $< | sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' > $@
Note: See TracBrowser for help on using the repository browser.