ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/experimental/host/sysinfo/Makefile
(Generate patch)

Comparing experimental/host/sysinfo/Makefile (file contents):
Revision 1.1 by tdb, Tue Nov 7 02:26:28 2000 UTC vs.
Revision 1.3 by tdb, Tue Nov 7 19:28:18 2000 UTC

# Line 1 | Line 1
1 < # "Senior Level" Makefile :)
1 > # Makefile for sysinfo programs
2  
3 OBJECTS = load.o
4
3   CXXFLAGS += -g
4 + OBJECTS = sysinfo.o hostname.o load.o environment.o
5  
6 < %.d : %.cc
8 <        set -e; $(CXX) -M $(CPPFLAGS) $< \
9 <                | sed 's/\($*\)\.o[ :]*/\1.o $@ : /g' > $@; \
10 <                [ -s $@ ] || rm -f $@
11 <
12 < load : $(OBJECTS)
6 > sysinfo: $(OBJECTS)
7          $(LINK.cc) -o $@ $(OBJECTS)
8  
9 < include $(OBJECTS:%.o=%.d)
9 > sysinfo.o: sysinfo.cc hostname.hh load.hh
10 > hostname.o: hostname.cc hostname.hh
11 > load.o: load.cc load.hh
12 > environment.o: environment.cc environment.hh
13  
14 < clean :
14 > clean:
15          rm -f $(OBJECTS)
16 <        rm -f $(OBJECTS:%.o=%.d)
20 <        rm -f load
21 <
16 >        rm -f sysinfo

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines