source: cpp/frams/Makefile-maintain @ 112

Last change on this file since 112 was 109, checked in by sz, 9 years ago

source reorganization (see README)
new feature added: part/joint shapes (see frams/_demos/part_shapes.cpp)

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.