/[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.5 - (show annotations)
Mon Dec 6 17:07:52 1999 UTC (24 years, 2 months ago) by tis4000
Branch: MAIN
CVS Tags: Duluth_baseline, LMC_baseline, HEAD
Changes since 1.4: +11 -2 lines
Use new version message format, generate buildVersion.h. - Bekkerman

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

  ViewVC Help
Powered by ViewVC 1.1.30