|
|
1.1 root 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.1 90/07/09 14:40:55 mrose Exp $
8: #
9: #
10: # $Log: Makefile,v $
11: # Revision 7.1 90/07/09 14:40:55 mrose
12: # sync
13: #
14: # Revision 7.0 89/11/23 22:08:28 mrose
15: # Release 6.0
16: #
17: ###############################################################################
18:
19: ###############################################################################
20: #
21: # NOTICE
22: #
23: # Acquisition, use, and distribution of this module and related
24: # materials are subject to the restrictions of a license agreement.
25: # Consult the Preface in the User's Manual for the full terms of
26: # this agreement.
27: #
28: ###############################################################################
29:
30:
31: ###############################################################################
32: # Generation Rules for program modules
33: ###############################################################################
34:
35: .c.o:; $(CC) $(CFLAGS) -c $*.c
36:
37:
38: ###############################################################################
39: # Programs and Libraries
40: ###############################################################################
41:
42: LIBES = $(TOPDIR)libdsap.a $(TOPDIR)libisode.a
43: LLIBS = $(TOPDIR)llib-ldsap $(TOPDIR)llib-lisode
44:
45:
46: ###############################################################################
47: # FILES
48: ###############################################################################
49:
50: HFILES =
51: CFILES = pipe.c unbind.c socket.c quipurc.c
52:
53:
54: ##############################################################
55: # Here it is...
56: ##############################################################
57:
58: all: xpipe xunbind xquipurc
59: inst-all: inst-pipe inst-unbind inst-dishinit inst-quipurc
60: install: inst-all clean
61: lint: l-pipe l-unbind l-quipurc
62:
63:
64: ###################################################################
65: # pipe, et. al.
66: ###################################################################
67:
68: inst-pipe: $(BINDIR)list
69:
70: $(BINDIR)list: xpipe
71: -cp $@ zxpipe
72: -rm -f $@
73: cp xpipe $@
74: -rm -f $(BINDIR)compare
75: ln $@ $(BINDIR)compare
76: -rm -f $(BINDIR)search
77: ln $@ $(BINDIR)search
78: -rm -f $(BINDIR)add
79: ln $@ $(BINDIR)add
80: -rm -f $(BINDIR)delete
81: ln $@ $(BINDIR)delete
82: -rm -f $(BINDIR)modify
83: ln $@ $(BINDIR)modify
84: -rm -f $(BINDIR)modifyrdn
85: ln $@ $(BINDIR)modifyrdn
86: -rm -f $(BINDIR)showentry
87: ln $@ $(BINDIR)showentry
88: -rm -f $(BINDIR)showname
89: ln $@ $(BINDIR)showname
90: -rm -f $(BINDIR)bind
91: ln $@ $(BINDIR)bind
92: -rm -f $(BINDIR)moveto
93: ln $@ $(BINDIR)moveto
94: -rm -f $(BINDIR)dsacontrol
95: ln $@ $(BINDIR)dsacontrol
96: -@ls -gls $@
97: -@echo ""
98:
99: xpipe: pipe.o socket.o
100: $(LDCC) $(LDFLAGS) -o $@ pipe.o socket.o $(LIBES) $(LSOCKET)
101:
102: l-pipe:; $(LINT) $(LFLAGS) pipe.c socket.c $(LLIBS)
103:
104:
105: ###################################################################
106: # unbind
107: ###################################################################
108:
109: inst-unbind: $(BINDIR)unbind
110:
111: $(BINDIR)unbind: xunbind
112: -cp $@ zxunbind
113: -rm -f $@
114: cp xunbind $@
115: -rm -f $(BINDIR)squid
116: ln $@ $(BINDIR)squid
117: -@ls -gls $@
118: -@echo ""
119:
120: xunbind: unbind.o socket.o
121: $(LDCC) $(LDFLAGS) unbind.o socket.o -o $@ $(LIBES) $(LSOCKET)
122:
123: l-unbind:; $(LINT) $(LFLAGS) unbind.c socket.c $(LLIBS)
124:
125:
126: ###################################################################
127: # dishinit
128: ###################################################################
129:
130: inst-dishinit: $(SBINDIR)dishinit
131:
132: $(SBINDIR)dishinit: dishinit
133: -cp $@ zdishinit
134: -rm -f $@
135: cp dishinit $@
136: chmod 600 $@
137: -@ls -gls $@
138: -@echo ""
139:
140:
141: ###################################################################
142: # quipurc
143: ###################################################################
144:
145: inst-quipurc: $(SBINDIR)new_quipurc
146:
147: $(SBINDIR)new_quipurc: xquipurc
148: -cp $@ zxquipurc
149: -rm -f $@
150: cp xquipurc $@
151: chmod ugo+s $@
152: -@ls -gls $@
153: -@echo ""
154:
155: xquipurc: $(LIBES) quipurc.o
156: $(LDCC) $(LDFLAGS) -o $@ quipurc.o $(LIBES) $(LSOCKET)
157:
158: l-quipurc:; $(LINT) $(LFLAGS) quipurc.c $(LLIBS)
159:
160:
161: ###################################################################
162: # SID
163: ###################################################################
164:
165: inst-sid: $(BINDIR)clist $(BINDIR)dlist $(BINDIR)osearch \
166: $(BINDIR)ousearch $(BINDIR)psearch
167:
168: $(BINDIR)clist: clist
169: -cp $@ zclist
170: -rm -f $@
171: cp clist $@
172: chmod a+x $@
173: -@ls -gls $@
174: -@echo ""
175:
176: $(BINDIR)dlist: dlist
177: -cp $@ zdlist
178: -rm -f $@
179: cp dlist $@
180: chmod a+x $@
181: -@ls -gls $@
182: -@echo ""
183:
184: $(BINDIR)osearch: osearch
185: -cp $@ zosearch
186: -rm -f $@
187: cp osearch $@
188: chmod a+x $@
189: -@ls -gls $@
190: -@echo ""
191:
192: $(BINDIR)ousearch: ousearch
193: -cp $@ zousearch
194: -rm -f $@
195: cp ousearch $@
196: chmod a+x $@
197: -@ls -gls $@
198: -@echo ""
199:
200: $(BINDIR)psearch: psearch
201: -cp $@ zpsearch
202: -rm -f $@
203: cp psearch $@
204: chmod a+x $@
205: -@ls -gls $@
206: -@echo ""
207:
208: ##############################################################
209: # clean
210: ##############################################################
211:
212: clean:; rm -f *.ph *.o *.a a.out _* x* z* *.orig core
213:
214: grind:; iprint Makefile
215: tgrind -lc $(CFILES)
216: # @echo $(MANUALS) | \
217: # tr " " "\012" | \
218: # sed -e "s%.*%itroff -man &%" | \
219: # sh -ve
220:
221: true:;
222:
223: # DO NOT DELETE THIS LINE
224: # Dependencies follow
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.