|
|
1.1 root 1: ##############################################################################
2: # Instructions to Make, for compilation of ZOT UIP/utility processes
3: #
4: # This file is automatically generated. Do not edit!
5: ##############################################################################
6:
7: # The following entries were inserted during MH configuration
8: BINDIR = $(DESTDIR)/usr/contrib/mh/bin
9: ETCDIR = $(DESTDIR)/usr/contrib/mh/lib
10: OPTIONS = -DBSD42 -DBSD43 -DBSD44 -DBERK -DTTYD -DDUMB -DMHE -DNETWORK -DBIND -DRPATHS -DATZ -DSBACKUP='".\043"' -DDBM -DSENDMTS -DSMTP -I..
11: LDOPTIONS=
12: LDOPTLIB=
13: CHOWN = /usr/sbin/chown
14: REMOVE = mv -f
15:
16: CC = /usr/bin/cc
17: CFLAGS = -O $(OPTIONS)
18: LINT = lint
19: LFLAGS = -bhu $(OPTIONS)
20: LDFLAGS = $(LDOPTIONS)
21: LLIBS =
22: LIBES =
23: LDLIBS = $(LIBES) $(LDOPTLIB)
24: FILPROT = 0644
25: PGMPROT = 0755
26:
27:
28: ######################################################################
29: # Here it is...
30: ######################################################################
31:
32: all: mts.o lock.o client.o
33:
34: lint: l-mts l-lock l-client
35:
36: install: inst-all clean
37:
38: inst-all: inst-mtstailor
39:
40: tar:; touch mtstailor
41: ${MAKE} -n inst-all > MAKEMTS
42: chmod +x MAKEMTS
43: tar $(TFLAGS) MAKEMTS mtstailor
44: rm -f MAKEMTS
45:
46: uninstall:;
47: -cd $(ETCDIR); rm -f mtstailor
48:
49:
50: ##############################################################################
51: # mts
52: ##############################################################################
53:
54: l-mts:; $(LINT) $(LFLAGS) mts.c $(LLIBS)
55:
56:
57: ##############################################################################
58: # lock
59: ##############################################################################
60:
61: l-lock:; $(LINT) $(LFLAGS) lock.c $(LLIBS)
62:
63:
64: ##############################################################################
65: # client
66: ##############################################################################
67:
68: l-client:; $(LINT) $(LFLAGS) client.c $(LLIBS)
69:
70:
71: ##############################################################################
72: # mtstailor
73: ##############################################################################
74:
75: inst-mtstailor: $(ETCDIR)/mtstailor
76:
77: $(ETCDIR)/mtstailor: mtstailor
78: -$(REMOVE) $@ zmtstailor
79: cp mtstailor $@
80: -@chmod $(FILPROT) $@
81: -@ls -l $@
82: -@echo ""
83:
84:
85: ##############################################################################
86: # Miscellaneous tasks
87: ##############################################################################
88:
89: distribution: clean
90: -rm -f mts.c mtstailor
91:
92: clean: unclean
93: -rm -f x* *.o
94:
95: unclean:; -rm -f z* _* :* core eddep makedep MAKEMTS
96:
97:
98: ##############################################################################
99: # Dependencies
100: ##############################################################################
101:
102: MODULES = mts lock client
103:
104: depend:; for m in $(MODULES); do ( \
105: i=`basename $$m .c`; \
106: echo $$i.o: $$i.c >> makedep; \
107: grep '^#[ ]*include' $$i.c | \
108: sed -e 's,[^"]*"/\([^"]*\)".*,'$$i'.o: /\1,' \
109: -e 's,[^"]*"\([^"]*\)".*,'$$i'.o: \1,' \
110: -e 's,[^<]*<\(.*\)>.*,#'$$i'.o: /usr/include/\1,' \
111: >> makedep \
112: ); done
113: echo '/^# DO NOT DELETE THIS LINE/+2,$$d' > eddep
114: echo '$$r makedep' >> eddep
115: echo 'w' >> eddep
116: cp Makefile _Makefile
117: ed - Makefile < eddep
118: rm eddep makedep
119: echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
120: echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
121:
122: # DO NOT DELETE THIS LINE
123: # DEPENDENCIES START HERE
124: mts.o: mts.c
125: mts.o: ../../h/strings.h
126: #mts.o: /usr/include/ctype.h
127: #mts.o: /usr/include/stdio.h
128: mts.o: mts.h
129: #mts.o: /usr/include/netdb.h
130: #mts.o: /usr/include/whoami.h
131: #mts.o: /usr/include/sys/utsname.h
132: #mts.o: /usr/include/pwd.h
133: #mts.o: /usr/include/fcntl.h
134: lock.o: lock.c
135: lock.o: ../../h/strings.h
136: #lock.o: /usr/include/stdio.h
137: lock.o: mts.h
138: #lock.o: /usr/include/sys/types.h
139: #lock.o: /usr/include/sys/stat.h
140: #lock.o: /usr/include/sys/file.h
141: #lock.o: /usr/include/signal.h
142: client.o: client.c
143: client.o: ../../h/strings.h
144: #client.o: /usr/include/stdio.h
145: client.o: mts.h
146: #client.o: /usr/include/errno.h
147: #client.o: /usr/include/sys/types.h
148: #client.o: /usr/include/sys/socket.h
149: #client.o: /usr/include/netinet/in.h
150: #client.o: /usr/include/netdb.h
151: #client.o: /usr/include/arpa/inet.h
152: # DEPENDENCIES MUST END AT END OF FILE
153: # IF YOU PUT STUFF HERE IT WILL GO AWAY
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.