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

Contents of /sun2.4/sequencer/Makefile

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


Revision 1.6 - (show annotations)
Thu Aug 26 21:18:20 1999 UTC (23 years, 3 months ago) by tis4000
Branch: MAIN
CVS Tags: t55baseline, Duluth_baseline, LMC_baseline, HEAD
Changes since 1.5: +1 -1 lines
made Makefile.depend dependant on Makefile

1 CC = gcc -inostdinc -I/usr/include -DSOLARIS
2 CFLAGS = -DV5_vxWorks
3 EXTRA_FLAGS = -g -c -Wunused
4 RM = rm -f
5
6
7 TOP = ../../..
8 SHAREPATH = $(TOP)/share
9 SRCPATH = $(TOP)/share/src
10 SRC = $(SRCPATH)/sequencer
11
12 SYSLIBS = -ll
13 STDLIBS = -ldl -lsocket -lnsl
14
15 LIBS = ../bin/tisMsgLib.a
16
17 INCLUDES = \
18 -I. \
19 -I$(SRC) \
20 -I$(SHAREPATH)/epicsH
21
22 EXTRA_INCLUDES = \
23 -I/tools/vw502/h
24
25 ALLDEFINES = $(INCLUDES) $(EXTRA_INCLUDES) -DSOLARIS
26
27 SNCSRCS = \
28 $(SRC)/gen_ss_code.c \
29 $(SRC)/gen_tables.c \
30 $(SRC)/parse.c \
31 $(SRC)/phase2.c \
32 snc.c \
33 $(SRC)/snc_main.c \
34 $(SRC)/snc_lex.c
35 OTHERSRCS = \
36 $(SRC)/snlping.c \
37 $(SRC)/snlmping.c \
38 $(SRC)/snlload.c \
39 $(SRC)/snlstart.c \
40 $(SRC)/snlkill.c \
41 $(SRC)/snlunload.c \
42 $(SRC)/snlterminate.c \
43 $(SRC)/snlrepmod.c \
44 $(SRC)/snlrepprog.c \
45 $(SRC)/snlrepss.c \
46 $(SRC)/snlrepchans.c \
47 $(SRC)/snlrepvars.c \
48 $(SRC)/snlsuspend.c \
49 $(SRC)/snlresume.c
50
51 SRCS = $(SNCSRCS) $(OTHERSRCS)
52
53 OBJS = \
54 gen_ss_code.o \
55 gen_tables.o \
56 parse.o \
57 phase2.o \
58 snc.o \
59 snc_main.o \
60 snc_lex.o \
61 sncVersion.o
62
63 OTHEROBJS = \
64 snlmonlib.o \
65 snlping.o \
66 snlmping.o \
67 snlload.o \
68 snlstart.o \
69 snlkill.o \
70 snlunload.o \
71 snlterminate.o \
72 snlrepmod.o \
73 snlrepprog.o \
74 snlrepss.o \
75 snlrepchans.o \
76 snlrepvars.o \
77 snlsuspend.o \
78 snlresume.o
79
80 all:: \
81 depend \
82 snc \
83 snlmonlib.o \
84 snlkill \
85 snlload \
86 snlmping \
87 snlping \
88 snlrepmod \
89 snlrepprog \
90 snlrepss \
91 snlrepchans \
92 snlrepvars \
93 snlresume \
94 snlstart \
95 snlsuspend \
96 snlterminate \
97 snlunload
98
99 ########### TARGETS #########################################################
100
101 snc: $(OBJS)
102 $(RM) snc
103 $(CC) -o snc $(OBJS) $(SYSLIBS) $(STDLIBS)
104
105 snlmonlib.o: $(SRC)/snlmonlib.c
106 $(RM) snlmonlib.o
107 $(CC) $(CFLAGS) $(EXTRA_FLAGS) -DSUN -DHOST $(INCLUDES) $(EXTRA_INCLUDES) \
108 $(SRC)/snlmonlib.c
109
110 snlping: snlping.o snlmonlib.o
111 $(RM) snlping
112 $(CC) -g -o snlping snlping.o snlmonlib.o \
113 $(LIBS) $(SYSLIBS) $(STDLIBS)
114
115 snlmping: snlmping.o snlmonlib.o
116 $(RM) snlmping
117 $(CC) -g -o snlmping snlmping.o snlmonlib.o \
118 $(LIBS) $(SYSLIBS) $(STDLIBS)
119
120 snlkill: snlkill.o snlmonlib.o
121 $(RM) snlkill
122 $(CC) -g -o snlkill snlkill.o snlmonlib.o \
123 $(LIBS) $(SYSLIBS) $(STDLIBS)
124
125 snlload: snlload.o snlmonlib.o
126 $(RM) snlload
127 $(CC) -g -o snlload snlload.o snlmonlib.o \
128 $(LIBS) $(SYSLIBS) $(STDLIBS)
129
130 snlrepmod: snlrepmod.o snlmonlib.o
131 $(RM) snlrepmod
132 $(CC) -g -o snlrepmod snlrepmod.o snlmonlib.o \
133 $(LIBS) $(SYSLIBS) $(STDLIBS)
134
135 snlrepprog: snlrepprog.o snlmonlib.o
136 $(RM) snlrepprog
137 $(CC) -g -o snlrepprog snlrepprog.o snlmonlib.o \
138 $(LIBS) $(SYSLIBS) $(STDLIBS)
139
140 snlrepss: snlrepss.o snlmonlib.o
141 $(RM) snlrepss
142 $(CC) -g -o snlrepss snlrepss.o snlmonlib.o \
143 $(LIBS) $(SYSLIBS) $(STDLIBS)
144
145 snlrepchans: snlrepchans.o snlmonlib.o
146 $(RM) snlrepchans
147 $(CC) -g -o snlrepchans snlrepchans.o snlmonlib.o \
148 $(LIBS) $(SYSLIBS) $(STDLIBS)
149
150 snlrepvars: snlrepvars.o snlmonlib.o
151 $(RM) snlrepvars
152 $(CC) -g -o snlrepvars snlrepvars.o snlmonlib.o \
153 $(LIBS) $(SYSLIBS) $(STDLIBS)
154
155 snlresume: snlresume.o snlmonlib.o
156 $(RM) snlresume
157 $(CC) -g -o snlresume snlresume.o snlmonlib.o \
158 $(LIBS) $(SYSLIBS) $(STDLIBS)
159
160 snlstart: snlstart.o snlmonlib.o
161 $(RM) snlstart
162 $(CC) -g -o snlstart snlstart.o snlmonlib.o \
163 $(LIBS) $(SYSLIBS) $(STDLIBS)
164
165 snlsuspend: snlsuspend.o snlmonlib.o
166 $(RM) snlsuspend
167 $(CC) -g -o snlsuspend snlsuspend.o snlmonlib.o \
168 $(LIBS) $(SYSLIBS) $(STDLIBS)
169
170 snlterminate: snlterminate.o snlmonlib.o
171 $(RM) snlterminate
172 $(CC) -g -o snlterminate snlterminate.o snlmonlib.o \
173 $(LIBS) $(SYSLIBS) $(STDLIBS)
174
175 snlunload: snlunload.o snlmonlib.o
176 $(RM) snlunload
177 $(CC) -g -o snlunload snlunload.o snlmonlib.o \
178 $(LIBS) $(SYSLIBS) $(STDLIBS)
179
180 ########### OBJECTS #########################################################
181
182 gen_ss_code.o: $(SRC)/gen_ss_code.c
183 $(RM) gen_ss_code.o
184 $(CC) -c $(CFLAGS) $(INCLUDES) $(EXTRA_INCLUDES) $(SRC)/gen_ss_code.c
185
186 gen_tables.o: $(SRC)/gen_tables.c
187 $(RM) gen_tables.o
188 $(CC) -c $(CFLAGS) $(INCLUDES) $(EXTRA_INCLUDES) $(SRC)/gen_tables.c
189
190 parse.o: $(SRC)/parse.c
191 $(RM) parse.o
192 $(CC) -c $(CFLAGS) $(INCLUDES) $(EXTRA_INCLUDES) $(SRC)/parse.c
193
194 phase2.o: $(SRC)/phase2.c
195 $(RM) phase2.o
196 $(CC) -c $(CFLAGS) $(INCLUDES) $(EXTRA_INCLUDES) $(SRC)/phase2.c
197
198 snc.c: $(SRC)/snc.y
199 yacc -d $(SRC)/snc.y
200 mv y.tab.c snc.c
201
202 snc.o: snc.c
203 $(RM) snc.o
204 $(CC) -c $(CFLAGS) $(INCLUDES) $(EXTRA_INCLUDES) snc.c
205
206 snc_main.o: $(SRC)/snc_main.c
207 $(RM) snc_main.o
208 $(CC) -c $(CFLAGS) $(INCLUDES) $(EXTRA_INCLUDES) $(SRC)/snc_main.c
209
210 snc_lex.o: $(SRC)/snc_lex.c
211 $(RM) snc_lex.o
212 $(CC) -c $(CFLAGS) $(INCLUDES) $(EXTRA_INCLUDES) -I. $(SRC)/snc_lex.c
213
214 snlkill.o: $(SRC)/snlkill.c
215 $(RM) snlkill.o
216 $(CC) $(CFLAGS) $(EXTRA_FLAGS) $(INCLUDES) $(SRC)/snlkill.c
217
218 snlload.o: $(SRC)/snlload.c
219 $(RM) snlload.o
220 $(CC) $(CFLAGS) $(EXTRA_FLAGS) $(INCLUDES) $(SRC)/snlload.c
221
222 snlmping.o: $(SRC)/snlmping.c
223 $(RM) snlmping.o
224 $(CC) $(CFLAGS) $(EXTRA_FLAGS) $(INCLUDES) $(SRC)/snlmping.c
225
226 snlping.o: $(SRC)/snlping.c
227 $(RM) snlping.o
228 $(CC) $(CFLAGS) $(EXTRA_FLAGS) $(INCLUDES) $(SRC)/snlping.c
229
230 snlrepchans.o: $(SRC)/snlrepchans.c
231 $(RM) snlrepchans.o
232 $(CC) $(CFLAGS) $(EXTRA_FLAGS) $(INCLUDES) $(SRC)/snlrepchans.c
233
234 snlrepmod.o: $(SRC)/snlrepmod.c
235 $(RM) snlrepmod.o
236 $(CC) $(CFLAGS) $(EXTRA_FLAGS) $(INCLUDES) $(SRC)/snlrepmod.c
237
238 snlrepprog.o: $(SRC)/snlrepprog.c
239 $(RM) snlrepprog.o
240 $(CC) $(CFLAGS) $(EXTRA_FLAGS) $(INCLUDES) $(SRC)/snlrepprog.c
241
242 snlrepss.o: $(SRC)/snlrepss.c
243 $(RM) snlrepss.o
244 $(CC) $(CFLAGS) $(EXTRA_FLAGS) $(INCLUDES) $(SRC)/snlrepss.c
245
246 snlresume.o: $(SRC)/snlresume.c
247 $(RM) snlresume.o
248 $(CC) $(CFLAGS) $(EXTRA_FLAGS) $(INCLUDES) $(EXTRA_INCLUDES) $(SRC)/snlresume.c
249
250 snlrepvars.o: $(SRC)/snlrepvars.c
251 $(RM) snlrepvars.o
252 $(CC) $(CFLAGS) $(EXTRA_FLAGS) $(INCLUDES) $(EXTRA_INCLUDES) $(SRC)/snlrepvars.c
253
254 snlstart.o: $(SRC)/snlstart.c
255 $(RM) snlstart.o
256 $(CC) $(CFLAGS) $(EXTRA_FLAGS) $(INCLUDES) $(SRC)/snlstart.c
257
258 snlsuspend.o: $(SRC)/snlsuspend.c
259 $(RM) snlsuspend.o
260 $(CC) $(CFLAGS) $(EXTRA_FLAGS) $(INCLUDES) $(EXTRA_INCLUDES) $(SRC)/snlsuspend.c
261
262 snlterminate.o: $(SRC)/snlterminate.c
263 $(RM) snlterminate.o
264 $(CC) $(CFLAGS) $(EXTRA_FLAGS) $(INCLUDES) $(SRC)/snlterminate.c
265
266 snlunload.o: $(SRC)/snlunload.c
267 $(RM) snlunload.o
268 $(CC) $(CFLAGS) $(EXTRA_FLAGS) $(INCLUDES) $(SRC)/snlunload.c
269
270 sncVersion.o: ./sncVersion.c
271 $(RM) sncVersion.o
272 $(CC) -c $(CFLAGS) $(INCLUDES) ./sncVersion.c
273
274 ./sncVersion.c: $(SNCSRCS) $(SRC)/Version
275 csh $(SRC)/makeVersion $(SRC)/Version > ./sncVersion.c
276
277 install:
278 cp -p snc ../bin
279 cp -p snlping ../bin
280 cp -p snlmping ../bin
281 cp -p snlload ../bin
282 cp -p snlstart ../bin
283 cp -p snlkill ../bin
284 cp -p snlunload ../bin
285 cp -p snlterminate ../bin
286 cp -p snlrepmod ../bin
287 cp -p snlrepprog ../bin
288 cp -p snlrepss ../bin
289 cp -p snlrepchans ../bin
290 cp -p snlrepvars ../bin
291 cp -p snlsuspend ../bin
292 cp -p snlresume ../bin
293
294 clean:
295 $(RM) snc
296 $(RM) snlping
297 $(RM) snlmping
298 $(RM) snlload
299 $(RM) snlstart
300 $(RM) snlkill
301 $(RM) snlunload
302 $(RM) snlterminate
303 $(RM) snlrepmod
304 $(RM) snlrepprog
305 $(RM) snlrepss
306 $(RM) snlrepchans
307 $(RM) snlrepvars
308 $(RM) snlsuspend
309 $(RM) snlresume
310 $(RM) $(OBJS)
311 $(RM) $(OTHEROBJS)
312 $(RM) snc.c
313 $(RM) y.tab.h
314 $(RM) sncVersion.c
315 $(RM) Makefile.depend
316
317 depend: Makefile.depend
318
319 Makefile.depend: Makefile $(SRCS) Makefile
320 $(RM) Makefile.depend
321 $(CC) -M $(ALLDEFINES) $(SRCS) > Makefile.depend
322
323 include Makefile.depend
324

  ViewVC Help
Powered by ViewVC 1.1.28