8 date 92.02.05.21.52.46; author jromine; state Exp;
13 date 90.04.08.22.00.29; author sources; state Exp;
18 date 90.04.08.20.23.04; author sources; state Exp;
23 date 90.04.05.15.17.20; author sources; state Exp;
28 date 90.03.12.11.29.13; author sources; state Exp;
33 date 90.02.23.17.34.23; author sources; state Exp;
38 date 90.02.21.16.59.28; author sources; state Exp;
43 date 90.02.06.12.51.03; author sources; state Exp;
48 date 89.11.17.15.56.36; author sources; state Exp;
53 date 89.11.17.15.44.16; author sources; state Exp;
64 @add "regtest: on/off" to not include hostname and date
68 @##############################################################################
69 # Instructions to Make, for compilation of MH modules
72 # @@(#)$Id: config,v 2.7 1990/04/08 22:00:29 sources Exp jromine $
73 ##############################################################################
75 OPTIONS = @@(MHOPTIONS)
76 LDOPTIONS= @@(LDOPTIONS)
85 LDFLAGS = $(LDOPTIONS)
88 LFLAGS = -bhu $(OPTIONS)
92 ##############################################################################
93 # Generate object file for MH configuration
94 ##############################################################################
96 CFILES = config.c version.c
97 OFILES = config.o version.o
101 lint:; $(LINT) $(LFLAGS) $(CFILES) $(LLIBS)
103 version version.c: true
104 @@/bin/sh version.sh @@(MHHOSTVER) @@(MHRELEASE)
108 ##############################################################################
109 # Miscellaneous tasks
110 ##############################################################################
112 unconfig: distribution
116 -rm -f config.c version.c version
121 unclean:; -rm -f _* :* core eddep makedep
124 ##############################################################################
126 ##############################################################################
130 depend:; for m in $(MODULES); do ( \
131 i=`basename $$m .c`; \
132 echo $$i.o: $$i.c >> makedep; \
133 grep '^#[ ]*include' $$i.c | \
134 sed -e 's,[^"]*"/\([^"]*\)".*,'$$i'.o: /\1,' \
135 -e 's,[^"]*"\([^"]*\)".*,'$$i'.o: \1,' \
136 -e 's,[^<]*<\(.*\)>.*,#'$$i'.o: /usr/include/\1,' \
139 echo '/^# DO NOT DELETE THIS LINE/+2,$$d' > eddep
140 echo '$$r makedep' >> eddep
142 cp Makefile _Makefile
143 ed - Makefile < eddep
145 echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
146 echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
148 # DO NOT DELETE THIS LINE
149 # DEPENDENCIES START HERE
152 #config.o: /usr/include/pwd.h
153 #config.o: /usr/include/stdio.h
154 # DEPENDENCIES MUST END AT END OF FILE
155 # IF YOU PUT STUFF HERE IT WILL GO AWAY
161 @remove version for "make distribution"
166 # @@(#)$Id: config,v 2.6 90/04/08 20:23:04 sources Exp Locker: sources $
169 @@/bin/sh version.sh @@(MHRELEASE)
175 @run version.sh with release
180 # @@(#)$Id: config,v 2.5 90/04/05 15:17:20 sources Exp Locker: sources $
183 -rm -f config.c version.c
204 @remove -O (put in mhconfig)
218 CFLAGS = -O $(OPTIONS)
224 @make unconfig changes
246 unconfig distribution: clean
252 @changes for SUN40 shared libraries and NNTP under bbc