Commit | Line | Data |
---|---|---|
11492ebf C |
1 | ############################################################################### |
2 | # Instructions to Make, for compilation of ISODE QUIPU Directory Server | |
3 | ############################################################################### | |
4 | ||
5 | ############################################################################### | |
6 | # | |
7 | # $Header: /f/osi/others/quipu/uips/dish/RCS/Makefile,v 7.5 91/02/22 09:30:14 mrose Interim $ | |
8 | # | |
9 | # | |
10 | # $Log: Makefile,v $ | |
11 | # Revision 7.5 91/02/22 09:30:14 mrose | |
12 | # Interim 6.8 | |
13 | # | |
14 | # Revision 7.4 90/12/23 18:47:08 mrose | |
15 | # update | |
16 | # | |
17 | # Revision 7.3 90/11/20 15:34:12 mrose | |
18 | # update | |
19 | # | |
20 | # Revision 7.2 90/10/17 11:48:16 mrose | |
21 | # sync | |
22 | # | |
23 | # Revision 7.1 90/07/09 14:40:55 mrose | |
24 | # sync | |
25 | # | |
26 | # Revision 7.0 89/11/23 22:08:28 mrose | |
27 | # Release 6.0 | |
28 | # | |
29 | ############################################################################### | |
30 | ||
31 | ############################################################################### | |
32 | # | |
33 | # NOTICE | |
34 | # | |
35 | # Acquisition, use, and distribution of this module and related | |
36 | # materials are subject to the restrictions of a license agreement. | |
37 | # Consult the Preface in the User's Manual for the full terms of | |
38 | # this agreement. | |
39 | # | |
40 | ############################################################################### | |
41 | ||
42 | ||
43 | ############################################################################### | |
44 | # Generation Rules for program modules | |
45 | ############################################################################### | |
46 | ||
47 | .c.o:; $(CC) $(CFLAGS) -c $*.c | |
48 | ||
49 | ||
50 | ############################################################################### | |
51 | # Programs and Libraries | |
52 | ############################################################################### | |
53 | ||
54 | LIBES = $(TOPDIR)libdsap.a $(TOPDIR)libisode.a | |
55 | LLIBS = $(TOPDIR)llib-ldsap $(TOPDIR)llib-lisode | |
56 | ||
57 | ||
58 | ############################################################################### | |
59 | # FILES | |
60 | ############################################################################### | |
61 | ||
62 | HFILES = | |
63 | CFILES = pipe.c unbind.c socket.c quipurc.c | |
64 | ||
65 | ||
66 | ############################################################## | |
67 | # Here it is... | |
68 | ############################################################## | |
69 | ||
70 | all: xpipe xunbind xquipurc | |
71 | inst-all: inst-pipe inst-unbind inst-dishinit inst-quipurc | |
72 | install: inst-all clean | |
73 | lint: l-pipe l-unbind l-quipurc | |
74 | ||
75 | ||
76 | ################################################################### | |
77 | # pipe, et. al. | |
78 | ################################################################### | |
79 | ||
80 | inst-pipe: $(BINDIR)list | |
81 | ||
82 | $(BINDIR)list: xpipe | |
83 | -cp $@ zxpipe | |
84 | -rm -f $@ | |
85 | cp xpipe $@ | |
86 | -rm -f $(BINDIR)compare | |
87 | ln $@ $(BINDIR)compare | |
88 | -rm -f $(BINDIR)search | |
89 | ln $@ $(BINDIR)search | |
90 | -rm -f $(BINDIR)add | |
91 | ln $@ $(BINDIR)add | |
92 | -rm -f $(BINDIR)delete | |
93 | ln $@ $(BINDIR)delete | |
94 | -rm -f $(BINDIR)modify | |
95 | ln $@ $(BINDIR)modify | |
96 | -rm -f $(BINDIR)modifyrdn | |
97 | ln $@ $(BINDIR)modifyrdn | |
98 | -rm -f $(BINDIR)showentry | |
99 | ln $@ $(BINDIR)showentry | |
100 | -rm -f $(BINDIR)showname | |
101 | ln $@ $(BINDIR)showname | |
102 | -rm -f $(BINDIR)bind | |
103 | ln $@ $(BINDIR)bind | |
104 | -rm -f $(BINDIR)moveto | |
105 | ln $@ $(BINDIR)moveto | |
106 | -rm -f $(BINDIR)dsacontrol | |
107 | ln $@ $(BINDIR)dsacontrol | |
108 | -@ls -gls $@ | |
109 | -@echo "" | |
110 | ||
111 | xpipe: pipe.o socket.o $(LIBES) | |
112 | $(LDCC) $(LDFLAGS) -o $@ pipe.o socket.o \ | |
113 | $(LIBDSAP) $(LIBISODE) $(LSOCKET) | |
114 | ||
115 | l-pipe:; $(LINT) $(LFLAGS) pipe.c socket.c $(LLIBS) \ | |
116 | | grep -v "warning: possible pointer alignment problem" | |
117 | ||
118 | ||
119 | ################################################################### | |
120 | # unbind | |
121 | ################################################################### | |
122 | ||
123 | inst-unbind: $(BINDIR)unbind | |
124 | ||
125 | $(BINDIR)unbind: xunbind | |
126 | -cp $@ zxunbind | |
127 | -rm -f $@ | |
128 | cp xunbind $@ | |
129 | -rm -f $(BINDIR)squid | |
130 | ln $@ $(BINDIR)squid | |
131 | -@ls -gls $@ | |
132 | -@echo "" | |
133 | ||
134 | xunbind: unbind.o socket.o $(LIBES) | |
135 | $(LDCC) $(LDFLAGS) -o $@ unbind.o socket.o \ | |
136 | $(LIBDSAP) $(LIBISODE) $(LSOCKET) | |
137 | ||
138 | l-unbind:; $(LINT) $(LFLAGS) unbind.c socket.c $(LLIBS) \ | |
139 | | grep -v "warning: possible pointer alignment problem" | |
140 | ||
141 | ||
142 | ################################################################### | |
143 | # dishinit | |
144 | ################################################################### | |
145 | ||
146 | inst-dishinit: $(SBINDIR)dishinit | |
147 | ||
148 | $(SBINDIR)dishinit: dishinit | |
149 | -cp $@ zdishinit | |
150 | -rm -f $@ | |
151 | cp dishinit $@ | |
152 | chmod 600 $@ | |
153 | -@ls -gls $@ | |
154 | -@echo "" | |
155 | ||
156 | ||
157 | ################################################################### | |
158 | # quipurc | |
159 | ################################################################### | |
160 | ||
161 | inst-quipurc: $(SBINDIR)new_quipurc | |
162 | ||
163 | $(SBINDIR)new_quipurc: xquipurc | |
164 | -cp $@ zxquipurc | |
165 | -rm -f $@ | |
166 | cp xquipurc $@ | |
167 | chmod ugo+s $@ | |
168 | -@ls -gls $@ | |
169 | -@echo "" | |
170 | ||
171 | xquipurc: quipurc.o $(LIBES) | |
172 | $(LDCC) $(LDFLAGS) -o $@ quipurc.o \ | |
173 | $(LIBDSAP) $(LIBISODE) $(LSOCKET) $(LIBGDBM) | |
174 | ||
175 | l-quipurc:; $(LINT) $(LFLAGS) quipurc.c $(LLIBS) \ | |
176 | | grep -v "warning: possible pointer alignment problem" | |
177 | ||
178 | ||
179 | ################################################################### | |
180 | # SID | |
181 | ################################################################### | |
182 | ||
183 | inst-sid: $(BINDIR)clist $(BINDIR)dlist $(BINDIR)osearch \ | |
184 | $(BINDIR)ousearch $(BINDIR)psearch | |
185 | ||
186 | $(BINDIR)clist: clist | |
187 | -cp $@ zclist | |
188 | -rm -f $@ | |
189 | cp clist $@ | |
190 | chmod a+x $@ | |
191 | -@ls -gls $@ | |
192 | -@echo "" | |
193 | ||
194 | $(BINDIR)dlist: dlist | |
195 | -cp $@ zdlist | |
196 | -rm -f $@ | |
197 | cp dlist $@ | |
198 | chmod a+x $@ | |
199 | -@ls -gls $@ | |
200 | -@echo "" | |
201 | ||
202 | $(BINDIR)osearch: osearch | |
203 | -cp $@ zosearch | |
204 | -rm -f $@ | |
205 | cp osearch $@ | |
206 | chmod a+x $@ | |
207 | -@ls -gls $@ | |
208 | -@echo "" | |
209 | ||
210 | $(BINDIR)ousearch: ousearch | |
211 | -cp $@ zousearch | |
212 | -rm -f $@ | |
213 | cp ousearch $@ | |
214 | chmod a+x $@ | |
215 | -@ls -gls $@ | |
216 | -@echo "" | |
217 | ||
218 | $(BINDIR)psearch: psearch | |
219 | -cp $@ zpsearch | |
220 | -rm -f $@ | |
221 | cp psearch $@ | |
222 | chmod a+x $@ | |
223 | -@ls -gls $@ | |
224 | -@echo "" | |
225 | ||
226 | ############################################################## | |
227 | # clean | |
228 | ############################################################## | |
229 | ||
230 | clean:; rm -f *.ph *.o *.a a.out _* x* z* *.orig core | |
231 | ||
232 | grind:; iprint Makefile | |
233 | tgrind -lc $(CFILES) | |
234 | # @echo $(MANUALS) | \ | |
235 | # tr " " "\012" | \ | |
236 | # sed -e "s%.*%itroff -man &%" | \ | |
237 | # sh -ve | |
238 | ||
239 | true:; | |
240 | ||
241 | # DO NOT DELETE THIS LINE | |
242 | # Dependencies follow | |
243 | pipe.o: ../../../../h/config.h | |
244 | pipe.o: ../../../../h/dgram.h | |
245 | pipe.o: ../../../../h/general.h | |
246 | pipe.o: ../../../../h/internet.h | |
247 | pipe.o: ../../../../h/logger.h | |
248 | pipe.o: ../../../../h/manifest.h | |
249 | pipe.o: ../../../../h/quipu/config.h | |
250 | pipe.o: ../../../../h/quipu/util.h | |
251 | pipe.o: ../../../../h/tailor.h | |
252 | pipe.o: ../../../../h/usr.dirent.h | |
253 | quipurc.o: ../../../../h/config.h | |
254 | quipurc.o: ../../../../h/general.h | |
255 | quipurc.o: ../../../../h/isoaddrs.h | |
256 | quipurc.o: ../../../../h/logger.h | |
257 | quipurc.o: ../../../../h/manifest.h | |
258 | quipurc.o: ../../../../h/psap.h | |
259 | quipurc.o: ../../../../h/quipu/attr.h | |
260 | quipurc.o: ../../../../h/quipu/attrvalue.h | |
261 | quipurc.o: ../../../../h/quipu/authen.h | |
262 | quipurc.o: ../../../../h/quipu/bind.h | |
263 | quipurc.o: ../../../../h/quipu/commonarg.h | |
264 | quipurc.o: ../../../../h/quipu/config.h | |
265 | quipurc.o: ../../../../h/quipu/dap.h | |
266 | quipurc.o: ../../../../h/quipu/ds_error.h | |
267 | quipurc.o: ../../../../h/quipu/ds_search.h | |
268 | quipurc.o: ../../../../h/quipu/dsp.h | |
269 | quipurc.o: ../../../../h/quipu/dua.h | |
270 | quipurc.o: ../../../../h/quipu/entry.h | |
271 | quipurc.o: ../../../../h/quipu/list.h | |
272 | quipurc.o: ../../../../h/quipu/modify.h | |
273 | quipurc.o: ../../../../h/quipu/name.h | |
274 | quipurc.o: ../../../../h/quipu/oid.h | |
275 | quipurc.o: ../../../../h/quipu/read.h | |
276 | quipurc.o: ../../../../h/quipu/sequence.h | |
277 | quipurc.o: ../../../../h/quipu/util.h | |
278 | quipurc.o: ../../../../h/tailor.h | |
279 | socket.o: ../../../../h/config.h | |
280 | socket.o: ../../../../h/dgram.h | |
281 | socket.o: ../../../../h/general.h | |
282 | socket.o: ../../../../h/internet.h | |
283 | socket.o: ../../../../h/logger.h | |
284 | socket.o: ../../../../h/manifest.h | |
285 | socket.o: ../../../../h/quipu/config.h | |
286 | socket.o: ../../../../h/quipu/util.h | |
287 | socket.o: ../../../../h/tailor.h | |
288 | unbind.o: ../../../../h/config.h | |
289 | unbind.o: ../../../../h/dgram.h | |
290 | unbind.o: ../../../../h/general.h | |
291 | unbind.o: ../../../../h/internet.h | |
292 | unbind.o: ../../../../h/logger.h | |
293 | unbind.o: ../../../../h/manifest.h | |
294 | unbind.o: ../../../../h/quipu/config.h | |
295 | unbind.o: ../../../../h/quipu/util.h | |
296 | unbind.o: ../../../../h/tailor.h |