0
|
1 ##############################################################################
|
|
2 # Instructions to Make, for compilation of ZOT UIP/utility processes
|
|
3 #
|
|
4 # This file is automatically generated. Do not edit!
|
|
5 # @(#)$Id$
|
|
6 ##############################################################################
|
|
7
|
|
8 # The following entries were inserted during MH configuration
|
|
9 BINDIR = $(DESTDIR)/usr/local/mh/bin
|
|
10 ETCDIR = $(DESTDIR)/usr/local/mh/lib
|
3
|
11 OPTIONS = -DATHENA -DDUMB -DFOLDPROT='"0700"' -DGCOS_HACK -DISI -DMHE -DMHRC -DMSGPROT='"0600"' -DOVERHEAD -DRPATHS -DSBACKUP='"\043"' -DWHATNOW -DBIND -DBSD42 -DBSD43 -DBSD44 -DDBMPWD -DNORUSERPASS -DPOSIX -DSETMG -DSYS5DIR -DUNISTD -DVSPRINTF -DWAITINT -DZONEINFO -DPOPSERVICE='"pop"' -DAPOP -DJAPAN -DMH_PLUS -DMIME -DMIME_HEADERS -DMORE='"/usr/local/bin/less"' -DNNTP -DMAILGROUP -DSENDMTS -DSMTP -DPOP -DSPRINTFTYPE=int -DTYPESIG=void -O2 -g -I..
|
|
12 LDOPTIONS= -Wl,-S -g
|
0
|
13 LDOPTLIB= -ltermcap
|
|
14 CHOWN = /usr/sbin/chown
|
|
15 REMOVE = mv -f
|
|
16
|
|
17 CC = gcc
|
|
18 CPP = gcc -E
|
|
19 CFLAGS = $(OPTIONS)
|
|
20 LINT = lint
|
|
21 LFLAGS = -bhu $(OPTIONS)
|
|
22 LDFLAGS = $(LDOPTIONS)
|
|
23 LLIBS =
|
|
24 LIBES =
|
|
25 LDLIBS = $(LIBES) $(LDOPTLIB)
|
|
26 FILPROT = 0644
|
|
27 PGMPROT = 0755
|
|
28
|
|
29 OFILES = mts.o lock.o client.o
|
|
30 LFILES = l-mts l-lock l-client
|
|
31 IFILES = inst-mtstailor
|
|
32
|
|
33 .c:; echo $@
|
|
34
|
|
35 ######################################################################
|
|
36 # Here it is...
|
|
37 ######################################################################
|
|
38
|
|
39 all: $(OFILES)
|
|
40
|
|
41 lint: $(LFILES)
|
|
42
|
|
43 install: inst-all clean
|
|
44
|
|
45 inst-all: $(IFILES)
|
|
46
|
|
47 tar:; @touch mtstailor
|
|
48 @make -n inst-all > MAKEMTS
|
|
49 @chmod +x MAKEMTS
|
|
50 tar $(TFLAGS) MAKEMTS mtstailor
|
|
51 @rm -f MAKEMTS
|
|
52
|
|
53 uninstall:;
|
|
54 -cd $(ETCDIR); rm -f mtstailor
|
|
55
|
|
56
|
|
57 ##############################################################################
|
|
58 # mts
|
|
59 ##############################################################################
|
|
60
|
|
61 mts: mts.o
|
|
62
|
|
63 l-mts:; $(LINT) $(LFLAGS) mts.c $(LLIBS)
|
|
64
|
|
65
|
|
66 ##############################################################################
|
|
67 # lock
|
|
68 ##############################################################################
|
|
69
|
|
70 lock: lock.o
|
|
71
|
|
72 l-lock:; $(LINT) $(LFLAGS) lock.c $(LLIBS)
|
|
73
|
|
74
|
|
75 ##############################################################################
|
|
76 # client
|
|
77 ##############################################################################
|
|
78
|
|
79 client: client.o
|
|
80
|
|
81 l-client:; $(LINT) $(LFLAGS) client.c $(LLIBS)
|
|
82
|
|
83
|
|
84 ##############################################################################
|
|
85 # mtstailor
|
|
86 ##############################################################################
|
|
87
|
|
88 inst-mtstailor: $(ETCDIR)/mtstailor
|
|
89
|
|
90 $(ETCDIR)/mtstailor: mtstailor
|
|
91 -@if [ ! -f $@ ]; then \
|
|
92 $(REMOVE) $@ zmtstailor; \
|
|
93 cp mtstailor $@; \
|
|
94 else \
|
|
95 echo "Will not overwrite existing $@"; \
|
|
96 fi
|
|
97 -@chmod $(FILPROT) $@
|
|
98 -@ls -l $@
|
|
99 -@echo ""
|
|
100
|
|
101
|
|
102 ##############################################################################
|
|
103 # Miscellaneous tasks
|
|
104 ##############################################################################
|
|
105
|
|
106 unconfig: distribution
|
|
107 -rm -f Makefile
|
|
108
|
|
109 distribution: clean
|
|
110 -rm -f mts.c mtstailor
|
|
111
|
|
112 clean: unclean
|
|
113 -rm -f x* *.o
|
|
114
|
|
115 unclean:; -rm -f z* _* :* core *.core eddep makedep MAKEMTS
|
|
116
|
|
117
|
|
118 ##############################################################################
|
|
119 # Dependencies
|
|
120 ##############################################################################
|
|
121
|
|
122 MODULES = mts lock client
|
|
123
|
|
124 depend:
|
|
125 for m in $(MODULES); do ( \
|
|
126 $(CPP) -M $(OPTIONS) $$m.c >> makedep \
|
|
127 ); done
|
|
128 echo '/^# DO NOT DELETE THIS LINE/+2,$$d' > eddep
|
|
129 echo '$$r makedep' >> eddep
|
|
130 echo 'w' >> eddep
|
|
131 cp Makefile _Makefile
|
|
132 ed - Makefile < eddep
|
|
133 rm eddep makedep
|
|
134 echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
|
|
135 echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
|
|
136
|
|
137 # DO NOT DELETE THIS LINE
|
|
138 # DEPENDENCIES START HERE
|
|
139 mts.o: mts.c
|
|
140 mts.o: ../../h/strings.h
|
|
141 #mts.o: /usr/include/ctype.h
|
|
142 #mts.o: /usr/include/stdio.h
|
|
143 mts.o: mts.h
|
|
144 #mts.o: /usr/include/netdb.h
|
|
145 #mts.o: /usr/include/whoami.h
|
|
146 #mts.o: /usr/include/sys/utsname.h
|
|
147 #mts.o: /usr/include/pwd.h
|
|
148 #mts.o: /usr/include/fcntl.h
|
|
149 lock.o: lock.c
|
|
150 lock.o: ../../h/strings.h
|
|
151 #lock.o: /usr/include/stdio.h
|
|
152 lock.o: mts.h
|
|
153 #lock.o: /usr/include/sys/types.h
|
|
154 #lock.o: /usr/include/sys/stat.h
|
|
155 #lock.o: /usr/include/sys/file.h
|
|
156 #lock.o: /usr/include/signal.h
|
|
157 client.o: client.c
|
|
158 client.o: ../../h/strings.h
|
|
159 #client.o: /usr/include/stdio.h
|
|
160 client.o: mts.h
|
|
161 #client.o: /usr/include/errno.h
|
|
162 #client.o: /usr/include/sys/types.h
|
|
163 #client.o: /usr/include/sys/socket.h
|
|
164 #client.o: /usr/include/netinet/in.h
|
|
165 #client.o: /usr/include/netdb.h
|
|
166 #client.o: /usr/include/arpa/inet.h
|
|
167 # DEPENDENCIES MUST END AT END OF FILE
|
|
168 # IF YOU PUT STUFF HERE IT WILL GO AWAY
|