# | Line 1 | Line 1 | |
---|---|---|
1 | # Makefile for sysinfo programs | |
2 | ||
3 | CXXFLAGS += -g | |
4 | + | OBJECTS = sysinfo.o hostname.o load.o environment.o |
5 | ||
6 | < | sysinfo: sysinfo.o hostname.o load.o |
7 | < | $(LINK.cc) -o $@ sysinfo.o hostname.o load.o |
6 | > | sysinfo: $(OBJECTS) |
7 | > | $(LINK.cc) -o $@ $(OBJECTS) |
8 | ||
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: | |
15 | < | rm -f *.o |
15 | > | rm -f $(OBJECTS) |
16 | rm -f sysinfo |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |