Last change
on this file since 120 was
109,
checked in by sz, 11 years ago
|
source reorganization (see README)
new feature added: part/joint shapes (see frams/_demos/part_shapes.cpp)
|
File size:
458 bytes
|
Line | |
---|
1 | |
---|
2 | clean: |
---|
3 | ifeq "$(ALL_DIRS)$(ALL_DIRS)" "" |
---|
4 | @echo "Makefile-maintain clean: ALL_DIRS and/or EXTRA_CLEAN_FILES must be defined" |
---|
5 | else |
---|
6 | rm -f $(EXTRA_CLEAN_FILES) $(ALL_DIRS)/*.{a,o,d} |
---|
7 | endif |
---|
8 | |
---|
9 | ALL_DEPS=$(ALL_OBJS:.o=.d) |
---|
10 | |
---|
11 | ifneq "$(MAKECMDGOALS)" "clean" |
---|
12 | -include $(ALL_DEPS) |
---|
13 | endif |
---|
14 | |
---|
15 | depend: $(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.