1 |
# $Id: Makefile,v 1.1 2002/03/08 14:37:29 tdb Exp $ UKC |
2 |
|
3 |
# Tidied by tdb for use in i-scream host |
4 |
# -- only builds the library |
5 |
|
6 |
CFLAGS = -g |
7 |
|
8 |
CCFLAGS = ${CFLAGS} ${ARCH_CFLAGS} ${MORE_CFLAGS} |
9 |
|
10 |
CCLINE = ${CC} ${CCFLAGS} -c |
11 |
|
12 |
MAKE_LIBRARY = ar cq |
13 |
|
14 |
OBJS = alloc.o e_malloc.o e_realloc.o errf.o \ |
15 |
formf.o panic.o ssplit.o strf.o strnf.o strsave.o \ |
16 |
fpgetline.o strtol.o config.o ip.o ebuf.o logf.o \ |
17 |
sccsdata.o |
18 |
|
19 |
HDRS = ukcprog.h |
20 |
|
21 |
LIB = libukcprog.a |
22 |
|
23 |
all: ${LIB} |
24 |
|
25 |
${LIB}: ${OBJS} |
26 |
${MAKE_LIBRARY} $@ ${OBJS} |
27 |
|
28 |
clean: |
29 |
rm -f ${OBJS} ${LIB} |
30 |
|
31 |
alloc.o: alloc.c ${HDRS} |
32 |
${CCLINE} alloc.c |
33 |
e_malloc.o: e_malloc.c ${HDRS} |
34 |
${CCLINE} e_malloc.c |
35 |
e_realloc.o: e_realloc.c ${HDRS} |
36 |
${CCLINE} e_realloc.c |
37 |
errf.o: errf.c ${HDRS} |
38 |
${CCLINE} errf.c |
39 |
formf.o: formf.c ${HDRS} |
40 |
${CCLINE} formf.c |
41 |
panic.o: panic.c ${HDRS} |
42 |
${CCLINE} panic.c |
43 |
ssplit.o: ssplit.c ${HDRS} |
44 |
${CCLINE} ssplit.c |
45 |
strf.o: strf.c ${HDRS} |
46 |
${CCLINE} strf.c |
47 |
strnf.o: strnf.c ${HDRS} |
48 |
${CCLINE} strnf.c |
49 |
strsave.o: strsave.c ${HDRS} |
50 |
${CCLINE} strsave.c |
51 |
fpgetline.o: fpgetline.c ${HDRS} |
52 |
${CCLINE} fpgetline.c |
53 |
strtol.o: strtol.c |
54 |
${CCLINE} strtol.c |
55 |
config.o: config.c ${HDRS} |
56 |
${CCLINE} config.c |
57 |
ip.o: ip.c ${HDRS} |
58 |
${CCLINE} ip.c |
59 |
ebuf.o: ebuf.c ${HDRS} |
60 |
${CCLINE} ebuf.c |
61 |
logf.o: logf.c |
62 |
${CCLINE} logf.c |
63 |
sccsdata.o: sccsdata.c ${HDRS} |
64 |
${CCLINE} sccsdata.c |