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.12 by tdb, Fri May 17 14:47:58 2002 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines