|
|
1.1 root 1: ##############################################################################
2: # Instructions to Make, for compilation of MH modules
3: #
4: # @(MHWARNING)
5: ##############################################################################
6:
7: OPTIONS = @(MHOPTIONS)
8:
9: CC = cc
10: @BEGIN: OPTIM
11: CCOPT = -O
12: @END: OPTIM
13: @BEGIN: DEBUG
14: CCOPT =
15: @END: DEBUG
16: CFLAGS = $(CCOPT) $(OPTIONS)
17: LINT = lint
18: LFLAGS = -bhu $(OPTIONS)
19: LLIBS =
20:
21:
22: LIB = libmh.a
23:
24: CFILES = add.c adios.c admonish.c addrsbr.c advertise.c advise.c \
25: ambigsw.c atooi.c brkstring.c closefds.c concat.c copy.c \
26: copyip.c cpydata.c cpydgst.c discard.c done.c fdcompare.c \
27: gans.c getans.c getanswer.c getcpy.c help.c fmtcompile.c \
28: formataddr.c formatsbr.c m_atoi.c m_backup.c m_convert.c \
29: m_delete.c m_draft.c m_find.c m_fmsg.c m_foil.c m_getdefs.c \
30: m_getfld.c m_getfolder.c m_gmprot.c m_gmsg.c m_maildir.c \
31: m_name.c m_readefs.c m_remsg.c m_replace.c m_scratch.c \
32: m_seq.c m_seqbits.c m_seqflag.c m_seqnew.c m_setcur.c \
33: m_setseq.c m_setvis.c m_sync.c m_tmpfil.c m_update.c \
34: m_whatnow.c makedir.c path.c peekc.c pidwait.c pidstatus.c \
35: printsw.c push.c putenv.c pwd.c refile.c remdir.c r1bindex.c \
36: showfile.c smatch.c sprintb.c ssequal.c strindex.c trimcpy.c \
37: uleq.c uprf.c vfgets.c
38:
39: OFILES = add.o adios.o admonish.o addrsbr.o advertise.o advise.o \
40: ambigsw.o atooi.o brkstring.o closefds.o concat.o copy.o \
41: copyip.o cpydata.o cpydgst.o discard.o done.o fdcompare.o \
42: gans.o getans.o getanswer.o getcpy.o help.o fmtcompile.o \
43: formataddr.o formatsbr.o m_atoi.o m_backup.o m_convert.o \
44: m_delete.o m_draft.o m_find.o m_fmsg.o m_foil.o m_getdefs.o \
45: m_getfld.o m_getfolder.o m_gmprot.o m_gmsg.o m_maildir.o \
46: m_name.o m_readefs.o m_remsg.o m_replace.o m_scratch.o \
47: m_seq.o m_seqbits.o m_seqflag.o m_seqnew.o m_setcur.o \
48: m_setseq.o m_setvis.o m_sync.o m_tmpfil.o m_update.o \
49: m_whatnow.o makedir.o path.o peekc.o pidwait.o pidstatus.o \
50: printsw.o push.o putenv.o pwd.o refile.o remdir.o r1bindex.o \
51: showfile.o smatch.o sprintb.o ssequal.o strindex.o trimcpy.o \
52: uleq.o uprf.o vfgets.o
53:
54:
55: @BEGIN: OPTIM
56: ##############################################################################
57: # Generation Rules
58: ##############################################################################
59:
60: .c.o:; $(CC) $(CFLAGS) -c $*.c
61: @BEGIN: NEWLOAD
62: @END: NEWLOAD
63: @BEGIN: OLDLOAD
64: cc -s -o $@
65: @END: OLDLOAD
66:
67:
68: @END: OPTIM
69: ##############################################################################
70: # Generate MH subroutine library
71: ##############################################################################
72:
73: all: $(LIB)
74:
75: $(LIB): $(OFILES)
76: @BEGIN: RANLIB
77: ar r $@ $(OFILES); ranlib $@
78: @END: RANLIB
79: @BEGIN: LORDER
80: ar r $@ `lorder $(OFILES) | tsort`
81: @END: LORDER
82: -@ls -l $@
83: -@echo "MH library built normally"
84:
85:
86: ##############################################################################
87: # Miscellaneous tasks
88: ##############################################################################
89:
90: lint:; $(LINT) $(LFLAGS) $(CFILES) $(LLIBS)
91:
92: distribution: clean
93:
94: clean: unclean
95: -rm -f *.o $(LIB)
96:
97: unclean:; -rm -f z$(LIB) _* :* core eddep makedep
98:
99:
100: ##############################################################################
101: # MODIFICATIONS -- Adding a new routine (e.g., pickle)
102: ##############################################################################
103:
104: #
105: # Add any new .c files to CFILES
106: # Add any new .o files to OFILES
107: #
108: #
109: # Under the "Dependencies" section, add a line for pickle.o
110: # pickle.o: ../h/mh.h
111: #
112: # If other includes are read, modify this rule to reflect this
113: # Of course, if pickle.c doesn't include ../h/mh.h (or any
114: # other includes), you can leave this line out altogether
115:
116:
117: ##############################################################################
118: # Dependencies
119: ##############################################################################
120:
121: MODULES = $(CFILES)
122:
123: depend:; for m in $(MODULES); do ( \
124: i=`basename $$m .c`; \
125: echo $$i.o: $$i.c >> makedep; \
126: grep '^#[ ]*include' $$i.c | \
127: sed -e 's,[^"]*"/\([^"]*\)".*,'$$i'.o: /\1,' \
128: -e 's,[^"]*"\([^"]*\)".*,'$$i'.o: \1,' \
129: -e 's,[^<]*<\(.*\)>.*,#'$$i'.o: /usr/include/\1,' \
130: >> 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: /usr/include/stdio.h
287: #m_gmsg.o: /usr/include/sys/types.h
288: #m_gmsg.o: /usr/include/sys/stat.h
289: #m_gmsg.o: /usr/include/ndir.h
290: #m_gmsg.o: /usr/include/dir.h
291: #m_gmsg.o: /usr/include/sys/dir.h
292: m_maildir.o: m_maildir.c
293: m_maildir.o: ../h/mh.h
294: #m_maildir.o: /usr/include/stdio.h
295: m_name.o: m_name.c
296: m_name.o: ../h/mh.h
297: #m_name.o: /usr/include/stdio.h
298: m_readefs.o: m_readefs.c
299: m_readefs.o: ../h/mh.h
300: #m_readefs.o: /usr/include/stdio.h
301: m_remsg.o: m_remsg.c
302: m_remsg.o: ../h/mh.h
303: #m_remsg.o: /usr/include/stdio.h
304: m_replace.o: m_replace.c
305: m_replace.o: ../h/mh.h
306: #m_replace.o: /usr/include/stdio.h
307: m_scratch.o: m_scratch.c
308: m_scratch.o: ../h/mh.h
309: #m_scratch.o: /usr/include/stdio.h
310: m_seq.o: m_seq.c
311: m_seq.o: ../h/mh.h
312: #m_seq.o: /usr/include/stdio.h
313: m_seqbits.o: m_seqbits.c
314: m_seqbits.o: ../h/mh.h
315: #m_seqbits.o: /usr/include/stdio.h
316: m_seqflag.o: m_seqflag.c
317: m_seqflag.o: ../h/mh.h
318: m_seqnew.o: m_seqnew.c
319: m_seqnew.o: ../h/mh.h
320: #m_seqnew.o: /usr/include/ctype.h
321: #m_seqnew.o: /usr/include/stdio.h
322: m_setcur.o: m_setcur.c
323: m_setcur.o: ../h/mh.h
324: #m_setcur.o: /usr/include/stdio.h
325: m_setseq.o: m_setseq.c
326: m_setseq.o: ../h/mh.h
327: #m_setseq.o: /usr/include/stdio.h
328: m_setvis.o: m_setvis.c
329: m_setvis.o: ../h/mh.h
330: #m_setvis.o: /usr/include/stdio.h
331: m_sync.o: m_sync.c
332: m_sync.o: ../h/mh.h
333: #m_sync.o: /usr/include/stdio.h
334: m_tmpfil.o: m_tmpfil.c
335: m_tmpfil.o: ../h/mh.h
336: #m_tmpfil.o: /usr/include/stdio.h
337: m_update.o: m_update.c
338: m_update.o: ../h/mh.h
339: #m_update.o: /usr/include/stdio.h
340: #m_update.o: /usr/include/signal.h
341: m_whatnow.o: m_whatnow.c
342: m_whatnow.o: ../h/mh.h
343: #m_whatnow.o: /usr/include/stdio.h
344: makedir.o: makedir.c
345: makedir.o: ../h/mh.h
346: #makedir.o: /usr/include/stdio.h
347: path.o: path.c
348: path.o: ../h/mh.h
349: #path.o: /usr/include/stdio.h
350: peekc.o: peekc.c
351: peekc.o: ../h/mh.h
352: #peekc.o: /usr/include/stdio.h
353: pidwait.o: pidwait.c
354: pidwait.o: ../h/mh.h
355: #pidwait.o: /usr/include/signal.h
356: #pidwait.o: /usr/include/stdio.h
357: #pidwait.o: /usr/include/sys/wait.h
358: pidstatus.o: pidstatus.c
359: pidstatus.o: ../h/mh.h
360: #pidstatus.o: /usr/include/signal.h
361: #pidstatus.o: /usr/include/stdio.h
362: printsw.o: printsw.c
363: printsw.o: ../h/mh.h
364: push.o: push.c
365: push.o: ../h/mh.h
366: #push.o: /usr/include/stdio.h
367: #push.o: /usr/include/signal.h
368: putenv.o: putenv.c
369: putenv.o: ../h/mh.h
370: #putenv.o: /usr/include/stdio.h
371: pwd.o: pwd.c
372: pwd.o: ../h/mh.h
373: #pwd.o: /usr/include/stdio.h
374: #pwd.o: /usr/include/sys/types.h
375: #pwd.o: /usr/include/sys/stat.h
376: #pwd.o: /usr/include/ndir.h
377: #pwd.o: /usr/include/dir.h
378: refile.o: refile.c
379: refile.o: ../h/mh.h
380: #refile.o: /usr/include/stdio.h
381: remdir.o: remdir.c
382: remdir.o: ../h/mh.h
383: #remdir.o: /usr/include/stdio.h
384: r1bindex.o: r1bindex.c
385: showfile.o: showfile.c
386: showfile.o: ../h/mh.h
387: #showfile.o: /usr/include/stdio.h
388: smatch.o: smatch.c
389: smatch.o: ../h/mh.h
390: sprintb.o: sprintb.c
391: sprintb.o: ../h/mh.h
392: #sprintb.o: /usr/include/stdio.h
393: ssequal.o: ssequal.c
394: strindex.o: strindex.c
395: trimcpy.o: trimcpy.c
396: trimcpy.o: ../h/mh.h
397: #trimcpy.o: /usr/include/ctype.h
398: #trimcpy.o: /usr/include/stdio.h
399: uleq.o: uleq.c
400: uprf.o: uprf.c
401: vfgets.o: vfgets.c
402: vfgets.o: ../h/mh.h
403: #vfgets.o: /usr/include/stdio.h
404: # DEPENDENCIES MUST END AT END OF FILE
405: # IF YOU PUT STUFF HERE IT WILL GO AWAY
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.