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

  ViewVC Help
Powered by ViewVC 1.1.30