/[TIS-4000 Rel T60]/sun2.4/ca/Makefile
ViewVC logotype

Contents of /sun2.4/ca/Makefile

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.4 - (show annotations)
Wed Sep 29 13:34:37 1999 UTC (23 years, 2 months ago) by tis4000
Branch: MAIN
CVS Tags: t55baseline
Changes since 1.3: +58 -7 lines
Add secure stuff to clean, add sec libs to depends - irani

1
2 CC = gcc -DSOLARIS -DUSECB63 -inostdinc -I/usr/include
3
4 # -I/usr/include/sys \
5 # -I/usr/include/netinet
6
7 CFLAGS = -c -g -Wunused
8 RM = rm -f
9
10 TOP = ../../..
11 SHAREPATH = $(TOP)/share
12 SRCPATH = $(SHAREPATH)/src
13 SRC = $(SRCPATH)/ca
14 CODEBASEPATH = /tools/codebase63/source
15
16 SSL_SDK=/tools/SSLeay/SSLeay-0.9.0b
17 SSL_LIB=$(SSL_SDK)
18 SSL_INCLUDE=$(SSL_SDK)/include
19
20 LYNKSEES_SDK=/tools/SPYRUS/sdk
21 LYNKSEES_LIB=$(LYNKSEES_SDK)/lib
22 LYNKSEES_INCLUDE=$(LYNKSEES_SDK)/include
23
24
25 INCLUDES = \
26 -I$(SRC) \
27 -I$(SHAREPATH)/epicsH \
28 -I$(CODEBASEPATH) \
29 -I/usr/include
30 # \
31 # -I/usr/include/sys \
32 # -I/usr/include/netinet
33
34 ALLDEFINES = $(INCLUDES) -DPRIV_AUDIT -I$(SSL_INCLUDE)
35
36 LIBCASRCS = \
37 $(SRC)/alarmUtils.c \
38 $(SRC)/aliasDefs.c \
39 $(SRC)/caAddEvent.c \
40 $(SRC)/caBldRdMon.c \
41 $(SRC)/caBuild.c \
42 $(SRC)/caContext.c \
43 $(SRC)/caExit.c \
44 $(SRC)/caFlush.c \
45 $(SRC)/caGet.c \
46 $(SRC)/caGetCallback.c \
47 $(SRC)/caGetParams.c \
48 $(SRC)/caInit.c \
49 $(SRC)/caPend.c \
50 $(SRC)/caPut.c \
51 $(SRC)/caRegister.c \
52 $(SRC)/changeConnEvnt.c \
53 $(SRC)/clearChan.c \
54 $(SRC)/clearEvnt.c \
55 $(SRC)/convertAlarms.c \
56 $(SRC)/convertParams.c \
57 $(SRC)/dataTypes.c \
58 $(SRC)/fdRegistration.c \
59 $(SRC)/globalData.c \
60 $(SRC)/gsd_sync_subr.c \
61 $(SRC)/localAddr.c \
62 $(SRC)/memMgt.c \
63 $(SRC)/msgProc.c \
64 $(SRC)/recvCaq.c \
65 $(SRC)/sendCaq.c \
66 $(SRC)/typeConvert.c
67
68 OTHERSRCS = \
69 $(SRC)/buffPoolMgt.c \
70 $(SRC)/cadebug.c \
71 $(SRC)/chanAcq.c \
72 $(SRC)/chandump.c \
73 $(SRC)/channelAccess.c \
74 $(SRC)/cvtMgt.c \
75 $(SRC)/dumpBlocks.c \
76 $(SRC)/nameSrv.c \
77 $(SRC)/serverInit.c \
78 $(SRC)/sockGrow.c \
79 $(SRC)/sockMnt.c \
80 $(SRC)/transformType.c
81
82 SRCS = \
83 $(LIBCASRCS) \
84 $(OTHERSRCS)
85
86 LIBCAOBJS = \
87 alarmUtils.o \
88 aliasDefs.o \
89 caAddEvent.o \
90 caBldRdMon.o \
91 caBuild.o \
92 caContext.o \
93 caExit.o \
94 caFlush.o \
95 caGet.o \
96 caGetCallback.o \
97 caGetParams.o \
98 caInit.o \
99 caPend.o \
100 caPut.o \
101 caRegister.o \
102 changeConnEvnt.o \
103 clearChan.o \
104 clearEvnt.o \
105 convertAlarms.o \
106 convertParams.o \
107 dataTypes.o \
108 fdRegistration.o \
109 globalData.o \
110 gsd_sync_subr.o \
111 localAddr.o \
112 memMgt.o \
113 msgProc.o \
114 recvCaq.o \
115 sendCaq.o \
116 typeConvert.o
117
118 OTHEROBJS = \
119 buffPoolMgt.o \
120 cadebug.o \
121 chanAcq.o \
122 secChanAcq.o \
123 chandump.o \
124 channelAccess.o \
125 cvtMgt.o \
126 dumpBlocks.o \
127 nameSrv.o \
128 serverInit.o \
129 sockGrow.o \
130 sockMnt.o \
131 secSockMnt.o \
132 secSockMnt.o \
133 transformType.o
134
135 all:: depend libca.a channelAccess sockMnt secSockMnt nameSrv chanAcq secChanAcq cadump cadebug
136
137 ########### TARGETS ############################################################
138
139 libca.a: $(LIBCAOBJS)
140 $(RM) libca.a
141 ar cq libca.a $(LIBCAOBJS)
142 cp -p libca.a ../bin
143
144 channelAccess: channelAccess.o ./libca.a ../bin/libUnix.a ../bin/tisMsgLib.a
145 $(RM) channelAccess
146 $(CC) -o channelAccess -g -ldl -lsocket -lnsl \
147 channelAccess.o ./libca.a \
148 ../bin/libUnix.a ../bin/tisMsgLib.a
149
150 sockMnt: sockMnt.o serverInit.o localAddr.o sockGrow.o \
151 ../bin/libCom.a ../bin/tisMsgLib.a
152 $(RM) sockMnt
153 $(CC) -o sockMnt -g sockMnt.o serverInit.o localAddr.o sockGrow.o\
154 ../bin/libCom.a ../bin/tisMsgLib.a \
155 -ldl -lsocket -lnsl
156
157 secSockMnt: secSockMnt.o serverInit.o localAddr.o sockGrow.o \
158 ../bin/libCom.a ../bin/tisMsgLib.a ../bin/libCalISO.a
159 $(RM) secSockMnt
160 $(CC) -o secSockMnt -g secSockMnt.o serverInit.o localAddr.o sockGrow.o\
161 ../bin/libCom.a ../bin/tisMsgLib.a \
162 -L../bin -lCalISO -L$(CODEBASEPATH) -lcb \
163 -L$(LYNKSEES_LIB) -llynksees \
164 -L$(SSL_LIB) -lssl -lcrypto \
165 -ldl -lsocket -lnsl -lm
166
167 nameSrv: nameSrv.o serverInit.o sockGrow.o \
168 $(CODEBASEPATH)/libcb.a ../bin/tisMsgLib.a
169 $(RM) nameSrv
170 $(CC) -o nameSrv -g nameSrv.o serverInit.o sockGrow.o\
171 $(CODEBASEPATH)/libcb.a ../bin/tisMsgLib.a \
172 -ldl -lsocket -lnsl -lm
173
174 chanAcq: chanAcq.o serverInit.o transformType.o buffPoolMgt.o dataTypes.o \
175 dumpBlocks.o sockGrow.o cvtMgt.o \
176 ../bin/dbTreeLib.a ../bin/libCom.a ../bin/tisMsgLib.a \
177 ../bin/libtis.a $(CODEBASEPATH)/libcb.a
178 $(RM) chanAcq
179 $(CC) -o chanAcq -g \
180 chanAcq.o serverInit.o transformType.o buffPoolMgt.o dataTypes.o \
181 dumpBlocks.o sockGrow.o cvtMgt.o \
182 ../bin/dbTreeLib.a ../bin/libtis.a \
183 ../bin/libCom.a ../bin/tisMsgLib.a \
184 $(CODEBASEPATH)/libcb.a -lsocket -lnsl -lm
185
186 secChanAcq: secChanAcq.o serverInit.o transformType.o buffPoolMgt.o dataTypes.o \
187 dumpBlocks.o sockGrow.o cvtMgt.o \
188 ../bin/dbTreeLib.a ../bin/libCom.a ../bin/tisMsgLib.a \
189 ../bin/libtis.a $(CODEBASEPATH)/libcb.a ../bin/libCalISO.a
190 $(RM) secChanAcq
191 $(CC) -o secChanAcq -g \
192 secChanAcq.o serverInit.o transformType.o buffPoolMgt.o dataTypes.o \
193 dumpBlocks.o sockGrow.o cvtMgt.o localAddr.o \
194 ../bin/dbTreeLib.a ../bin/libtis.a \
195 ../bin/libCom.a ../bin/tisMsgLib.a -L../bin -lCalISO \
196 $(CODEBASEPATH)/libcb.a -lsocket -lnsl -lm
197
198 cadump: chandump.o libca.a
199 $(RM) cadump
200 $(CC) -g -o cadump chandump.o libca.a -ldl -lsocket -lnsl
201
202 cadebug: cadebug.o libca.a
203 $(RM) cadebug
204 $(CC) -g -o cadebug cadebug.o libca.a -ldl -lsocket -lnsl
205
206 ########### OBJECTS ############################################################
207
208 alarmUtils.o: $(SRC)/alarmUtils.c
209 $(RM) alarmUtils.o
210 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/alarmUtils.c
211
212 aliasDefs.o: $(SRC)/aliasDefs.c
213 $(RM) aliasDefs.o
214 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/aliasDefs.c
215
216 buffPoolMgt.o: $(SRC)/buffPoolMgt.c
217 $(RM) buffPoolMgt.o
218 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/buffPoolMgt.c
219
220 caAddEvent.o: $(SRC)/caAddEvent.c
221 $(RM) caAddEvent.o
222 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/caAddEvent.c
223
224 caBldRdMon.o: $(SRC)/caBldRdMon.c
225 $(RM) caBldRdMon.o
226 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/caBldRdMon.c
227
228 caBuild.o: $(SRC)/caBuild.c
229 $(RM) caBuild.o
230 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/caBuild.c
231
232 caContext.o: $(SRC)/caContext.c
233 $(RM) caContext.o
234 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/caContext.c
235
236 chandump.o: $(SRC)/chandump.c
237 $(RM) chandump.o
238 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/chandump.c
239
240 cadebug.o: $(SRC)/cadebug.c
241 $(RM) cadebug.o
242 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/cadebug.c
243
244 caExit.o: $(SRC)/caExit.c
245 $(RM) caExit.o
246 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/caExit.c
247
248 caFlush.o: $(SRC)/caFlush.c
249 $(RM) caFlush.o
250 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/caFlush.c
251
252 caGet.o: $(SRC)/caGet.c
253 $(RM) caGet.o
254 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/caGet.c
255
256 caGetCallback.o: $(SRC)/caGetCallback.c
257 $(RM) caGetCallback.o
258 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/caGetCallback.c
259
260 caGetParams.o: $(SRC)/caGetParams.c
261 $(RM) caGetParams.o
262 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/caGetParams.c
263
264 caInit.o: $(SRC)/caInit.c
265 $(RM) caInit.o
266 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/caInit.c
267
268 caPend.o: $(SRC)/caPend.c
269 $(RM) caPend.o
270 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/caPend.c
271
272 caPut.o: $(SRC)/caPut.c
273 $(RM) caPut.o
274 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/caPut.c
275
276 caRegister.o: $(SRC)/caRegister.c
277 $(RM) caRegister.o
278 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/caRegister.c
279
280 chanAcq.o: $(SRC)/chanAcq.c
281 $(RM) chanAcq.o
282 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/chanAcq.c
283
284 secChanAcq.o: $(SRC)/chanAcq.c
285 $(RM) secChanAcq.o
286 $(CC) -o secChanAcq.o $(CFLAGS) $(INCLUDES) -DPRIV_AUDIT -I$(SSL_INCLUDE) $(SRC)/chanAcq.c
287
288 changeConnEvnt.o: $(SRC)/changeConnEvnt.c
289 $(RM) changeConnEvnt.o
290 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/changeConnEvnt.c
291
292 channelAccess.o: $(SRC)/channelAccess.c
293 $(RM) channelAccess.o
294 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/channelAccess.c
295
296 clearChan.o: $(SRC)/clearChan.c
297 $(RM) clearChan.o
298 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/clearChan.c
299
300
301 clearEvnt.o: $(SRC)/clearEvnt.c
302 $(RM) clearEvnt.o
303 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/clearEvnt.c
304
305 convertAlarms.o: $(SRC)/convertAlarms.c
306 $(RM) convertAlarms.o
307 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/convertAlarms.c
308
309 convertParams.o: $(SRC)/convertParams.c
310 $(RM) convertParams.o
311 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/convertParams.c
312
313 cvtMgt.o: $(SRC)/cvtMgt.c
314 $(RM) cvtMgt.o
315 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/cvtMgt.c
316
317 dataTypes.o: $(SRC)/dataTypes.c
318 $(RM) dataTypes.o
319 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/dataTypes.c
320
321 dumpBlocks.o: $(SRC)/dumpBlocks.c
322 $(RM) dumpBlocks.o
323 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/dumpBlocks.c
324
325 fdRegistration.o: $(SRC)/fdRegistration.c
326 $(RM) fdRegistration.o
327 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/fdRegistration.c
328
329 globalData.o: $(SRC)/globalData.c
330 $(RM) globalData.o
331 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/globalData.c
332
333 gsd_sync_subr.o: $(SRC)/gsd_sync_subr.c
334 $(RM) gsd_sync_subr.o
335 $(CC) $(CFLAGS) -DUNIX $(INCLUDES) $(SRC)/gsd_sync_subr.c
336
337 localAddr.o: $(SRC)/localAddr.c
338 $(RM) localAddr.o
339 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/localAddr.c
340
341 memMgt.o: $(SRC)/memMgt.c
342 $(RM) memMgt.o
343 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/memMgt.c
344
345 msgProc.o: $(SRC)/msgProc.c
346 $(RM) msgProc.o
347 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/msgProc.c
348
349 nameSrv.o: $(SRC)/nameSrv.c
350 $(RM) nameSrv.o
351 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/nameSrv.c
352
353 recvCaq.o: $(SRC)/recvCaq.c
354 $(RM) recvCaq.o
355 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/recvCaq.c
356
357 sendCaq.o: $(SRC)/sendCaq.c
358 $(RM) sendCaq.o
359 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/sendCaq.c
360
361 serverInit.o: $(SRC)/serverInit.c
362 $(RM) serverInit.o
363 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/serverInit.c
364
365 sockGrow.o: $(SRC)/sockGrow.c
366 $(RM) sockGrow.o
367 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/sockGrow.c
368
369 sockMnt.o: $(SRC)/sockMnt.c
370 $(RM) sockMnt.o
371 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/sockMnt.c
372
373 secSockMnt.o: $(SRC)/sockMnt.c
374 $(RM) secSockMnt.o
375 $(CC) -o secSockMnt.o $(CFLAGS) -DPRIV_AUDIT $(INCLUDES) -I$(SSL_INCLUDE) $(SRC)/sockMnt.c
376
377 transformType.o: $(SRC)/transformType.c
378 $(RM) transformType.o
379 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/transformType.c
380
381 typeConvert.o: $(SRC)/typeConvert.c
382 $(RM) typeConvert.o
383 $(CC) $(CFLAGS) -DDB_TEXT_GLBLSOURCE $(INCLUDES) $(SRC)/typeConvert.c
384
385 install::
386 cp -p libca.a ../bin
387 cp -p channelAccess ../bin
388 cp -p sockMnt ../bin
389 cp -p secSockMnt ../bin
390 cp -p nameSrv ../bin
391 cp -p chanAcq ../bin
392 cp -p secChanAcq ../bin
393 cp -p cadump ../bin
394 cp -p cadebug ../bin
395
396 clean::
397 $(RM) libca.a
398 $(RM) channelAccess
399 $(RM) sockMnt
400 $(RM) secSockMnt
401 $(RM) nameSrv
402 $(RM) chanAcq
403 $(RM) secChanAcq
404 $(RM) cadump
405 $(RM) cadebug
406 $(RM) $(LIBCAOBJS)
407 $(RM) $(OTHEROBJS)
408 $(RM) Makefile.depend
409
410 depend: Makefile.depend
411
412 Makefile.depend: $(SRCS) Makefile
413 $(RM) Makefile.depend
414 $(CC) -M $(ALLDEFINES) $(SRCS) > Makefile.depend
415
416 include Makefile.depend
417

  ViewVC Help
Powered by ViewVC 1.1.28