equal
deleted
inserted
replaced
|
1 CC = gcc |
|
2 CPP = g++ |
|
3 STRIP = strip -s |
|
4 INSTALL = cp -f |
|
5 RM = rm -f |
|
6 CFLAGS = -Wall -Wstrict-prototypes |
|
7 INCLUDE = -I/usr/local/include |
|
8 LDFLAGS = -L/usr/local/lib/ -llsf -Wl,--rpath,lib |
|
9 |
|
10 TARGET = progs |
|
11 |
|
12 .c.o: |
|
13 $(CC) -c $(CFLAGS) $(INCLUDE) -o $@ $< |
|
14 |
|
15 all: progs |
|
16 |
|
17 progs: cpuid.o main.o digest.o dump.o list.o |
|
18 $(CC) $(LDFLAGS) digest.o -o digest |
|
19 $(CC) $(LDFLAGS) dump.o -o dump |
|
20 $(CC) $(LDFLAGS) cpuid.o main.o -o cpuid |
|
21 $(CC) $(LDFLAGS) list.o -o list |
|
22 |
|
23 $(STRIP) digest |
|
24 $(STRIP) cpuid |
|
25 $(STRIP) dump |
|
26 $(STRIP) list |
|
27 |
|
28 .PHONY: clean distclean |
|
29 |
|
30 clean: |
|
31 $(RM) *.o |
|
32 $(RM) *~ |
|
33 $(RM) digest cpuid dump list |
|
34 |
|
35 distclean: |
|
36 @make clean |
|
37 |
|
38 install: progs |
|
39 $(INSTALL) digest $(HOME)/bin/ |
|
40 $(INSTALL) cpuid $(HOME)/bin/ |
|
41 $(INSTALL) dump $(HOME)/bin/ |
|
42 $(INSTALL) list $(HOME)/bin/ |
|
43 |
|
44 uninstall: |
|
45 $(RM) $(HOME)/bin/digest |
|
46 $(RM) $(HOME)/bin/list |
|
47 $(RM) $(HOME)/bin/cpuid |
|
48 $(RM) $(HOME)/bin/dump |
|
49 |