ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/host/ihost-perl/plugins/libukcprog/Makefile
Revision: 1.1
Committed: Fri Mar 8 14:37:29 2002 UTC (22 years, 8 months ago) by tdb
Branch: MAIN
Log Message:
I'm not usually up for putting third party sources in here, but in this
case I'll make an exception. This is ukcprog, a set of useful C functions
which the ihost plugins Pete's writing uses. It's got a pretty free license
too. I've munged the Makefile around, as all it needs to do now is make the
library, not install anything. The idea is to statically compile the other
programs against this library, making the final binary independent of this
code etc.

File Contents

# User Rev Content
1 tdb 1.1 # $Id: Makefile,v 1.24 1998/05/06 14:29:53 mtr 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