Revision: | 1.1 |
Committed: | Tue Nov 7 02:26:28 2000 UTC (24 years, 1 month ago) by tdb |
Branch: | MAIN |
Log Message: | Makefile (a complex one!) for the load.cc program. |
# | Content |
---|---|
1 | # "Senior Level" Makefile :) |
2 | |
3 | OBJECTS = load.o |
4 | |
5 | CXXFLAGS += -g |
6 | |
7 | %.d : %.cc |
8 | set -e; $(CXX) -M $(CPPFLAGS) $< \ |
9 | | sed 's/\($*\)\.o[ :]*/\1.o $@ : /g' > $@; \ |
10 | [ -s $@ ] || rm -f $@ |
11 | |
12 | load : $(OBJECTS) |
13 | $(LINK.cc) -o $@ $(OBJECTS) |
14 | |
15 | include $(OBJECTS:%.o=%.d) |
16 | |
17 | clean : |
18 | rm -f $(OBJECTS) |
19 | rm -f $(OBJECTS:%.o=%.d) |
20 | rm -f load |
21 |