ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/experimental/host/sysinfo/Makefile
Revision: 1.1
Committed: Tue Nov 7 02:26:28 2000 UTC (23 years, 11 months ago) by tdb
Branch: MAIN
Log Message:
Makefile (a complex one!) for the load.cc program.

File Contents

# User Rev Content
1 tdb 1.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