|
|
1.1 root 1: # $Header: Makefile,v 2.5 87/05/11 09:45:54 ed Exp $
2:
3: # $Log: Makefile,v $
4: # Revision 2.5 87/05/11 09:45:54 ed
5: # Compile server routines.
6: # Added Filing (4,5,6) and FilingSubset (1).
7: #
8: # Revision 2.4 87/02/14 13:49:00 jqj
9: # new directory structure
10: #
11: # Revision 2.4 87/01/16 15:23:37 ed
12: # Get include files from right place
13: #
14: # Revision 2.3 87/01/16 09:58:33 ed
15: # Added Authentication and Clearinghouse versions 3
16: # Updated to new directory structure
17: #
18: # Revision 2.2 86/05/12 09:33:14 jqj
19: # Authentication1 might have procedures.
20: #
21: # Revision 2.1 85/12/17 07:53:01 jqj
22: # cleaned up some comments
23: #
24: # Revision 2.0 85/11/21 07:21:59 jqj
25: # 4.3BSD standard release
26: #
27: # Revision 1.5 85/05/23 06:21:01 jqj
28: # Public Beta-test version, released 24 May 1985
29: #
30: # Revision 1.4 85/03/26 06:11:32 jqj
31: # Revised public alpha-test version, released 26 March 1985
32: #
33: # Revision 1.3 85/03/12 04:49:31 jqj
34: # added "clean" entry point
35: #
36: # Revision 1.2 85/03/11 16:44:09 jqj
37: # Public alpha-test version, released 11 March 1985
38: #
39:
40: DESTDIR =
41: DESTBIN = ${DESTDIR}/usr/new
42: DESTCOURIER = ${DESTDIR}/usr/new/lib/xnscourier
43:
44: BINDIR = ../bin
45: LIBDIR = ../lib
46: MANDIR = ../man
47: INCDIR = ../include
48: COURIERDIR = ../xnscourier
49:
50: CFLAGS= -O -I${INCDIR}
51: OUT = ${LIBDIR}/libcourier.a
52: OUT_P = ${LIBDIR}/libcourier_p.a
53: RCSREV=
54: RCSNAME=current
55:
56: # order is important in the following:
57: SRCS=Time2.cr Authentication1.cr BulkData1.cr Clearinghouse2.cr \
58: Authentication2.cr Printing3.cr \
59: Authentication3.cr Clearinghouse3.cr \
60: Filing4.cr Filing5.cr Filing6.cr FilingSubset1.cr
61:
62: CRHDRS=Time2.h Authentication1.h BulkData1.h Clearinghouse2.h \
63: Authentication2.h Printing3.h \
64: Authentication3.h Clearinghouse3.h \
65: Filing4.h Filing5.h Filing6.h FilingSubset1.h
66:
67: # these names must be 12 chars or less for ar
68: OBJS=Time2.o Authent1.o BulkData1.o CH2.o Authent2.o Printing3.o CHEntries.o \
69: Authent3.o CH3.o Filing4.o Filing5.o Filing6.o FSubset1.o
70:
71: .SUFFIXES: .h .cr
72:
73: # build the standard library entries
74: install: all
75: ar rv ${OUT} ${OBJS} *_c.o
76: cd profiled; ar rv ../${OUT_P} ${OBJS} *_c.o
77: ranlib ${OUT} ${OUT_P}
78: for i in ${SRCS}; do \
79: (install -c -m 644 $$i ${COURIERDIR}/$$i); done
80: for i in ${CRHDRS}; do \
81: (install -c -m 644 $$i ${INCDIR}/xnscourier/$$i); done
82: install -c -m 644 CHEntries0.cr ${COURIERDIR}/CHEntries0.cr
83: cp CHEntries0.h ${INCDIR}/xnscourier/CHEntries.h
84: cp CHEntries0.h ${INCDIR}/xnscourier/CHEntries0.h
85: cp Courierservices ${COURIERDIR}/Courierservices
86: chmod 644 ${COURIERDIR}/Courierservices
87: date > install
88:
89: # order is important here too
90: all: libcourier Courierservices ${CRHDRS} ${OBJS}
91:
92:
93: # for the following to work, we first need:
94: # 1) /usr/local/lib/courier and /usr/include/courier directories
95: # 2) Courierservices in its appropriate place
96: # 3) for any DEPENDS UPON construct, the associated .h and .cr
97: # files must already be installed
98:
99: .cr.h:
100: ${BINDIR}/xnscourier $*.cr
101: install -c -m 644 $*.h ${INCDIR}/xnscourier/$*.h
102: install -c -m 644 $*.cr ${COURIERDIR}/$*.cr
103: .h.o:
104: ${CC} ${CFLAGS} -p -c $*_support.c
105: mv $*_support.o profiled/$*.o
106: ${CC} ${CFLAGS} -c $*_support.c
107: mv $*_support.o $*.o
108: -if [ -f $*_client.c ]; then ${CC} ${CFLAGS} -p -c $*_client.c; \
109: mv $*_client.o profiled/$*_c.o; \
110: ${CC} ${CFLAGS} -c $*_client.c; \
111: mv $*_client.o $*_c.o; fi
112: -if [ -f $*_server.c ]; then ${CC} ${CFLAGS} -p -c $*_server.c; \
113: mv $*_server.o profiled/$*_s.o; \
114: ${CC} ${CFLAGS} -c $*_server.c; \
115: mv $*_server.o $*_s.o; fi
116:
117:
118: # CHEntries is a bit special
119: CHEntries.o: CHEntries0.o
120: cp ${INCDIR}/xnscourier/CHEntries0.h ${INCDIR}/xnscourier/CHEntries.h
121: cp CHEntries0.o CHEntries.o
122: -mv profiled/CHEntries0.o profiled/CHEntries.o
123:
124: # ar restricts the lengths of entry names
125: Authent1.o: Authentication1.o
126: cp Authentication1.o Authent1.o
127: -mv Authentication1_c.o Authent1_c.o
128: -mv Authentication1_s.o Authent1_s.o
129: -mv profiled/Authentication1.o profiled/Authent1.o
130: -mv profiled/Authentication1_c.o profiled/Authent1_c.o
131: -mv profiled/Authentication1_s.o profiled/Authent1_s.o
132:
133: Authent2.o: Authentication2.o
134: cp Authentication2.o Authent2.o
135: -mv Authentication2_c.o Authent2_c.o
136: -mv Authentication2_s.o Authent2_s.o
137: -mv profiled/Authentication2.o profiled/Authent2.o
138: -mv profiled/Authentication2_c.o profiled/Authent2_c.o
139: -mv profiled/Authentication2_s.o profiled/Authent2_s.o
140:
141: Authent3.o: Authentication3.o
142: cp Authentication3.o Authent3.o
143: -mv Authentication3_c.o Authent3_c.o
144: -mv Authentication3_s.o Authent3_s.o
145: -mv profiled/Authentication3.o profiled/Authent3.o
146: -mv profiled/Authentication3_c.o profiled/Authent3_c.o
147: -mv profiled/Authentication3_s.o profiled/Authent3_s.o
148:
149: CH2.o: Clearinghouse2.o
150: cp Clearinghouse2.o CH2.o
151: -mv Clearinghouse2_c.o CH2_c.o
152: -mv Clearinghouse2_s.o CH2_s.o
153: -mv profiled/Clearinghouse2.o profiled/CH2.o
154: -mv profiled/Clearinghouse2_c.o profiled/CH2_c.o
155: -mv profiled/Clearinghouse2_s.o profiled/CH2_s.o
156:
157: CH3.o: Clearinghouse3.o
158: cp Clearinghouse3.o CH3.o
159: -mv Clearinghouse3_c.o CH3_c.o
160: -mv Clearinghouse3_s.o CH3_s.o
161: -mv profiled/Clearinghouse3.o profiled/CH3.o
162: -mv profiled/Clearinghouse3_c.o profiled/CH3_c.o
163: -mv profiled/Clearinghouse3_s.o profiled/CH3_s.o
164:
165: FSubset1.o: FilingSubset1.o
166: cp FilingSubset1.o FSubset1.o
167: -mv FilingSubset1_c.o FSubset1_c.o
168: -mv FilingSubset1_s.o FSubset1_s.o
169: -mv profiled/FilingSubset1.o profiled/FSubset1.o
170: -mv profiled/FilingSubset1_c.o profiled/FSubset1_c.o
171: -mv profiled/FilingSubset1_s.o profiled/FSubset1_s.o
172:
173: Time2.o: Time2.h
174:
175: Authentication1.o: Authentication1.h
176:
177: BulkData1.o: BulkData1.h
178:
179: Clearinghouse2.o: Clearinghouse2.h
180:
181: Authentication2.o: Authentication2.h
182:
183: Printing3.o: Printing3.h
184:
185: CHEntries0.o: CHEntries0.h
186:
187: Authentication3.o: Authentication3.h
188:
189: Clearinghouse3.o: Clearinghouse3.h
190:
191: Filing4.o: Filing4.h
192:
193: Filing5.o: Filing5.h
194:
195: Filing6.o: Filing6.h
196:
197: FilingSubset1.o: FilingSubset1.h
198:
199: libcourier:
200: @-if [ ! -d ${COURIERDIR} ]; then mkdir ${COURIERDIR}; fi;
201:
202:
203: Courierservices:
204: rm -f Courierservices
205: sed -e 's@/usr/local/lib/courier@${COURIERDIR}@g' services.txt >Courierservices
206:
207: clean:
208: rm -f *.BAK *.CKP Courierservices *.h *.c *.o all profiled/*.[och] \
209: profiled/all profile/install
210:
211: rcs:
212: rcs -l RCS/*
213: cat ../rcsdescription | ci -q -u${RCSREV} -N${RCSNAME} RCS/*
214:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.