Added all of the MH sources, including RCS files, in
[mmh] / docs / historical / mh-6.8.5 / config / Makefile
1 ##############################################################################
2 #    Instructions to Make, for compilation of MH modules
3 #
4 #       This file is automatically generated.  Do not edit!
5 # @(#)$Id: config,v 2.8 1992/02/05 21:52:46 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 LDOPTIONS=      -s
10
11 CC      =       cc
12 CFLAGS  =       $(OPTIONS)
13 LDFLAGS =       $(LDOPTIONS)
14 LIBES   =
15 LINT    =       lint
16 LFLAGS  =       -bhu $(OPTIONS)
17 LLIBS   =
18
19
20 ##############################################################################
21 #       Generate object file for MH configuration
22 ##############################################################################
23
24 CFILES  =       config.c version.c
25 OFILES  =       config.o version.o
26
27 all:            $(OFILES)
28
29 lint:;          $(LINT) $(LFLAGS) $(CFILES) $(LLIBS)
30
31 version version.c:      true
32                 @/bin/sh version.sh  6.8.4
33
34 true:;
35
36 ##############################################################################
37 #       Miscellaneous tasks
38 ##############################################################################
39
40 unconfig:       distribution
41                 -rm -f Makefile
42
43 distribution:   clean
44                 -rm -f config.c version.c version
45
46 clean:          unclean
47                 -rm -f *.o
48
49 unclean:;       -rm -f _* :* core eddep makedep
50
51
52 ##############################################################################
53 #       Dependencies
54 ##############################################################################
55
56 MODULES =       $(CFILES)
57
58 depend:;        for m in $(MODULES); do ( \
59                     i=`basename $$m .c`; \
60                     echo $$i.o: $$i.c >> makedep; \
61                     grep '^#[   ]*include' $$i.c | \
62                         sed -e 's,[^"]*"/\([^"]*\)".*,'$$i'.o: /\1,' \
63                             -e 's,[^"]*"\([^"]*\)".*,'$$i'.o: \1,' \
64                             -e 's,[^<]*<\(.*\)>.*,#'$$i'.o: /usr/include/\1,' \
65                         >> makedep \
66                 ); done
67                 echo '/^# DO NOT DELETE THIS LINE/+2,$$d' > eddep
68                 echo '$$r makedep' >> eddep
69                 echo 'w' >> eddep
70                 cp Makefile _Makefile
71                 ed - Makefile < eddep
72                 rm eddep makedep
73                 echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
74                 echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
75
76 # DO NOT DELETE THIS LINE
77 # DEPENDENCIES START HERE
78 config.o: config.c
79 config.o: ../h/mh.h
80 #config.o: /usr/include/pwd.h
81 #config.o: /usr/include/stdio.h
82 # DEPENDENCIES MUST END AT END OF FILE
83 # IF YOU PUT STUFF HERE IT WILL GO AWAY