0
|
1 ##############################################################################
|
|
2 # Instructions to Make, for compilation of MH modules
|
|
3 #
|
|
4 # This file is automatically generated. Do not edit!
|
|
5 # @(#)$Id$
|
|
6 ##############################################################################
|
|
7
|
3
|
8 OPTIONS = -DATHENA -DDUMB -DFOLDPROT='"0700"' -DGCOS_HACK -DISI -DMHE -DMHRC -DMSGPROT='"0600"' -DOVERHEAD -DRPATHS -DSBACKUP='"\043"' -DWHATNOW -DBIND -DBSD42 -DBSD43 -DBSD44 -DDBMPWD -DNORUSERPASS -DPOSIX -DSETMG -DSYS5DIR -DUNISTD -DVSPRINTF -DWAITINT -DZONEINFO -DPOPSERVICE='"pop"' -DAPOP -DJAPAN -DMH_PLUS -DMIME -DMIME_HEADERS -DMORE='"/usr/local/bin/less"' -DNNTP -DMAILGROUP -DSENDMTS -DSMTP -DPOP -DSPRINTFTYPE=int -DTYPESIG=void -O2 -g
|
0
|
9
|
|
10 CC = gcc
|
|
11 CPP = gcc -E
|
|
12 CFLAGS = $(OPTIONS)
|
|
13 LINT = lint
|
|
14 LFLAGS = -bhu $(OPTIONS)
|
|
15 LLIBS =
|
|
16
|
|
17
|
|
18 LIBS = libmh.a
|
|
19
|
|
20
|
|
21 CFILES = add.c adios.c admonish.c addrsbr.c advertise.c advise.c \
|
|
22 ambigsw.c atooi.c brkstring.c closefds.c concat.c copy.c \
|
|
23 copyip.c cpydata.c cpydgst.c discard.c done.c fdcompare.c \
|
|
24 gans.c getans.c getanswer.c getcpy.c help.c fmtcompile.c \
|
|
25 formataddr.c formatsbr.c m_atoi.c m_backup.c m_convert.c \
|
|
26 m_delete.c m_draft.c m_find.c m_fmsg.c m_foil.c m_getdefs.c \
|
|
27 m_getfld.c m_getfolder.c m_gmprot.c m_gmsg.c m_maildir.c \
|
|
28 m_name.c m_readefs.c m_remsg.c m_replace.c m_scratch.c \
|
|
29 m_seq.c m_seqbits.c m_seqflag.c m_seqnew.c m_setcur.c \
|
|
30 m_setseq.c m_setvis.c m_sync.c m_tmpfil.c m_update.c \
|
|
31 ml_codeconv.c \
|
|
32 ml_exthdr.c \
|
|
33 makedir.c path.c peekc.c pidwait.c pidstatus.c \
|
|
34 printsw.c push.c putenv.c pwd.c refile.c remdir.c r1bindex.c \
|
|
35 ruserpass.c \
|
|
36 showfile.c smatch.c sprintb.c ssequal.c strindex.c trimcpy.c \
|
|
37 uleq.c uprf.c vfgets.c formatdef.c m_msgdef.c
|
|
38
|
|
39
|
|
40 OFILES = add.o adios.o admonish.o addrsbr.o advertise.o advise.o \
|
|
41 ambigsw.o atooi.o brkstring.o closefds.o concat.o copy.o \
|
|
42 copyip.o cpydata.o cpydgst.o discard.o done.o fdcompare.o \
|
|
43 gans.o getans.o getanswer.o getcpy.o help.o fmtcompile.o \
|
|
44 formataddr.o formatsbr.o m_atoi.o m_backup.o m_convert.o \
|
|
45 m_delete.o m_draft.o m_find.o m_fmsg.o m_foil.o m_getdefs.o \
|
|
46 m_getfld.o m_getfolder.o m_gmprot.o m_gmsg.o m_maildir.o \
|
|
47 m_name.o m_readefs.o m_remsg.o m_replace.o m_scratch.o \
|
|
48 m_seq.o m_seqbits.o m_seqflag.o m_seqnew.o m_setcur.o \
|
|
49 m_setseq.o m_setvis.o m_sync.o m_tmpfil.o m_update.o \
|
|
50 ml_codeconv.o \
|
|
51 ml_exthdr.o \
|
|
52 makedir.o path.o peekc.o pidwait.o pidstatus.o \
|
|
53 printsw.o push.o putenv.o pwd.o refile.o remdir.o r1bindex.o \
|
|
54 ruserpass.o \
|
|
55 showfile.o smatch.o sprintb.o ssequal.o strindex.o trimcpy.o \
|
|
56 uleq.o uprf.o vfgets.o formatdef.o m_msgdef.o
|
|
57
|
|
58
|
|
59 ##############################################################################
|
|
60 # Generation Rules
|
|
61 ##############################################################################
|
|
62
|
|
63 .c.o:
|
|
64 $(CC) $(CFLAGS) -c $*.c
|
|
65 -ld -x -r $@
|
|
66 mv a.out $@
|
|
67
|
|
68 ##############################################################################
|
|
69 # Generate MH subroutine library
|
|
70 ##############################################################################
|
|
71
|
|
72 all: $(LIBS)
|
|
73
|
|
74 libmh.a: $(OFILES)
|
|
75 -if [ -f $@ ]; then \
|
|
76 mv $@ z$@; \
|
|
77 fi
|
|
78 ar r $@ $(OFILES); ranlib $@
|
|
79 -@ls -l $@
|
|
80 -@echo "MH library built normally"
|
|
81
|
|
82
|
|
83 ##############################################################################
|
|
84 # Miscellaneous tasks
|
|
85 ##############################################################################
|
|
86
|
|
87 inst-lib:;
|
|
88
|
|
89 lint:; $(LINT) $(LFLAGS) $(CFILES) $(LLIBS)
|
|
90
|
|
91 unconfig: distribution
|
|
92 -rm -f Makefile
|
|
93 -rm -rf shared
|
|
94
|
|
95 distribution: clean
|
|
96 -rm -f version
|
|
97
|
|
98 clean: unclean
|
|
99 -rm -f *.o libmh.*
|
|
100
|
|
101 unclean:; -rm -f zlibmh.* _* :* core *.core eddep makedep
|
|
102
|
|
103
|
|
104 ##############################################################################
|
|
105 # MODIFICATIONS -- Adding a new routine (e.g., pickle)
|
|
106 ##############################################################################
|
|
107
|
|
108 #
|
|
109 # Add any new .c files to CFILES
|
|
110 # Add any new .o files to OFILES
|
|
111 #
|
|
112 #
|
|
113 # Under the "Dependencies" section, add a line for pickle.o
|
|
114 # pickle.o: ../h/mh.h
|
|
115 #
|
|
116 # If other includes are read, modify this rule to reflect this
|
|
117 # Of course, if pickle.c doesn't include ../h/mh.h (or any
|
|
118 # other includes), you can leave this line out altogether
|
|
119
|
|
120
|
|
121 ##############################################################################
|
|
122 # Dependencies
|
|
123 ##############################################################################
|
|
124
|
|
125 MODULES = $(CFILES)
|
|
126
|
|
127 depend:
|
|
128 for m in $(MODULES); do ( \
|
|
129 i=`basename $$m .c`; \
|
|
130 $(CPP) -M $(OPTIONS) $$i.c >> makedep \
|
|
131 ); done
|
|
132 echo '/^# DO NOT DELETE THIS LINE/+2,$$d' > eddep
|
|
133 echo '$$r makedep' >> eddep
|
|
134 echo 'w' >> eddep
|
|
135 cp Makefile _Makefile
|
|
136 ed - Makefile < eddep
|
|
137 rm eddep makedep
|
|
138 echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
|
|
139 echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
|
|
140
|
|
141 # DO NOT DELETE THIS LINE
|
|
142 # DEPENDENCIES START HERE
|
|
143 add.o: add.c
|
|
144 add.o: ../h/mh.h
|
|
145 #add.o: /usr/include/stdio.h
|
|
146 adios.o: adios.c
|
|
147 adios.o: ../h/mh.h
|
|
148 admonish.o: admonish.c
|
|
149 admonish.o: ../h/mh.h
|
|
150 addrsbr.o: addrsbr.c
|
|
151 addrsbr.o: ../h/mh.h
|
|
152 addrsbr.o: ../h/addrsbr.h
|
|
153 addrsbr.o: ../zotnet/mf.h
|
|
154 #addrsbr.o: /usr/include/stdio.h
|
|
155 #addrsbr.o: /usr/include/ctype.h
|
|
156 advertise.o: advertise.c
|
|
157 advertise.o: ../h/mh.h
|
|
158 #advertise.o: /usr/include/stdio.h
|
|
159 #advertise.o: /usr/include/sys/types.h
|
|
160 #advertise.o: /usr/include/sys/uio.h
|
|
161 advise.o: advise.c
|
|
162 advise.o: ../h/mh.h
|
|
163 ambigsw.o: ambigsw.c
|
|
164 ambigsw.o: ../h/mh.h
|
|
165 #ambigsw.o: /usr/include/stdio.h
|
|
166 atooi.o: atooi.c
|
|
167 brkstring.o: brkstring.c
|
|
168 brkstring.o: ../h/mh.h
|
|
169 closefds.o: closefds.c
|
|
170 closefds.o: ../h/mh.h
|
|
171 #closefds.o: /usr/include/stdio.h
|
|
172 concat.o: concat.c
|
|
173 concat.o: ../h/mh.h
|
|
174 #concat.o: /usr/include/stdio.h
|
|
175 #concat.o: /usr/include/varargs.h
|
|
176 copy.o: copy.c
|
|
177 copyip.o: copyip.c
|
|
178 cpydata.o: cpydata.c
|
|
179 cpydata.o: ../h/mh.h
|
|
180 #cpydata.o: /usr/include/stdio.h
|
|
181 cpydgst.o: cpydgst.c
|
|
182 cpydgst.o: ../h/mh.h
|
|
183 #cpydgst.o: /usr/include/stdio.h
|
|
184 discard.o: discard.c
|
|
185 discard.o: ../h/mh.h
|
|
186 #discard.o: /usr/include/stdio.h
|
|
187 #discard.o: /usr/include/sgtty.h
|
|
188 #discard.o: /usr/include/sys/types.h
|
|
189 #discard.o: /usr/include/termio.h
|
|
190 #discard.o: /usr/include/sys/ioctl.h
|
|
191 done.o: done.c
|
|
192 done.o: ../h/mh.h
|
|
193 fdcompare.o: fdcompare.c
|
|
194 fdcompare.o: ../h/mh.h
|
|
195 #fdcompare.o: /usr/include/stdio.h
|
|
196 gans.o: gans.c
|
|
197 gans.o: ../h/mh.h
|
|
198 #gans.o: /usr/include/stdio.h
|
|
199 getans.o: getans.c
|
|
200 getans.o: ../h/mh.h
|
|
201 #getans.o: /usr/include/setjmp.h
|
|
202 #getans.o: /usr/include/signal.h
|
|
203 #getans.o: /usr/include/stdio.h
|
|
204 getanswer.o: getanswer.c
|
|
205 getanswer.o: ../h/mh.h
|
|
206 #getanswer.o: /usr/include/stdio.h
|
|
207 getcpy.o: getcpy.c
|
|
208 getcpy.o: ../h/mh.h
|
|
209 #getcpy.o: /usr/include/stdio.h
|
|
210 help.o: help.c
|
|
211 help.o: ../h/mh.h
|
|
212 #help.o: /usr/include/stdio.h
|
|
213 formatsbr.o: formatsbr.c
|
|
214 formatsbr.o: ../h/mh.h
|
|
215 formatsbr.o: ../h/addrsbr.h
|
|
216 formatsbr.o: ../h/formatsbr.h
|
|
217 formatsbr.o: ../zotnet/tws.h
|
|
218 formatsbr.o: ../h/fmtcompile.h
|
|
219 #formatsbr.o: /usr/include/ctype.h
|
|
220 #formatsbr.o: /usr/include/stdio.h
|
|
221 #formatsbr.o: /usr/include/sys/types.h
|
|
222 #formatsbr.o: /usr/include/sys/stat.h
|
|
223 fmtcompile.o: fmtcompile.c
|
|
224 fmtcompile.o: ../h/mh.h
|
|
225 fmtcompile.o: ../h/addrsbr.h
|
|
226 fmtcompile.o: ../h/formatsbr.h
|
|
227 fmtcompile.o: ../zotnet/tws.h
|
|
228 fmtcompile.o: ../h/fmtcompile.h
|
|
229 #fmtcompile.o: /usr/include/ctype.h
|
|
230 #fmtcompile.o: /usr/include/stdio.h
|
|
231 #fmtcompile.o: /usr/include/sys/types.h
|
|
232 #fmtcompile.o: /usr/include/sys/stat.h
|
|
233 formataddr.o: formataddr.c
|
|
234 formataddr.o: ../h/mh.h
|
|
235 formataddr.o: ../h/addrsbr.h
|
|
236 formataddr.o: ../h/formatsbr.h
|
|
237 #formataddr.o: /usr/include/ctype.h
|
|
238 #formataddr.o: /usr/include/stdio.h
|
|
239 m_atoi.o: m_atoi.c
|
|
240 m_atoi.o: ../h/mh.h
|
|
241 m_backup.o: m_backup.c
|
|
242 m_backup.o: ../h/mh.h
|
|
243 #m_backup.o: /usr/include/stdio.h
|
|
244 m_convert.o: m_convert.c
|
|
245 m_convert.o: ../h/mh.h
|
|
246 #m_convert.o: /usr/include/stdio.h
|
|
247 #m_convert.o: /usr/include/ctype.h
|
|
248 m_delete.o: m_delete.c
|
|
249 m_delete.o: ../h/mh.h
|
|
250 #m_delete.o: /usr/include/stdio.h
|
|
251 m_draft.o: m_draft.c
|
|
252 m_draft.o: ../h/mh.h
|
|
253 #m_draft.o: /usr/include/errno.h
|
|
254 #m_draft.o: /usr/include/stdio.h
|
|
255 #m_draft.o: /usr/include/sys/types.h
|
|
256 #m_draft.o: /usr/include/sys/stat.h
|
|
257 m_find.o: m_find.c
|
|
258 m_find.o: ../h/mh.h
|
|
259 #m_find.o: /usr/include/stdio.h
|
|
260 m_fmsg.o: m_fmsg.c
|
|
261 m_fmsg.o: ../h/mh.h
|
|
262 #m_fmsg.o: /usr/include/stdio.h
|
|
263 m_foil.o: m_foil.c
|
|
264 m_foil.o: ../h/mh.h
|
|
265 #m_foil.o: /usr/include/stdio.h
|
|
266 m_getdefs.o: m_getdefs.c
|
|
267 m_getdefs.o: ../h/mh.h
|
|
268 #m_getdefs.o: /usr/include/stdio.h
|
|
269 #m_getdefs.o: /usr/include/errno.h
|
|
270 #m_getdefs.o: /usr/include/sys/types.h
|
|
271 #m_getdefs.o: /usr/include/sys/stat.h
|
|
272 #m_getdefs.o: /usr/include/pwd.h
|
|
273 m_getfld.o: m_getfld.c
|
|
274 m_getfld.o: ../h/mh.h
|
|
275 #m_getfld.o: /usr/include/stdio.h
|
|
276 m_getfld.o: ../zotnet/mts.h
|
|
277 #m_getfld.o: /usr/include/ctype.h
|
|
278 m_getfolder.o: m_getfolder.c
|
|
279 m_getfolder.o: ../h/mh.h
|
|
280 #m_getfolder.o: /usr/include/stdio.h
|
|
281 m_gmprot.o: m_gmprot.c
|
|
282 m_gmprot.o: ../h/mh.h
|
|
283 #m_gmprot.o: /usr/include/stdio.h
|
|
284 m_gmsg.o: m_gmsg.c
|
|
285 m_gmsg.o: ../h/mh.h
|
|
286 m_gmsg.o: ../h/local.h
|
|
287 #m_gmsg.o: /usr/include/stdio.h
|
|
288 #m_gmsg.o: /usr/include/sys/types.h
|
|
289 #m_gmsg.o: /usr/include/sys/stat.h
|
|
290 #m_gmsg.o: /usr/include/ndir.h
|
|
291 #m_gmsg.o: /usr/include/dir.h
|
|
292 #m_gmsg.o: /usr/include/sys/dir.h
|
|
293 m_maildir.o: m_maildir.c
|
|
294 m_maildir.o: ../h/mh.h
|
|
295 #m_maildir.o: /usr/include/stdio.h
|
|
296 m_name.o: m_name.c
|
|
297 m_name.o: ../h/mh.h
|
|
298 #m_name.o: /usr/include/stdio.h
|
|
299 m_readefs.o: m_readefs.c
|
|
300 m_readefs.o: ../h/mh.h
|
|
301 #m_readefs.o: /usr/include/stdio.h
|
|
302 m_remsg.o: m_remsg.c
|
|
303 m_remsg.o: ../h/mh.h
|
|
304 #m_remsg.o: /usr/include/stdio.h
|
|
305 m_replace.o: m_replace.c
|
|
306 m_replace.o: ../h/mh.h
|
|
307 #m_replace.o: /usr/include/stdio.h
|
|
308 m_scratch.o: m_scratch.c
|
|
309 m_scratch.o: ../h/mh.h
|
|
310 #m_scratch.o: /usr/include/stdio.h
|
|
311 m_seq.o: m_seq.c
|
|
312 m_seq.o: ../h/mh.h
|
|
313 #m_seq.o: /usr/include/stdio.h
|
|
314 m_seqbits.o: m_seqbits.c
|
|
315 m_seqbits.o: ../h/mh.h
|
|
316 #m_seqbits.o: /usr/include/stdio.h
|
|
317 m_seqflag.o: m_seqflag.c
|
|
318 m_seqflag.o: ../h/mh.h
|
|
319 m_seqnew.o: m_seqnew.c
|
|
320 m_seqnew.o: ../h/mh.h
|
|
321 #m_seqnew.o: /usr/include/ctype.h
|
|
322 #m_seqnew.o: /usr/include/stdio.h
|
|
323 m_setcur.o: m_setcur.c
|
|
324 m_setcur.o: ../h/mh.h
|
|
325 #m_setcur.o: /usr/include/stdio.h
|
|
326 m_setseq.o: m_setseq.c
|
|
327 m_setseq.o: ../h/mh.h
|
|
328 #m_setseq.o: /usr/include/stdio.h
|
|
329 m_setvis.o: m_setvis.c
|
|
330 m_setvis.o: ../h/mh.h
|
|
331 #m_setvis.o: /usr/include/stdio.h
|
|
332 m_sync.o: m_sync.c
|
|
333 m_sync.o: ../h/mh.h
|
|
334 #m_sync.o: /usr/include/stdio.h
|
|
335 m_tmpfil.o: m_tmpfil.c
|
|
336 m_tmpfil.o: ../h/mh.h
|
|
337 #m_tmpfil.o: /usr/include/stdio.h
|
|
338 m_update.o: m_update.c
|
|
339 m_update.o: ../h/mh.h
|
|
340 #m_update.o: /usr/include/stdio.h
|
|
341 #m_update.o: /usr/include/signal.h
|
|
342 makedir.o: makedir.c
|
|
343 makedir.o: ../h/mh.h
|
|
344 #makedir.o: /usr/include/stdio.h
|
|
345 path.o: path.c
|
|
346 path.o: ../h/mh.h
|
|
347 #path.o: /usr/include/stdio.h
|
|
348 peekc.o: peekc.c
|
|
349 peekc.o: ../h/mh.h
|
|
350 #peekc.o: /usr/include/stdio.h
|
|
351 pidwait.o: pidwait.c
|
|
352 pidwait.o: ../h/mh.h
|
|
353 #pidwait.o: /usr/include/signal.h
|
|
354 #pidwait.o: /usr/include/stdio.h
|
|
355 #pidwait.o: /usr/include/sys/wait.h
|
|
356 pidstatus.o: pidstatus.c
|
|
357 pidstatus.o: ../h/mh.h
|
|
358 #pidstatus.o: /usr/include/signal.h
|
|
359 #pidstatus.o: /usr/include/stdio.h
|
|
360 printsw.o: printsw.c
|
|
361 printsw.o: ../h/mh.h
|
|
362 push.o: push.c
|
|
363 push.o: ../h/mh.h
|
|
364 #push.o: /usr/include/stdio.h
|
|
365 #push.o: /usr/include/signal.h
|
|
366 putenv.o: putenv.c
|
|
367 putenv.o: ../h/mh.h
|
|
368 #putenv.o: /usr/include/stdio.h
|
|
369 pwd.o: pwd.c
|
|
370 pwd.o: ../h/mh.h
|
|
371 pwd.o: ../h/local.h
|
|
372 #pwd.o: /usr/include/stdio.h
|
|
373 #pwd.o: /usr/include/sys/types.h
|
|
374 #pwd.o: /usr/include/sys/stat.h
|
|
375 #pwd.o: /usr/include/ndir.h
|
|
376 #pwd.o: /usr/include/dir.h
|
|
377 refile.o: refile.c
|
|
378 refile.o: ../h/mh.h
|
|
379 #refile.o: /usr/include/stdio.h
|
|
380 remdir.o: remdir.c
|
|
381 remdir.o: ../h/mh.h
|
|
382 #remdir.o: /usr/include/stdio.h
|
|
383 r1bindex.o: r1bindex.c
|
|
384 showfile.o: showfile.c
|
|
385 showfile.o: ../h/mh.h
|
|
386 #showfile.o: /usr/include/stdio.h
|
|
387 smatch.o: smatch.c
|
|
388 smatch.o: ../h/mh.h
|
|
389 sprintb.o: sprintb.c
|
|
390 sprintb.o: ../h/mh.h
|
|
391 #sprintb.o: /usr/include/stdio.h
|
|
392 ssequal.o: ssequal.c
|
|
393 strindex.o: strindex.c
|
|
394 trimcpy.o: trimcpy.c
|
|
395 trimcpy.o: ../h/mh.h
|
|
396 #trimcpy.o: /usr/include/ctype.h
|
|
397 #trimcpy.o: /usr/include/stdio.h
|
|
398 uleq.o: uleq.c
|
|
399 uprf.o: uprf.c
|
|
400 vfgets.o: vfgets.c
|
|
401 vfgets.o: ../h/mh.h
|
|
402 #vfgets.o: /usr/include/stdio.h
|
|
403 ml_codeconv.o: ../h/mh.h
|
|
404 ml_exthdr.o: ../h/mh.h
|
|
405 # DEPENDENCIES MUST END AT END OF FILE
|
|
406 # IF YOU PUT STUFF HERE IT WILL GO AWAY
|