Revision: | 1.1 |
Committed: | Mon May 13 12:05:22 2002 UTC (22 years, 6 months ago) by tdb |
Branch: | MAIN |
Log Message: | Makefiles for both ihost and libstatgrab. Should work, but the code isn't complete enough to allow full testing yet. |
# | User | Rev | Content |
---|---|---|---|
1 | tdb | 1.1 | # $Id$ |
2 | |||
3 | DEFS = | ||
4 | |||
5 | CFLAGS = -g | ||
6 | |||
7 | CCFLAGS = ${CFLAGS} ${ARCH_CFLAGS} ${MORE_CFLAGS} | ||
8 | |||
9 | CCLINE = ${CC} ${DEFS} ${CCFLAGS} -c | ||
10 | |||
11 | MAKE_LIBRARY = ar cq | ||
12 | |||
13 | OBJS = load_stat.o disk_stat.o | ||
14 | |||
15 | HDRS = statgrab.h | ||
16 | |||
17 | LIB = libstatgrab.a | ||
18 | |||
19 | all: ${LIB} | ||
20 | |||
21 | ${LIB}: ${OBJS} | ||
22 | ${MAKE_LIBRARY} $@ ${OBJS} | ||
23 | |||
24 | clean: | ||
25 | rm -f ${OBJS} ${LIB} | ||
26 | |||
27 | load_stat.o: load_stat.c ${HDRS} | ||
28 | ${CCLINE} load_stat.c | ||
29 | disk_stat.o: disk_stat.c ${HDRS} | ||
30 | ${CCLINE} disk_stat.c |