1 ##############################################################################
2 # Instructions to Make, for compilation of MH modules
4 # This file is automatically generated. Do not edit!
5 # @(#)$Id: sbr,v 2.21 1993/02/26 19:01:31 jromine Exp $
6 ##############################################################################
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
13 LFLAGS = -bhu $(OPTIONS)
17 LIBS = shared libmh.a libmh.so $(LIBSA)
19 SLIBDIR = $(DESTDIR)/opt/mh-6.8.5/lib
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
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
55 ODEFS = formatdef.o m_msgdef.o
57 ##############################################################################
59 ##############################################################################
63 $(CC) $(CFLAGS) -c $(SLFLAGS) $*.c
66 $(CC) $(CFLAGS) -c $*.c
68 ##############################################################################
69 # Generate MH subroutine library
70 ##############################################################################
76 ar r $@ `lorder $(OFILES) | tsort`
78 -@echo "MH library built normally"
82 (cd shared; ld -G -o ../$@ -h $@.$(SLIBVER) $(OFILES))
86 -@echo "MH shared library built normally"
89 shared:; @if [ -d shared ]; then exit 0; else set -x; mkdir shared; fi
91 ##############################################################################
93 ##############################################################################
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"
103 lint:; $(LINT) $(LFLAGS) $(CFILES) $(LLIBS)
105 unconfig: distribution
116 unclean:; -rm -f zlibmh.* _* :* core eddep makedep
119 ##############################################################################
120 # MODIFICATIONS -- Adding a new routine (e.g., pickle)
121 ##############################################################################
124 # Add any new .c files to CFILES
125 # Add any new .o files to OFILES
128 # Under the "Dependencies" section, add a line for pickle.o
129 # pickle.o: ../h/mh.h
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
136 ##############################################################################
138 ##############################################################################
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,' \
151 echo '/^# DO NOT DELETE THIS LINE/+2,$$d' > eddep
152 echo '$$r makedep' >> eddep
154 cp Makefile _Makefile
155 ed - Makefile < eddep
157 echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
158 echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
160 # DO NOT DELETE THIS LINE
161 # DEPENDENCIES START HERE
164 #add.o: /usr/include/stdio.h
167 admonish.o: admonish.c
168 admonish.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
184 #ambigsw.o: /usr/include/stdio.h
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
193 #concat.o: /usr/include/stdio.h
194 #concat.o: /usr/include/varargs.h
199 #cpydata.o: /usr/include/stdio.h
202 #cpydgst.o: /usr/include/stdio.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
212 fdcompare.o: fdcompare.c
213 fdcompare.o: ../h/mh.h
214 #fdcompare.o: /usr/include/stdio.h
217 #gans.o: /usr/include/stdio.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
228 #getcpy.o: /usr/include/stdio.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
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
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
278 #m_find.o: /usr/include/stdio.h
281 #m_fmsg.o: /usr/include/stdio.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
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
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
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
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
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
363 #makedir.o: /usr/include/stdio.h
366 #path.o: /usr/include/stdio.h
369 #peekc.o: /usr/include/stdio.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
383 #push.o: /usr/include/stdio.h
384 #push.o: /usr/include/signal.h
387 #putenv.o: /usr/include/stdio.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
398 #refile.o: /usr/include/stdio.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
410 #sprintb.o: /usr/include/stdio.h
412 strindex.o: strindex.c
415 #trimcpy.o: /usr/include/ctype.h
416 #trimcpy.o: /usr/include/stdio.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