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

Contents of /sun2.4/utility/Makefile

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


Revision 1.2 - (show annotations)
Tue Aug 17 21:02:47 1999 UTC (24 years, 6 months ago) by tis4000
Branch: MAIN
Changes since 1.1: +10 -393 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 CPLUSPLUS = g++ -inostdinc -I/usr/include -DSOLARIS -D__EXTENSIONS__ -DUSECB63
2 CC = gcc -inostdinc -I/usr/include -DSOLARIS -D__EXTENSIONS__ -DUSECB63
3 CFLAGS = -g -Wunused
4 RM = rm -f
5
6 CODEBASEPATH = /tools/codebase63/source
7
8 TOP = ../../..
9 SHAREPATH = $(TOP)/share
10 SRCPATH = $(SHAREPATH)/src
11 SRC = $(SRCPATH)/utility
12
13 INCLUDES = \
14 -I$(SRC) \
15 -I$(TOP)/share/epicsH \
16 -I$(SRCPATH)/libtis \
17 -I$(SRCPATH)/alarmVuCC \
18 -I$(SRCPATH)/alarm \
19 -I$(SRCPATH)/dataVuCC \
20 -I$(CODEBASEPATH)
21
22 ALLDEFINES = \
23 -I/usr/include \
24 $(INCLUDES) \
25 -I$(SRCPATH)/dpaLibrary \
26 -DSOLARIS -DUSECB63
27
28 LIBS = \
29 ../bin/libca.a \
30 ../bin/libUnix.a \
31 ../bin/libtis.a \
32 ../bin/tisMsgLib.a \
33 $(CODEBASEPATH)/libcb.a
34
35 ALMLIBS = \
36 $(CODEBASEPATH)/libcb.a \
37 ../bin/dpaLibrary.a \
38 ../bin/libUnix.a \
39 ../bin/tisMsgLib.a
40
41 LAUNCHLIBS = \
42 ../bin/libUnix.a \
43 ../bin/libtis.a \
44 ../bin/tisMsgLib.a \
45 $(CODEBASEPATH)/libcb.a \
46
47 LAUNCHTYPE_LIBS = \
48 ../bin/tisMsgLib.a \
49 $(CODEBASEPATH)/libcb.a \
50 ../bin/libtis.a
51
52 MAKELINKLIBS = \
53 $(CODEBASEPATH)/libcb.a \
54 ../bin/libUnix.a \
55 ../bin/libtis.a \
56 ../bin/tisMsgLib.a \
57 ../bin/libCom.a
58
59 PVXREFLIBS = \
60 $(CODEBASEPATH)/libcb.a \
61 ../bin/libtis.a
62
63 SNAPDBLIBS = \
64 $(CODEBASEPATH)/libcb.a \
65 ../bin/libca.a \
66 ../bin/tisMsgLib.a
67
68 SYNCLISTLIBS = \
69 $(CODEBASEPATH)/libcb.a \
70 ../bin/libCom.a
71
72 SRCS = \
73 $(SRC)/ackgroup.c \
74 $(SRC)/ackpoint.c \
75 $(SRC)/alm.c \
76 $(SRC)/binPvControl.C \
77 $(SRC)/ChannelList.C \
78 $(SRC)/dbstruct.c \
79 $(SRC)/grabCursor.c \
80 $(SRC)/lamp_test.c \
81 $(SRC)/launch.c \
82 $(SRC)/launchscript.c \
83 $(SRC)/launchtype.c \
84 $(SRC)/makeLinkSpec.c \
85 $(SRC)/message.c \
86 $(SRC)/orderAccumPoints.c \
87 $(SRC)/pvXref.c \
88 $(SRC)/serverInit.c \
89 $(SRC)/signals.c \
90 $(SRC)/snapDb.c \
91 $(SRC)/synclist.c \
92 $(SRC)/update_mapboard.c
93
94 BINPVOBJS = \
95 ChannelList.o \
96 binPvControl.o \
97 serverInit.o \
98 signals.o
99
100 OBJS = \
101 ackgroup.o \
102 ackpoint.o \
103 alm.o \
104 dbstruct.o \
105 grabCursor.o \
106 lamp_test.o \
107 launch.o \
108 launchscript.o \
109 launchtype.o \
110 makeLinkSpec.o \
111 message.o \
112 orderAccumPoints.o \
113 pvXref.o \
114 snapDb.o \
115 synclist.o \
116 update_mapboard.o \
117 $(BINPVOBJS)
118
119
120 all:: \
121 depend \
122 ackgroup \
123 ackpoint \
124 alm \
125 binPvControl \
126 dbstruct \
127 grabCursor \
128 lamptest \
129 launch \
130 launchscript \
131 launchtype \
132 makeLinkSpec \
133 OrderAccumPoints \
134 pvXref \
135 snapDb \
136 startMessage \
137 synclist \
138 UpdateMapBd
139
140 ############ TARGETS ##########################################################
141
142 ackgroup: ackgroup.o ../alarm/utils/alarmLib.o $(LIBS)
143 $(RM) ackgroup
144 $(CC) -g -o ackgroup ackgroup.o ../alarm/utils/alarmLib.o\
145 $(LIBS) -lm -ldl -lsocket -lnsl
146
147 ackpoint: ackpoint.o ../alarm/utils/alarmLib.o $(LIBS)
148 $(RM) ackpoint
149 $(CC) -g -o ackpoint ackpoint.o ../alarm/utils/alarmLib.o\
150 $(LIBS) -lm -ldl -lsocket -lnsl
151
152 alm: alm.o ../alarm/utils/alarmLib.o $(ALMLIBS) ../alarm/utils/alarmLib.o
153 $(RM) alm
154 $(CC) -g -o alm alm.o ../alarm/utils/alarmLib.o \
155 $(ALMLIBS) -lm -ldl -lsocket -lnsl
156
157 binPvControl: $(BINPVOBJS) $(LIBS)
158 rm -f binPvControl
159 $(CPLUSPLUS) -g -o binPvControl $(BINPVOBJS) $(LIBS) -lm -ldl -lsocket -lnsl
160
161 dbstruct: dbstruct.o $(CODEBASEPATH)/libcb.a
162 $(RM) dbstruct
163 $(CC) -g -o dbstruct dbstruct.o $(CODEBASEPATH)/libcb.a -lm -ldl
164
165 grabCursor: grabCursor.o
166 $(RM) grabCursor
167 $(CC) -o grabCursor grabCursor.o \
168 -L/usr/dt/lib -L/usr/openwin/lib \
169 -lXm -lXt -lX11 -ldl -lsocket -lnsl -lgen -lm
170
171 lamptest: lamp_test.o $(LIBS)
172 $(RM) lamp_test
173 $(CC) -g -o lamptest lamp_test.o $(LIBS) -lm -ldl -lsocket -lnsl
174
175 launch: launch.o $(LAUNCHLIBS)
176 $(RM) launch
177 $(CC) -g -o launch launch.o $(LAUNCHLIBS) -ldl -lm
178
179 launchscript: launchscript.o $(LAUNCHLIBS)
180 $(RM) launchscript
181 $(CC) -g -o launchscript launchscript.o $(LAUNCHLIBS) -lm -ldl
182
183 launchtype: launchtype.o $(LAUNCHTYPE_LIBS)
184 $(RM) launchtype
185 $(CC) -g -o launchtype launchtype.o $(LAUNCHTYPE_LIBS) -lm -ldl
186
187 makeLinkSpec: makeLinkSpec.o $(MAKELINKLIBS)
188 $(RM) makeLinkSpec
189 $(CC) -g -o makeLinkSpec makeLinkSpec.o $(MAKELINKLIBS) \
190 -lm -ldl -lsocket -lnsl
191
192 OrderAccumPoints: orderAccumPoints.o $(LIBS)
193 $(RM) OrderAccumPoints
194 $(CC) -g -o OrderAccumPoints orderAccumPoints.o \
195 $(LIBS) -lm -ldl -lsocket -lnsl
196
197 pvXref: pvXref.o $(PVXREFLIBS)
198 $(RM) pvXref
199 $(CC) -g -o pvXref pvXref.o $(PVXREFLIBS) -lm -ldl
200
201 snapDb: snapDb.o $(SNAPDBLIBS)
202 $(RM) snapDb
203 $(CC) -g -o snapDb snapDb.o $(SNAPDBLIBS) -lm -ldl -lsocket -lnsl
204
205 startMessage: message.o ../bin/tisMsgLib.a
206 $(RM) startMessage
207 $(CC) -g -o startMessage message.o ../bin/tisMsgLib.a \
208 -L/usr/dt/lib -L/usr/openwin/lib \
209 -lMrm -lXm -lXt -lX11 -lm -ldl -lgen -lsocket -lnsl
210
211 synclist: synclist.o $(SYNCLISTLIBS)
212 $(RM) synclist
213 $(CC) -g -o synclist synclist.o $(LIBS) -lm -ldl
214
215 UpdateMapBd: update_mapboard.o ../alarm/utils/alarmLib.o $(LIBS)
216 $(RM) UpdateMapBd
217 $(CC) -g -o UpdateMapBd update_mapboard.o ../alarm/utils/alarmLib.o \
218 $(LIBS) -lm -ldl -lsocket -lnsl
219
220 ############ OBJECTS ##########################################################
221
222 ackgroup.o: $(SRC)/ackgroup.c
223 $(RM) ackgroup.o
224 $(CC) -c $(CFLAGS) $(INCLUDES) $(SRC)/ackgroup.c
225
226 ackpoint.o: $(SRC)/ackpoint.c
227 $(RM) ackpoint.o
228 $(CC) -c $(CFLAGS) $(INCLUDES) $(SRC)/ackpoint.c
229
230 ../alarm/utils/alarmLib.o: $(SRCPATH)/alarm/utils/alarmLib.c
231 cd ../alarm/utils; make alarmLib.o
232
233 alm.o: $(SRC)/alm.c
234 $(RM) alm.o
235 $(CC) -c $(CFLAGS) $(INCLUDES) -I$(SRCPATH)/dpaLibrary $(SRC)/alm.c
236
237 binPvControl.o: $(SRC)/binPvControl.C
238 $(RM) binPvControl.o
239 $(CPLUSPLUS) -c $(CFLAGS) $(INCLUDES) $(SRC)/binPvControl.C
240
241 ChannelList.o: $(SRC)/ChannelList.C
242 $(RM) ChannelList.o
243 $(CPLUSPLUS) -c $(CFLAGS) $(INCLUDES) $(SRC)/ChannelList.C
244
245 dbstruct.o: $(SRC)/dbstruct.c
246 $(RM) dbstruct.o
247 $(CC) -c $(CFLAGS) $(INCLUDES) $(SRC)/dbstruct.c
248
249 grabCursor.o: $(SRC)/grabCursor.c
250 $(RM) grabCursor.o
251 $(CC) -c $(CFLAGS) -DTOOL_BAR -D_NO_PROTO -DSTRINGS_ALIGNED -DNO_REGEX \
252 -DNO_ISDIR -DUSE_RE_COMP -DUSE_GETWD \
253 -I/usr/dt/include -I/usr/openwin/include $(SRC)/grabCursor.c
254
255 lamp_test.o: $(SRC)/lamp_test.c
256 $(RM) lamp_test.o
257 $(CC) -c $(CFLAGS) $(INCLUDES) $(SRC)/lamp_test.c
258
259 launch.o: $(SRC)/launch.c
260 $(RM) launch.o
261 $(CC) -c $(CFLAGS) $(INCLUDES) $(SRC)/launch.c
262
263 launchscript.o: $(SRC)/launchscript.c
264 $(RM) launchscript.o
265 $(CC) -c $(CFLAGS) $(INCLUDES) $(SRC)/launchscript.c
266
267 launchtype.o: $(SRC)/launchtype.c
268 $(RM) launchtype.o
269 $(CC) -c $(CFLAGS) $(INCLUDES) $(SRC)/launchtype.c
270
271 makeLinkSpec.o: $(SRC)/makeLinkSpec.c
272 $(RM) makeLinkSpec.o
273 $(CC) -c $(CFLAGS) $(INCLUDES) $(SRC)/makeLinkSpec.c
274
275 message.o: $(SRC)/message.c
276 $(RM) message.o
277 $(CC) -c $(CFLAGS) $(INCLUDES) \
278 -I/usr/dt/include -I/usr/openwin/include \
279 $(SRC)/message.c
280
281 orderAccumPoints.o: $(SRC)/orderAccumPoints.c
282 $(RM) orderAccumPoints.o
283 $(CC) -c $(CFLAGS) $(INCLUDES) $(SRC)/orderAccumPoints.c
284
285 pvXref.o: $(SRC)/pvXref.c
286 $(RM) pvXref.o
287 $(CC) -c $(CFLAGS) $(INCLUDES) $(SRC)/pvXref.c
288
289 serverInit.o: $(SRC)/serverInit.c
290 $(RM) serverInit.o
291 $(CC) -c $(CFLAGS) $(INCLUDES) $(SRC)/serverInit.c
292
293 signals.o: $(SRC)/signals.c
294 $(RM) signals.o
295 $(CC) -c $(CFLAGS) $(INCLUDES) $(SRC)/signals.c
296
297 snapDb.o: $(SRC)/snapDb.c
298 $(RM) snapDb.o
299 $(CC) -c $(CFLAGS) $(INCLUDES) $(SRC)/snapDb.c
300
301 synclist.o: $(SRC)/synclist.c
302 $(RM) synclist.o
303 $(CC) -c $(CFLAGS) $(INCLUDES) $(SRC)/synclist.c
304
305 update_mapboard.o: $(SRC)/update_mapboard.c
306 $(RM) update_mapboard.o
307 $(CC) -c $(CFLAGS) $(INCLUDES) $(SRC)/update_mapboard.c
308
309 install :
310 cp -p ackgroup ../bin
311 cp -p ackpoint ../bin
312 cp -p alm ../bin
313 cp -p binPvControl ../bin
314 cp -p dbstruct ../bin
315 cp -p grabCursor ../bin
316 cp -p lamptest ../bin
317 cp -p launch ../bin
318 cp -p launchscript ../bin
319 cp -p launchtype ../bin
320 cp -p makeLinkSpec ../bin
321 cp -p OrderAccumPoints ../bin
322 cp -p pvXref ../bin
323 cp -p snapDb ../bin
324 cp -p startMessage ../bin
325 cp -p synclist ../bin
326 cp -p UpdateMapBd ../bin
327
328 clean :
329 $(RM) $(OBJS)
330 $(RM) ackgroup
331 $(RM) ackpoint
332 $(RM) alm
333 $(RM) binPvControl
334 $(RM) dbstruct
335 $(RM) grabCursor
336 $(RM) lamptest
337 $(RM) launch
338 $(RM) launchscript
339 $(RM) launchtype
340 $(RM) makeLinkSpec
341 $(RM) OrderAccumPoints
342 $(RM) snapDb
343 $(RM) startMessage
344 $(RM) pvXref
345 $(RM) synclist
346 $(RM) UpdateMapBd
347 $(RM) Makefile.depend
348
349 depend: Makefile.depend
350
351 Makefile.depend: $(SRCS)
352 $(RM) Makefile.depend
353 $(CC) -M $(ALLDEFINES) $(SRCS) > Makefile.depend
354
355 include Makefile.depend
356

  ViewVC Help
Powered by ViewVC 1.1.30