BSD 4_3_Net_2 release
[unix-history] / usr / src / contrib / isode / others / quipu / uips / dish / Makefile
CommitLineData
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
54LIBES = $(TOPDIR)libdsap.a $(TOPDIR)libisode.a
55LLIBS = $(TOPDIR)llib-ldsap $(TOPDIR)llib-lisode
56
57
58###############################################################################
59# FILES
60###############################################################################
61
62HFILES =
63CFILES = pipe.c unbind.c socket.c quipurc.c
64
65
66##############################################################
67# Here it is...
68##############################################################
69
70all: xpipe xunbind xquipurc
71inst-all: inst-pipe inst-unbind inst-dishinit inst-quipurc
72install: inst-all clean
73lint: l-pipe l-unbind l-quipurc
74
75
76###################################################################
77# pipe, et. al.
78###################################################################
79
80inst-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
111xpipe: pipe.o socket.o $(LIBES)
112 $(LDCC) $(LDFLAGS) -o $@ pipe.o socket.o \
113 $(LIBDSAP) $(LIBISODE) $(LSOCKET)
114
115l-pipe:; $(LINT) $(LFLAGS) pipe.c socket.c $(LLIBS) \
116 | grep -v "warning: possible pointer alignment problem"
117
118
119###################################################################
120# unbind
121###################################################################
122
123inst-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
134xunbind: unbind.o socket.o $(LIBES)
135 $(LDCC) $(LDFLAGS) -o $@ unbind.o socket.o \
136 $(LIBDSAP) $(LIBISODE) $(LSOCKET)
137
138l-unbind:; $(LINT) $(LFLAGS) unbind.c socket.c $(LLIBS) \
139 | grep -v "warning: possible pointer alignment problem"
140
141
142###################################################################
143# dishinit
144###################################################################
145
146inst-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
161inst-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
171xquipurc: quipurc.o $(LIBES)
172 $(LDCC) $(LDFLAGS) -o $@ quipurc.o \
173 $(LIBDSAP) $(LIBISODE) $(LSOCKET) $(LIBGDBM)
174
175l-quipurc:; $(LINT) $(LFLAGS) quipurc.c $(LLIBS) \
176 | grep -v "warning: possible pointer alignment problem"
177
178
179###################################################################
180# SID
181###################################################################
182
183inst-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
230clean:; rm -f *.ph *.o *.a a.out _* x* z* *.orig core
231
232grind:; iprint Makefile
233 tgrind -lc $(CFILES)
234# @echo $(MANUALS) | \
235# tr " " "\012" | \
236# sed -e "s%.*%itroff -man &%" | \
237# sh -ve
238
239true:;
240
241# DO NOT DELETE THIS LINE
242# Dependencies follow
243pipe.o: ../../../../h/config.h
244pipe.o: ../../../../h/dgram.h
245pipe.o: ../../../../h/general.h
246pipe.o: ../../../../h/internet.h
247pipe.o: ../../../../h/logger.h
248pipe.o: ../../../../h/manifest.h
249pipe.o: ../../../../h/quipu/config.h
250pipe.o: ../../../../h/quipu/util.h
251pipe.o: ../../../../h/tailor.h
252pipe.o: ../../../../h/usr.dirent.h
253quipurc.o: ../../../../h/config.h
254quipurc.o: ../../../../h/general.h
255quipurc.o: ../../../../h/isoaddrs.h
256quipurc.o: ../../../../h/logger.h
257quipurc.o: ../../../../h/manifest.h
258quipurc.o: ../../../../h/psap.h
259quipurc.o: ../../../../h/quipu/attr.h
260quipurc.o: ../../../../h/quipu/attrvalue.h
261quipurc.o: ../../../../h/quipu/authen.h
262quipurc.o: ../../../../h/quipu/bind.h
263quipurc.o: ../../../../h/quipu/commonarg.h
264quipurc.o: ../../../../h/quipu/config.h
265quipurc.o: ../../../../h/quipu/dap.h
266quipurc.o: ../../../../h/quipu/ds_error.h
267quipurc.o: ../../../../h/quipu/ds_search.h
268quipurc.o: ../../../../h/quipu/dsp.h
269quipurc.o: ../../../../h/quipu/dua.h
270quipurc.o: ../../../../h/quipu/entry.h
271quipurc.o: ../../../../h/quipu/list.h
272quipurc.o: ../../../../h/quipu/modify.h
273quipurc.o: ../../../../h/quipu/name.h
274quipurc.o: ../../../../h/quipu/oid.h
275quipurc.o: ../../../../h/quipu/read.h
276quipurc.o: ../../../../h/quipu/sequence.h
277quipurc.o: ../../../../h/quipu/util.h
278quipurc.o: ../../../../h/tailor.h
279socket.o: ../../../../h/config.h
280socket.o: ../../../../h/dgram.h
281socket.o: ../../../../h/general.h
282socket.o: ../../../../h/internet.h
283socket.o: ../../../../h/logger.h
284socket.o: ../../../../h/manifest.h
285socket.o: ../../../../h/quipu/config.h
286socket.o: ../../../../h/quipu/util.h
287socket.o: ../../../../h/tailor.h
288unbind.o: ../../../../h/config.h
289unbind.o: ../../../../h/dgram.h
290unbind.o: ../../../../h/general.h
291unbind.o: ../../../../h/internet.h
292unbind.o: ../../../../h/logger.h
293unbind.o: ../../../../h/manifest.h
294unbind.o: ../../../../h/quipu/config.h
295unbind.o: ../../../../h/quipu/util.h
296unbind.o: ../../../../h/tailor.h