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