Added all of the MH sources, including RCS files, in
[mmh] / docs / historical / mh-6.8.5 / zotnet / bboards / Makefile
1 ##############################################################################
2 #    Instructions to Make, for compilation of ZOT UIP/utility processes
3 #
4 #       This file is automatically generated.  Do not edit!
5 # @(#)$Id: bboards,v 1.7 1992/11/12 23:22:48 jromine Exp $
6 ##############################################################################
7
8 # The following entries were inserted during MH configuration
9 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 -I..
10
11 CC      =       cc
12 CFLAGS  =       $(OPTIONS)
13 LINT    =       lint
14 LFLAGS  =       -bhu $(OPTIONS)
15 LLIBS   =
16
17 .c:;            echo $@
18
19 ######################################################################
20 #       Here it is...
21 ######################################################################
22
23 all:            getbbent.o
24
25 lint:           l-getbbent
26
27 install:        inst-all clean
28
29 inst-all:;
30
31 tar:;
32
33 uninstall:;
34
35
36 ######################################################################
37 # getbbent
38 ######################################################################
39
40 getbbent:       getbbent.o
41
42 l-getbbent:;    $(LINT) $(LFLAGS) getbbent.c $(LLIBS)
43
44
45 ##############################################################################
46 #       Miscellaneous tasks
47 ##############################################################################
48
49 unconfig:       distribution
50                 -rm -f Makefile
51
52 distribution:   clean
53
54 clean:          unclean
55                 -rm -f *.o
56
57 unclean:;       -rm -f _* :* core eddep makedep
58
59
60 ##############################################################################
61 #       Dependencies
62 ##############################################################################
63
64 MODULES =       getbbent
65 depend:;        for m in $(MODULES); do ( \
66                     i=`basename $$m .c`; \
67                     echo $$i.o: $$i.c >> makedep; \
68                     grep '^#[   ]*include' $$i.c | \
69                         sed -e 's,[^"]*"/\([^"]*\)".*,'$$i'.o: /\1,' \
70                             -e 's,[^"]*"\([^"]*\)".*,'$$i'.o: \1,' \
71                             -e 's,[^<]*<\(.*\)>.*,#'$$i'.o: /usr/include/\1,' \
72                         >> makedep \
73                 ); done
74                 echo '/^# DO NOT DELETE THIS LINE/+2,$$d' > eddep
75                 echo '$$r makedep' >> eddep
76                 echo 'w' >> eddep
77                 cp Makefile _Makefile
78                 ed - Makefile < eddep
79                 rm eddep makedep
80                 echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
81                 echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
82
83 # DO NOT DELETE THIS LINE
84 # DEPENDENCIES START HERE
85 getbbent.o: getbbent.c
86 getbbent.o: bboards.h
87 getbbent.o: ../../h/strings.h
88 #getbbent.o: /usr/include/ctype.h
89 #getbbent.o: /usr/include/pwd.h
90 #getbbent.o: /usr/include/grp.h
91 #getbbent.o: /usr/include/stdio.h
92 #getbbent.o: /usr/include/sys/types.h
93 #getbbent.o: /usr/include/sys/stat.h
94 # DEPENDENCIES MUST END AT END OF FILE
95 # IF YOU PUT STUFF HERE IT WILL GO AWAY