ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/ihost/libstatgrab/Makefile
Revision: 1.13
Committed: Wed May 29 19:41:59 2002 UTC (22 years, 6 months ago) by tdb
Branch: MAIN
CVS Tags: HEAD
Changes since 1.12: +1 -1 lines
State: FILE REMOVED
Error occurred while calculating annotation data.
Log Message:
This ihost now uses autoconf and automake to make a "normal" installation
and distribution ;) It's now far easier to compile. To build from CVS :-
aclocal
autoheader
autoconf
automake -a -c
Then for compiling (end users will only need to do this) :-
./configure
make
make install
To build a distribution :-
make dist

File Contents

# Content
1 # $Id: Makefile,v 1.12 2002/05/17 14:47:58 tdb Exp $
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} ${INCLUDES} -c
14
15 MAKE_LIBRARY = ar cq
16
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:
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
49 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