/[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.2 - (show annotations)
Tue Aug 17 18:32:39 1999 UTC (24 years, 6 months ago) by tis4000
Branch: MAIN
Changes since 1.1: +7 -675 lines
08-17-99	ems	added target depend, which creates Makefile.depend
			since the dependancies are differant from machine to
			machine, not having the dependancies in the Makefile
			will not confuse CVS

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

  ViewVC Help
Powered by ViewVC 1.1.30