1 | CFLAGS= -g -O -I../include |
---|
2 | LFLAGS= -uhv -I../include -DKERBEROS -DCONNECT -DSUBPROC |
---|
3 | |
---|
4 | SRCS= tfile.c tunix.c tnet.c stubs.c dsname.c interface.c rpcall.c \ |
---|
5 | conv_mgr.c host.c announce.c \ |
---|
6 | res_module.c auth_krb.c dsc_enter.c auth_dum.c tmem.c |
---|
7 | |
---|
8 | USPET=../ets/usp_et.o |
---|
9 | RPCET=../ets/rpc_et.o |
---|
10 | DSCET=../ets/dsc_et.o |
---|
11 | ETS=$(USPET) $(RPCET) |
---|
12 | OBJS= tfile.o tunix.o tnet.o stubs.o dsname.o interface.o rpcall.o \ |
---|
13 | conv_mgr.o host.o announce.o dsc_enter.o tmem.o |
---|
14 | # $(USPET) $(RPCET) $(DSCET) |
---|
15 | |
---|
16 | KRBET=../ets/krb_et.o |
---|
17 | KOBJS= res_module.k.o auth_krb.o # ../ets/krb_et.o |
---|
18 | NKOBJS= res_module.nk.o auth_dum.o |
---|
19 | |
---|
20 | all: libds.a libdsk.a libds_p.a libdsk_p.a |
---|
21 | |
---|
22 | libds.a: $(OBJS) ${NKOBJS} $(USPET) $(ETS) |
---|
23 | ar cruv libds.a $(OBJS) ${NKOBJS} $(RPCET) $(USPET) $(DSCET) |
---|
24 | ranlib libds.a |
---|
25 | |
---|
26 | libdsk.a: $(OBJS) ${KOBJS} $(ETS) $(KRBET) |
---|
27 | ar cruv libdsk.a $(OBJS) ${KOBJS} $(RPCET) $(USPET) $(DSCET) $(KRBET) |
---|
28 | ranlib libdsk.a |
---|
29 | |
---|
30 | libds_p.a: ${OBJS} ${NKOBJS} $(ETS) |
---|
31 | (cd profiled; \ |
---|
32 | ar cruv ../libds_p.a ${OBJS} ${NKOBJS} ../$(RPCET) ../$(USPET) ../$(DSCET) ; \ |
---|
33 | ranlib ../libds_p.a) |
---|
34 | |
---|
35 | libdsk_p.a: ${OBJS} ${KOBJS} $(ETS) $(KRBET) |
---|
36 | (cd profiled; \ |
---|
37 | ar cruv ../libdsk_p.a ${OBJS} ${KOBJS} ../$(RPCET) ../$(USPET) ../$(KRBET) ../$(DSCET); \ |
---|
38 | ranlib ../libdsk_p.a) |
---|
39 | |
---|
40 | lint: llib-lds.ln |
---|
41 | |
---|
42 | llib-lds.ln: $(SRCS) |
---|
43 | lint -Cds $(LFLAGS) $(SRCS) |
---|
44 | |
---|
45 | # these should make profiled versions too |
---|
46 | res_module.k.o: res_module.c |
---|
47 | rm -f res_module.k.o res_module.o profiled/res_module.k.o |
---|
48 | ${CC} $(CFLAGS) -DKERBEROS -c -p res_module.c |
---|
49 | mv res_module.o profiled/res_module.k.o |
---|
50 | ${CC} $(CFLAGS) -DKERBEROS -c res_module.c |
---|
51 | mv res_module.o res_module.k.o |
---|
52 | |
---|
53 | res_module.nk.o: res_module.c |
---|
54 | rm -f res_module.nk.o res_module.o profiled/res_module.nk.o |
---|
55 | ${CC} $(CFLAGS) -c -p res_module.c |
---|
56 | mv res_module.o profiled/res_module.nk.o |
---|
57 | ${CC} ${CFLAGS} -c res_module.c |
---|
58 | mv res_module.o res_module.nk.o |
---|
59 | |
---|
60 | install: |
---|
61 | |
---|
62 | dist: $(SRCS) Makefile |
---|
63 | -mkdir ../../dist/source/libds |
---|
64 | -mkdir ../../dist/source/libds/profiled |
---|
65 | cp -p $(SRCS) ../../dist/source/libds/ |
---|
66 | cp -p Makefile ../../dist/source/libds/ |
---|
67 | |
---|
68 | .c.o: |
---|
69 | -rm -f $*.o profiled/$*.o |
---|
70 | ${CC} -c -pg ${CFLAGS} $*.c |
---|
71 | mv -f $*.o profiled/$*.o |
---|
72 | ${CC} -c ${CFLAGS} $*.c |
---|
73 | |
---|
74 | clean: |
---|
75 | rm -rf *~ \#* *.o libds.a libdsk.a profiled/ llib-lds.ln |
---|
76 | |
---|
77 | # 'make depend' code |
---|
78 | depend: ${CFILES} |
---|
79 | ${CC} -M ${CFLAGS} ${SRCS} > makedep |
---|
80 | echo '/^# DO NOT DELETE THIS LINE/+1,$$d' >eddep |
---|
81 | echo '$$r makedep' >>eddep |
---|
82 | echo 'w' >>eddep |
---|
83 | cp Makefile Makefile.bak |
---|
84 | ed - Makefile < eddep |
---|
85 | rm eddep makedep |
---|
86 | |
---|
87 | undepend: |
---|
88 | rm -f Makefile.bak |
---|
89 | cp Makefile Makefile.bak |
---|
90 | echo '/^# DO NOT DELETE THIS LINE/+1,$$c' >eddep |
---|
91 | echo '#' >>eddep |
---|
92 | echo '.' >>eddep |
---|
93 | echo 'w' >>eddep |
---|
94 | ed - Makefile < eddep |
---|
95 | rm -f eddep makedep |
---|
96 | # |
---|
97 | # the last line in the makefile should be... |
---|
98 | # DO NOT DELETE THIS LINE |
---|
99 | tfile.o: tfile.c |
---|
100 | tfile.o: /usr/include/stdio.h |
---|
101 | tfile.o: /usr/include/errno.h |
---|
102 | tfile.o: ../include/discuss/tfile.h |
---|
103 | tfile.o: /usr/include/sys/types.h |
---|
104 | tfile.o: /usr/include/sys/stat.h |
---|
105 | tunix.o: tunix.c |
---|
106 | tunix.o: /usr/include/stdio.h |
---|
107 | tunix.o: ../include/discuss/tfile.h |
---|
108 | tunix.o: /usr/include/errno.h |
---|
109 | tunix.o: /usr/include/sys/types.h |
---|
110 | tunix.o: /usr/include/sys/stat.h |
---|
111 | tnet.o: tnet.c |
---|
112 | tnet.o: /usr/include/stdio.h |
---|
113 | tnet.o: ../include/usp.h |
---|
114 | tnet.o: ../include/usp_et.h |
---|
115 | tnet.o: ../include/discuss/tfile.h |
---|
116 | tnet.o: /usr/include/errno.h |
---|
117 | stubs.o: stubs.c |
---|
118 | stubs.o: ../include/discuss/interface.h |
---|
119 | stubs.o: ../include/discuss/types.h |
---|
120 | stubs.o: ../include/rpc.h |
---|
121 | stubs.o: /usr/include/stdio.h |
---|
122 | stubs.o: ../include/usp.h |
---|
123 | stubs.o: ../include/usp_et.h |
---|
124 | stubs.o: ../include/rpc_et.h |
---|
125 | stubs.o: ../include/discuss/tfile.h |
---|
126 | stubs.o: ../include/discuss/acl.h |
---|
127 | dsname.o: dsname.c |
---|
128 | dsname.o: /usr/include/stdio.h |
---|
129 | dsname.o: /usr/include/strings.h |
---|
130 | dsname.o: /usr/include/pwd.h |
---|
131 | dsname.o: /usr/include/sys/file.h |
---|
132 | dsname.o: /usr/include/sys/param.h |
---|
133 | dsname.o: /usr/include/machine/machparam.h |
---|
134 | dsname.o: /usr/include/signal.h |
---|
135 | dsname.o: /usr/include/sys/types.h |
---|
136 | dsname.o: /usr/include/errno.h |
---|
137 | dsname.o: /usr/include/assert.h |
---|
138 | dsname.o: ../include/discuss/dsname.h |
---|
139 | dsname.o: ../include/discuss/dsc_et.h |
---|
140 | dsname.o: ../include/ansi.h |
---|
141 | interface.o: interface.c |
---|
142 | interface.o: /usr/include/stdio.h |
---|
143 | interface.o: /usr/include/string.h |
---|
144 | interface.o: /usr/include/strings.h |
---|
145 | interface.o: /usr/include/errno.h |
---|
146 | interface.o: ../include/discuss/tfile.h |
---|
147 | interface.o: ../include/discuss/interface.h |
---|
148 | interface.o: ../include/discuss/types.h |
---|
149 | interface.o: ../include/discuss/acl.h |
---|
150 | interface.o: ../include/discuss/dsname.h |
---|
151 | interface.o: ../include/rpc.h |
---|
152 | interface.o: /usr/include/stdio.h |
---|
153 | interface.o: ../include/usp.h |
---|
154 | interface.o: ../include/usp_et.h |
---|
155 | interface.o: ../include/rpc_et.h |
---|
156 | interface.o: ../include/discuss/dsc_et.h |
---|
157 | rpcall.o: rpcall.c |
---|
158 | rpcall.o: /usr/include/sys/types.h |
---|
159 | rpcall.o: /usr/include/stdio.h |
---|
160 | rpcall.o: /usr/include/ctype.h |
---|
161 | rpcall.o: /usr/include/strings.h |
---|
162 | rpcall.o: /usr/include/sys/socket.h |
---|
163 | rpcall.o: /usr/include/netinet/in.h |
---|
164 | rpcall.o: /usr/include/netdb.h |
---|
165 | rpcall.o: ../include/discuss/tfile.h |
---|
166 | rpcall.o: ../include/rpc.h |
---|
167 | rpcall.o: /usr/include/stdio.h |
---|
168 | rpcall.o: ../include/usp.h |
---|
169 | rpcall.o: ../include/usp_et.h |
---|
170 | rpcall.o: ../include/rpc_et.h |
---|
171 | rpcall.o: ../include/config.h |
---|
172 | conv_mgr.o: conv_mgr.c |
---|
173 | conv_mgr.o: /usr/include/errno.h |
---|
174 | conv_mgr.o: /usr/include/string.h |
---|
175 | conv_mgr.o: /usr/include/strings.h |
---|
176 | conv_mgr.o: ../include/rpc.h |
---|
177 | conv_mgr.o: /usr/include/stdio.h |
---|
178 | conv_mgr.o: ../include/usp.h |
---|
179 | conv_mgr.o: ../include/usp_et.h |
---|
180 | conv_mgr.o: ../include/rpc_et.h |
---|
181 | host.o: host.c |
---|
182 | host.o: /usr/include/strings.h |
---|
183 | host.o: /usr/include/netdb.h |
---|
184 | host.o: /usr/include/ctype.h |
---|
185 | announce.o: announce.c |
---|
186 | announce.o: /usr/include/stdio.h |
---|
187 | announce.o: /usr/include/sys/file.h |
---|
188 | announce.o: ../include/discuss/tfile.h |
---|
189 | announce.o: ../include/discuss/interface.h |
---|
190 | announce.o: ../include/discuss/types.h |
---|
191 | announce.o: ../include/discuss/dsname.h |
---|
192 | announce.o: ../include/discuss/dsc_et.h |
---|
193 | res_module.o: res_module.c |
---|
194 | res_module.o: ../include/rpc_et.h |
---|
195 | res_module.o: ../include/config.h |
---|
196 | res_module.o: /usr/include/netdb.h |
---|
197 | res_module.o: /usr/include/string.h |
---|
198 | res_module.o: /usr/include/strings.h |
---|
199 | res_module.o: /usr/include/ctype.h |
---|
200 | auth_krb.o: auth_krb.c |
---|
201 | auth_krb.o: /usr/include/strings.h |
---|
202 | auth_krb.o: /usr/include/ctype.h |
---|
203 | auth_krb.o: /usr/include/krb.h |
---|
204 | auth_krb.o: ../include/mit-copyright.h |
---|
205 | auth_krb.o: /usr/include/des.h |
---|
206 | auth_krb.o: ../include/mit-copyright.h |
---|
207 | auth_krb.o: /usr/include/des_conf.h |
---|
208 | auth_krb.o: ../include/mit-copyright.h |
---|
209 | dsc_enter.o: dsc_enter.c |
---|
210 | dsc_enter.o: /usr/include/stdio.h |
---|
211 | dsc_enter.o: /usr/include/strings.h |
---|
212 | dsc_enter.o: /usr/include/ctype.h |
---|
213 | dsc_enter.o: /usr/include/sys/file.h |
---|
214 | dsc_enter.o: ../include/discuss/tfile.h |
---|
215 | dsc_enter.o: ../include/discuss/types.h |
---|
216 | auth_dum.o: auth_dum.c |
---|
217 | tmem.o: tmem.c |
---|
218 | tmem.o: /usr/include/errno.h |
---|
219 | tmem.o: /usr/include/sys/types.h |
---|
220 | tmem.o: /usr/include/sys/uio.h |
---|
221 | tmem.o: ../include/discuss/tfile.h |
---|