Last change
on this file since 220 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 | |
---|
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.