ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/ihost/libstatgrab/Makefile
(Generate patch)

Comparing projects/cms/source/ihost/libstatgrab/Makefile (file contents):
Revision 1.1 by tdb, Mon May 13 12:05:22 2002 UTC vs.
Revision 1.8 by tdb, Tue May 14 16:47:24 2002 UTC

# Line 2 | Line 2
2  
3   DEFS =
4  
5 < CFLAGS = -g
5 > LIBUKCPROG = ../libukcprog
6  
7 + CFLAGS = -g -I${LIBUKCPROG}
8 +
9   CCFLAGS = ${CFLAGS} ${ARCH_CFLAGS} ${MORE_CFLAGS}
10  
11   CCLINE = ${CC} ${DEFS} ${CCFLAGS} -c
12  
13   MAKE_LIBRARY = ar cq
14  
15 < OBJS = load_stat.o disk_stat.o
15 > OBJS = load_stat.o disk_stat.o os_info.o user_stats.o cpu_stats.o \
16 >       process_stats.o
17  
18   HDRS = statgrab.h
19  
20   LIB = libstatgrab.a
21  
22 < all: ${LIB}
22 > all:
23 >        @echo "Must use one of the following targets :-"
24 >        @echo "  $(MAKE) solaris"
25 >        @echo "  $(MAKE) linux"
26 >        @echo "  $(MAKE) freebsd"
27 >        @echo "  $(MAKE) oldlinux"
28  
29   ${LIB}: ${OBJS}
30          ${MAKE_LIBRARY} $@ ${OBJS}
31  
32 + solaris:
33 +        $(MAKE) ${LIB} DEFS=-DSOLARIS
34 +
35 + linux:
36 +        $(MAKE) ${LIB} DEFS=-DLINUX
37 +
38 + freebsd:
39 +        $(MAKE) ${LIB} DEFS=-DFREEBSD
40 +
41 + oldlinux:
42 +        $(MAKE) ${LIB} DEFS="-DOLDLINUX -DLINUX"
43 +
44   clean:
45          rm -f ${OBJS} ${LIB}
46  
# Line 28 | Line 48 | load_stat.o: load_stat.c ${HDRS}
48          ${CCLINE} load_stat.c
49   disk_stat.o: disk_stat.c ${HDRS}
50          ${CCLINE} disk_stat.c
51 + os_info.o: os_info.c ${HDRS}
52 +        ${CCLINE} os_info.c
53 + user_stats.o: user_stats.c ${HDRS}
54 +        ${CCLINE} user_stats.c
55 + cpu_stats.o: cpu_stats.c ${HDRS}
56 +        ${CCLINE} cpu_stats.c
57 + process_stats.o: process_stats.c ${HDRS}
58 +        ${CCLINE} process_stats.c
59 +

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines