9 date 93.08.20.15.56.12; author jromine; state Exp;
14 date 92.02.06.17.29.00; author jromine; state Exp;
19 date 92.01.29.23.10.03; author jromine; state Exp;
24 date 90.04.05.15.16.53; author sources; state Exp;
29 date 90.03.20.20.34.51; author sources; state Exp;
34 date 90.03.12.11.28.06; author sources; state Exp;
39 date 90.02.21.16.58.42; author sources; state Exp;
44 date 90.02.06.12.56.23; author sources; state Exp;
49 date 90.02.06.12.55.23; author sources; state Exp;
63 @##############################################################################
64 # Instructions to Make, for compilation of ZOT UIP/utility processes
67 # @@(#)$Id: mts,v 1.8 1992/02/06 17:29:00 jromine Exp jromine $
68 ##############################################################################
70 # The following entries were inserted during MH configuration
71 BINDIR = $(DESTDIR)@@(MHBINPATH)
72 ETCDIR = $(DESTDIR)@@(MHETCPATH)
73 OPTIONS = @@(MHOPTIONS) -I..
74 LDOPTIONS= @@(LDOPTIONS)
75 LDOPTLIB= @@(LDOPTLIB)
76 CHOWN = @@(MHCHOWNPATH)
87 LFLAGS = -bhu $(OPTIONS)
88 LDFLAGS = $(LDOPTIONS)
91 LDLIBS = $(LIBES) $(LDOPTLIB)
95 OFILES = mts.o lock.o client.o
96 LFILES = l-mts l-lock l-client
97 IFILES = inst-mtstailor
101 ######################################################################
103 ######################################################################
109 install: inst-all clean
113 tar:; @@touch mtstailor
114 @@make -n inst-all > MAKEMTS
116 tar $(TFLAGS) MAKEMTS mtstailor
120 -cd $(ETCDIR); rm -f mtstailor
123 ##############################################################################
125 ##############################################################################
129 l-mts:; $(LINT) $(LFLAGS) mts.c $(LLIBS)
132 ##############################################################################
134 ##############################################################################
138 l-lock:; $(LINT) $(LFLAGS) lock.c $(LLIBS)
141 ##############################################################################
143 ##############################################################################
147 l-client:; $(LINT) $(LFLAGS) client.c $(LLIBS)
150 ##############################################################################
152 ##############################################################################
154 inst-mtstailor: $(ETCDIR)/mtstailor
156 $(ETCDIR)/mtstailor: mtstailor
157 -@@if [ ! -f $@@ ]; then \
158 $(REMOVE) $@@ zmtstailor; \
161 echo "Will not overwrite existing $@@"; \
163 -@@chmod $(FILPROT) $@@
168 ##############################################################################
169 # Miscellaneous tasks
170 ##############################################################################
172 unconfig: distribution
176 -rm -f mts.c mtstailor
181 unclean:; -rm -f z* _* :* core eddep makedep MAKEMTS
184 ##############################################################################
186 ##############################################################################
188 MODULES = mts lock client
190 depend:; for m in $(MODULES); do ( \
191 i=`basename $$m .c`; \
192 echo $$i.o: $$i.c >> makedep; \
193 grep '^#[ ]*include' $$i.c | \
194 sed -e 's,[^"]*"/\([^"]*\)".*,'$$i'.o: /\1,' \
195 -e 's,[^"]*"\([^"]*\)".*,'$$i'.o: \1,' \
196 -e 's,[^<]*<\(.*\)>.*,#'$$i'.o: /usr/include/\1,' \
199 echo '/^# DO NOT DELETE THIS LINE/+2,$$d' > eddep
200 echo '$$r makedep' >> eddep
202 cp Makefile _Makefile
203 ed - Makefile < eddep
205 echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
206 echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
208 # DO NOT DELETE THIS LINE
209 # DEPENDENCIES START HERE
211 mts.o: ../../h/strings.h
212 #mts.o: /usr/include/ctype.h
213 #mts.o: /usr/include/stdio.h
215 #mts.o: /usr/include/netdb.h
216 #mts.o: /usr/include/whoami.h
217 #mts.o: /usr/include/sys/utsname.h
218 #mts.o: /usr/include/pwd.h
219 #mts.o: /usr/include/fcntl.h
221 lock.o: ../../h/strings.h
222 #lock.o: /usr/include/stdio.h
224 #lock.o: /usr/include/sys/types.h
225 #lock.o: /usr/include/sys/stat.h
226 #lock.o: /usr/include/sys/file.h
227 #lock.o: /usr/include/signal.h
229 client.o: ../../h/strings.h
230 #client.o: /usr/include/stdio.h
232 #client.o: /usr/include/errno.h
233 #client.o: /usr/include/sys/types.h
234 #client.o: /usr/include/sys/socket.h
235 #client.o: /usr/include/netinet/in.h
236 #client.o: /usr/include/netdb.h
237 #client.o: /usr/include/arpa/inet.h
238 # DEPENDENCIES MUST END AT END OF FILE
239 # IF YOU PUT STUFF HERE IT WILL GO AWAY
245 @move targets to OFILES IFILES LFILES
250 # @@(#)$Id: mts,v 1.7 1992/01/29 23:10:03 jromine Exp jromine $
253 -if [ ! -f $@@ ]; then \
259 @add .c: rule for brain-dead "make"
264 # @@(#)$Id: mts,v 1.6 1990/04/05 15:16:53 sources Exp jromine $
271 lint: l-mts l-lock l-client
274 inst-all: inst-mtstailor
301 @remove -O (put in mhconfig)
306 -$(REMOVE) $@@ zmtstailor
313 @make unconfig changes
318 CFLAGS = -O $(OPTIONS)