/[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.4 - (show annotations)
Tue Oct 19 15:12:31 1999 UTC (22 years, 10 months ago) by tis4000
Branch: MAIN
CVS Tags: t55baseline, Duluth_baseline, LMC_baseline, HEAD
Changes since 1.3: +0 -14 lines
removed alm as a target - Steel

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)/binPvControl.C \
76 $(SRC)/ChannelList.C \
77 $(SRC)/dbstruct.c \
78 $(SRC)/grabCursor.c \
79 $(SRC)/lamp_test.c \
80 $(SRC)/launch.c \
81 $(SRC)/launchscript.c \
82 $(SRC)/launchtype.c \
83 $(SRC)/makeLinkSpec.c \
84 $(SRC)/message.c \
85 $(SRC)/orderAccumPoints.c \
86 $(SRC)/pvXref.c \
87 $(SRC)/serverInit.c \
88 $(SRC)/signals.c \
89 $(SRC)/snapDb.c \
90 $(SRC)/synclist.c \
91 $(SRC)/update_mapboard.c
92
93 BINPVOBJS = \
94 ChannelList.o \
95 binPvControl.o \
96 serverInit.o \
97 signals.o
98
99 OBJS = \
100 ackgroup.o \
101 ackpoint.o \
102 dbstruct.o \
103 grabCursor.o \
104 lamp_test.o \
105 launch.o \
106 launchscript.o \
107 launchtype.o \
108 makeLinkSpec.o \
109 message.o \
110 orderAccumPoints.o \
111 pvXref.o \
112 snapDb.o \
113 synclist.o \
114 update_mapboard.o \
115 $(BINPVOBJS)
116
117
118 all:: \
119 depend \
120 ackgroup \
121 ackpoint \
122 binPvControl \
123 dbstruct \
124 grabCursor \
125 lamptest \
126 launch \
127 launchscript \
128 launchtype \
129 makeLinkSpec \
130 OrderAccumPoints \
131 pvXref \
132 snapDb \
133 startMessage \
134 synclist \
135 UpdateMapBd
136
137 ############ TARGETS ##########################################################
138
139 ackgroup: ackgroup.o ../alarm/utils/alarmLib.o $(LIBS)
140 $(RM) ackgroup
141 $(CC) -g -o ackgroup ackgroup.o ../alarm/utils/alarmLib.o\
142 $(LIBS) -lm -ldl -lsocket -lnsl
143
144 ackpoint: ackpoint.o ../alarm/utils/alarmLib.o $(LIBS)
145 $(RM) ackpoint
146 $(CC) -g -o ackpoint ackpoint.o ../alarm/utils/alarmLib.o\
147 $(LIBS) -lm -ldl -lsocket -lnsl
148
149 binPvControl: $(BINPVOBJS) $(LIBS)
150 rm -f binPvControl
151 $(CPLUSPLUS) -g -o binPvControl $(BINPVOBJS) $(LIBS) -lm -ldl -lsocket -lnsl
152
153 dbstruct: dbstruct.o $(CODEBASEPATH)/libcb.a
154 $(RM) dbstruct
155 $(CC) -g -o dbstruct dbstruct.o $(CODEBASEPATH)/libcb.a -lm -ldl
156
157 grabCursor: grabCursor.o
158 $(RM) grabCursor
159 $(CC) -o grabCursor grabCursor.o \
160 -L/usr/dt/lib -L/usr/openwin/lib \
161 -lXm -lXt -lX11 -ldl -lsocket -lnsl -lgen -lm
162
163 lamptest: lamp_test.o $(LIBS)
164 $(RM) lamp_test
165 $(CC) -g -o lamptest lamp_test.o $(LIBS) -lm -ldl -lsocket -lnsl
166
167 launch: launch.o $(LAUNCHLIBS)
168 $(RM) launch
169 $(CC) -g -o launch launch.o $(LAUNCHLIBS) -ldl -lm
170
171 launchscript: launchscript.o $(LAUNCHLIBS)
172 $(RM) launchscript
173 $(CC) -g -o launchscript launchscript.o $(LAUNCHLIBS) -lm -ldl
174
175 launchtype: launchtype.o $(LAUNCHTYPE_LIBS)
176 $(RM) launchtype
177 $(CC) -g -o launchtype launchtype.o $(LAUNCHTYPE_LIBS) -lm -ldl
178
179 makeLinkSpec: makeLinkSpec.o $(MAKELINKLIBS)
180 $(RM) makeLinkSpec
181 $(CC) -g -o makeLinkSpec makeLinkSpec.o $(MAKELINKLIBS) \
182 -lm -ldl -lsocket -lnsl
183
184 OrderAccumPoints: orderAccumPoints.o $(LIBS)
185 $(RM) OrderAccumPoints
186 $(CC) -g -o OrderAccumPoints orderAccumPoints.o \
187 $(LIBS) -lm -ldl -lsocket -lnsl
188
189 pvXref: pvXref.o $(PVXREFLIBS)
190 $(RM) pvXref
191 $(CC) -g -o pvXref pvXref.o $(PVXREFLIBS) -lm -ldl
192
193 snapDb: snapDb.o $(SNAPDBLIBS)
194 $(RM) snapDb
195 $(CC) -g -o snapDb snapDb.o $(SNAPDBLIBS) -lm -ldl -lsocket -lnsl
196
197 startMessage: message.o ../bin/tisMsgLib.a
198 $(RM) startMessage
199 $(CC) -g -o startMessage message.o ../bin/tisMsgLib.a \
200 -L/usr/dt/lib -L/usr/openwin/lib \
201 -lMrm -lXm -lXt -lX11 -lm -ldl -lgen -lsocket -lnsl
202
203 synclist: synclist.o $(SYNCLISTLIBS)
204 $(RM) synclist
205 $(CC) -g -o synclist synclist.o $(LIBS) -lm -ldl
206
207 UpdateMapBd: update_mapboard.o ../alarm/utils/alarmLib.o $(LIBS)
208 $(RM) UpdateMapBd
209 $(CC) -g -o UpdateMapBd update_mapboard.o ../alarm/utils/alarmLib.o \
210 $(LIBS) -lm -ldl -lsocket -lnsl
211
212 ############ OBJECTS ##########################################################
213
214 ackgroup.o: $(SRC)/ackgroup.c
215 $(RM) ackgroup.o
216 $(CC) -c $(CFLAGS) $(INCLUDES) $(SRC)/ackgroup.c
217
218 ackpoint.o: $(SRC)/ackpoint.c
219 $(RM) ackpoint.o
220 $(CC) -c $(CFLAGS) $(INCLUDES) $(SRC)/ackpoint.c
221
222 ../alarm/utils/alarmLib.o: $(SRCPATH)/alarm/utils/alarmLib.c
223 cd ../alarm/utils; make alarmLib.o
224
225 binPvControl.o: $(SRC)/binPvControl.C
226 $(RM) binPvControl.o
227 $(CPLUSPLUS) -c $(CFLAGS) $(INCLUDES) $(SRC)/binPvControl.C
228
229 ChannelList.o: $(SRC)/ChannelList.C
230 $(RM) ChannelList.o
231 $(CPLUSPLUS) -c $(CFLAGS) $(INCLUDES) $(SRC)/ChannelList.C
232
233 dbstruct.o: $(SRC)/dbstruct.c
234 $(RM) dbstruct.o
235 $(CC) -c $(CFLAGS) $(INCLUDES) $(SRC)/dbstruct.c
236
237 grabCursor.o: $(SRC)/grabCursor.c
238 $(RM) grabCursor.o
239 $(CC) -c $(CFLAGS) -DTOOL_BAR -D_NO_PROTO -DSTRINGS_ALIGNED -DNO_REGEX \
240 -DNO_ISDIR -DUSE_RE_COMP -DUSE_GETWD \
241 -I/usr/dt/include -I/usr/openwin/include $(SRC)/grabCursor.c
242
243 lamp_test.o: $(SRC)/lamp_test.c
244 $(RM) lamp_test.o
245 $(CC) -c $(CFLAGS) $(INCLUDES) $(SRC)/lamp_test.c
246
247 launch.o: $(SRC)/launch.c
248 $(RM) launch.o
249 $(CC) -c $(CFLAGS) $(INCLUDES) $(SRC)/launch.c
250
251 launchscript.o: $(SRC)/launchscript.c
252 $(RM) launchscript.o
253 $(CC) -c $(CFLAGS) $(INCLUDES) $(SRC)/launchscript.c
254
255 launchtype.o: $(SRC)/launchtype.c
256 $(RM) launchtype.o
257 $(CC) -c $(CFLAGS) $(INCLUDES) $(SRC)/launchtype.c
258
259 makeLinkSpec.o: $(SRC)/makeLinkSpec.c
260 $(RM) makeLinkSpec.o
261 $(CC) -c $(CFLAGS) $(INCLUDES) $(SRC)/makeLinkSpec.c
262
263 message.o: $(SRC)/message.c
264 $(RM) message.o
265 $(CC) -c $(CFLAGS) $(INCLUDES) \
266 -I/usr/dt/include -I/usr/openwin/include \
267 $(SRC)/message.c
268
269 orderAccumPoints.o: $(SRC)/orderAccumPoints.c
270 $(RM) orderAccumPoints.o
271 $(CC) -c $(CFLAGS) $(INCLUDES) $(SRC)/orderAccumPoints.c
272
273 pvXref.o: $(SRC)/pvXref.c
274 $(RM) pvXref.o
275 $(CC) -c $(CFLAGS) $(INCLUDES) $(SRC)/pvXref.c
276
277 serverInit.o: $(SRC)/serverInit.c
278 $(RM) serverInit.o
279 $(CC) -c $(CFLAGS) $(INCLUDES) $(SRC)/serverInit.c
280
281 signals.o: $(SRC)/signals.c
282 $(RM) signals.o
283 $(CC) -c $(CFLAGS) $(INCLUDES) $(SRC)/signals.c
284
285 snapDb.o: $(SRC)/snapDb.c
286 $(RM) snapDb.o
287 $(CC) -c $(CFLAGS) $(INCLUDES) $(SRC)/snapDb.c
288
289 synclist.o: $(SRC)/synclist.c
290 $(RM) synclist.o
291 $(CC) -c $(CFLAGS) $(INCLUDES) $(SRC)/synclist.c
292
293 update_mapboard.o: $(SRC)/update_mapboard.c
294 $(RM) update_mapboard.o
295 $(CC) -c $(CFLAGS) $(INCLUDES) $(SRC)/update_mapboard.c
296
297 install :
298 cp -p ackgroup ../bin
299 cp -p ackpoint ../bin
300 cp -p binPvControl ../bin
301 cp -p dbstruct ../bin
302 cp -p grabCursor ../bin
303 cp -p lamptest ../bin
304 cp -p launch ../bin
305 cp -p launchscript ../bin
306 cp -p launchtype ../bin
307 cp -p makeLinkSpec ../bin
308 cp -p OrderAccumPoints ../bin
309 cp -p pvXref ../bin
310 cp -p snapDb ../bin
311 cp -p startMessage ../bin
312 cp -p synclist ../bin
313 cp -p UpdateMapBd ../bin
314
315 clean :
316 $(RM) $(OBJS)
317 $(RM) ackgroup
318 $(RM) ackpoint
319 $(RM) binPvControl
320 $(RM) dbstruct
321 $(RM) grabCursor
322 $(RM) lamptest
323 $(RM) launch
324 $(RM) launchscript
325 $(RM) launchtype
326 $(RM) makeLinkSpec
327 $(RM) OrderAccumPoints
328 $(RM) snapDb
329 $(RM) startMessage
330 $(RM) pvXref
331 $(RM) synclist
332 $(RM) UpdateMapBd
333 $(RM) Makefile.depend
334
335 depend: Makefile.depend
336
337 Makefile.depend: $(SRCS) Makefile
338 $(RM) Makefile.depend
339 $(CC) -M $(ALLDEFINES) $(SRCS) > Makefile.depend
340
341 include Makefile.depend
342

  ViewVC Help
Powered by ViewVC 1.1.28