|
|
1.1 root 1: # $Header: Makefile,v 2.0 85/11/21 07:22:01 jqj Exp $
2: #
3: # $Log: Makefile,v $
4: # Revision 2.0 85/11/21 07:22:01 jqj
5: # 4.3BSD standard release
6: #
7: # Revision 1.3 85/11/20 12:28:16 jqj
8: # 4.3BSD standard release
9: #
10: # Revision 1.2 85/10/21 12:45:32 jqj
11: # Gould version: -g option breaks the compiler, so build -lcourier without
12: # it.
13: #
14: # Revision 1.1 85/10/18 08:52:09 jqj
15: # Initial revision
16: #
17: # Revision 1.5 85/03/26 06:08:22 jqj
18: # Revised public alpha-test version, released 26 March 1985
19: #
20: # Revision 1.4 85/03/11 16:36:33 jqj
21: # Public alpha-test version, released 11 March 1985
22: #
23: # Revision 1.3 85/03/11 16:34:14 jqj
24: # Public alpha-test version, released 11 March 1985
25: #
26:
27: SRCS= client.c server.c readwrite.c misc.c bdt.c names.c options.c \
28: lookahead.c sppclose.c getcourierent.c getcservice.c except.c
29: OBJS= client.o server.o readwrite.o misc.o bdt.o names.o options.o \
30: lookahead.o sppclose.o getcourierent.o getcservice.o except.o
31: HDRS= courier.h courierconnection.h courierdb.h except.h \
32: realcourierconnection.h
33: #CFLAGS= -g -DDEBUG -I.
34: CFLAGS= -O -I.
35: DESTDIR=
36: RCSREV=
37: RCSNAME=current
38: INCLUDE = ${DESTDIR}/usr/include/xnscourier
39: OUT = ${DESTDIR}/usr/local/lib/libcourier.a
40: OUT_P = ${DESTDIR}/usr/local/lib/libcourier_p.a
41: CRLIB = ${DESTDIR}/usr/new/lib/xnscourier
42:
43: .c.o:
44: ${CC} -c ${CFLAGS} -p $*.c
45: mv $*.o profiled/$*.o
46: ${CC} -c ${CFLAGS} $*.c
47:
48: install: all
49: -mkdir ${INCLUDE}
50: install -c -m 644 courier.h ${INCLUDE}
51: install -c -m 644 courierdb.h ${INCLUDE}
52: install -c -m 644 realcourierconnection.h ${INCLUDE}
53: install -c -m 644 courierconnection.h ${INCLUDE}
54: install -c -m 644 except.h ${INCLUDE}
55: ar cr ${OUT} ${OBJS}
56: cd profiled; ar cr ${OUT_P} ${OBJS}
57: ranlib ${OUT} ${OUT_P}
58:
59: all: ${OBJS}
60:
61: getcourierent.o: courierdb.h getcourierent.c
62: ${CC} -c ${CFLAGS} -D'CSERVICES="${CRLIB}/Courierservices"' \
63: -p getcourierent.c
64: mv getcourierent.o profiled/getcourierent.o
65: ${CC} -c ${CFLAGS} -D'CSERVICES="${CRLIB}/Courierservices"' \
66: getcourierent.c
67:
68: lookahead.o: courierdb.h lookahead.o
69: ${CC} -c ${CFLAGS} -D'COURLIB="${CRLIB}"' -p lookahead.c
70: mv lookahead.o profiled/lookahead.o
71: ${CC} -c ${CFLAGS} -D'COURLIB="${CRLIB}"' lookahead.c
72:
73: bdt.o client.o lookahead.o misc.o readwrite.o server.o: courier.h
74:
75: bdt.o client.o lookahead.o readwrite.o server.o: realcourierconnection.h
76:
77:
78: lint: ${SRCS}
79: lint -hux ${SRCS}
80:
81: tags: ${SRCS} courier.h realcourierconnection.h
82: ctags ${SRCS} courier.h realcourierconnection.h
83:
84:
85: clean:
86: -rm -f ${OBJS} profiled/*.o *.BAK *.CKP
87:
88: rcs:
89: rcs -l RCS/*
90: cat ../rcsdescription | ci -u${RCSREV} -q -N${RCSNAME} RCS/*
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.