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

Contents of /sun2.4/servers/Makefile

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


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

1 CC = gcc -I/usr/include -DSOLARIS
2 ALTCC=CC -DSOLARIS -g
3 CFLAGS = -g -DCONTRACTS -DUNIX -DATT -D__EXTENSIONS__ -DUSECB63
4 GCCFLAGS = -c -Wunused $(CFLAGS)
5 STDLIBS = -ldl -lsocket -lnsl
6 RM = rm -f
7
8 TOP = ../../..
9
10 CODEBASEPATH = /tools/codebase63/source
11
12 SHAREPATH = $(TOP)/share
13 SRCPATH = $(SHAREPATH)/src
14 SRC = $(SRCPATH)/servers
15 EPICSHDIR = $(SHAREPATH)/epicsH
16 TRENDVUSRCDIR = $(SRCPATH)/trendvuCC
17 LIBTISSRCDIR = $(SRCPATH)/libtis
18 TRENDSRCDIR = $(SRCPATH)/newtrend
19 AVMSRCDIR = $(SRCPATH)/avm
20
21 INCLUDES = \
22 -I$(SRC) \
23 -I$(CODEBASEPATH) \
24 -I$(EPICSHDIR) \
25 -I$(TRENDSRCDIR) \
26 -I$(LIBTISSRCDIR) \
27 -I$(AVMSRCDIR)
28
29 ALLDEFINES = $(INCLUDES)
30
31 LIBS = \
32 ../bin/tisMsgLib.a \
33 ../bin/libCom.a \
34 ../bin/libtis.a \
35 ../bin/libUnix.a \
36 $(CODEBASEPATH)/libcb.a \
37 ../bin/libca.a -lm
38
39 SRCS = \
40 $(SRC)/client.c \
41 $(SRC)/mergeupdates.c \
42 $(SRC)/OpPrivData.c \
43 $(SRC)/plcTrendLib.c \
44 $(SRC)/server.c \
45 $(SRC)/snapsync.c \
46 $(SRC)/svcmgr.c \
47 $(SRC)/svcquery.c \
48 $(SRC)/trendupdate.c
49 # $(SRC)/trenddata.c
50
51 all : \
52 depend \
53 libServer.a \
54 client.o \
55 OpPrivData \
56 server.o \
57 svcmgr \
58 svcquery
59
60 #-------------------------------------------------------------------------------
61 # Svcquery - respond to broadcast for server site
62
63 svcquery : svcquery.o
64 $(RM) svcquery
65 $(CC) $(CFLAGS) -o svcquery svcquery.o $(STDLIBS) ../bin/tisMsgLib.a
66
67 svcquery.o : $(SRC)/svcquery.c
68 $(RM) svcquery.o
69 $(CC) $(GCCFLAGS) -o svcquery.o $(INCLUDES) $(SRC)/svcquery.c
70
71 #-------------------------------------------------------------------------------
72 # Svcmgr - execute proper server for the client request
73
74 svcmgr : svcmgr.o ../bin/tisMsgLib.a
75 $(RM) svcmgr
76 $(CC) $(CFLAGS) -o svcmgr svcmgr.o $(STDLIBS) ../bin/tisMsgLib.a
77
78 svcmgr.o : $(SRC)/svcmgr.c
79 $(RM) svcmgr.o
80 $(CC) $(GCCFLAGS) -o svcmgr.o $(INCLUDES) $(SRC)/svcmgr.c
81
82 #-------------------------------------------------------------------------------
83 # Snapsync client - requests data from other hosts to fill in ar_snap file
84
85 snapsync : snapsync.o client.o \
86 ../bin/xbaseSnapLib.a ../bin/dbLibrary.a $(LIBS)
87 $(RM) snapsync
88 $(CC) $(CFLAGS) -o snapsync snapsync.o client.o \
89 ../newtrend/trendLib.o ../newtrend/utils.o \
90 ../bin/xbaseSnapLib.a ../bin/dbLibrary.a \
91 $(LIBS) $(STDLIBS)
92
93 snapsync.o : $(SRC)/snapsync.c $(TRENDSRCDIR)/archiveLib.h \
94 $(SRC)/server.h $(SRC)/tisservice.h
95 $(RM) snapsync.o
96 $(CC) $(GCCFLAGS) -o snapsync.o $(INCLUDES) $(SRC)/snapsync.c
97
98 #-------------------------------------------------------------------------------
99 # Trenddata server program components
100
101 trenddata : trenddata.o server.o ../newtrend/trendLib.o ../newtrend/utils.o \
102 ../bin/xbaseSnapLib.a ../bin/dbLibrary.a $(LIBS)
103 $(RM) trenddata
104 $(CC) $(CFLAGS) -o trenddata trenddata.o server.o \
105 ../newtrend/trendLib.o ../newtrend/utils.o \
106 ../bin/xbaseSnapLib.a ../bin/dbLibrary.a $(LIBS) $(STDLIBS)
107
108 trenddata.o : $(SRC)/trenddata.c $(TRENDSRCDIR)/archiveLib.h \
109 $(SRC)/server.h $(SRC)/tisservice.h
110 $(RM) trenddata.o
111 $(CC) $(GCCFLAGS) -o trenddata.o $(INCLUDES) $(SRC)/trenddata.c
112
113 #-------------------------------------------------------------------------------
114 # oracle Snapsync client - requests data from other hosts to fill in ar_snap file
115
116 oracleSnapsync : snapsync.o client.o ../bin/tisMsgLib.a oracleTrendfil.o \
117 ../newtrend/trendLib.o ../newtrend/archiveLib.o \
118 ../newtrend/oracleSnapLib.o ../avm/catLib.o ../newtrend/utils.o \
119 ../bin/tisMsgLib.a
120 $(RM) oracleSnapsync
121 $(CC) $(CFLAGS) -o oracleSnapsync snapsync.o client.o ../bin/tisMsgLib.a \
122 oracleTrendfil.o \
123 ../newtrend/trendLib.o ../newtrend/utils.o \
124 $(LIBS) $(STDLIBS) ../newtrend/archiveLib.o ../newtrend/oracleSnapLib.o \
125 ../avm/catLib.o \
126 $(CODEBASEPATH)/libcb.a ../bin/dbLibrary.a -lUnix -lcb \
127 -L$(ORACLEHOME)/lib -lsql $(ORACLEHOME)/lib/osntab.o -lsqlnet \
128 -lora -lsqlnet -lpls -lora -lnlsrtl3 -lc3v6 -lcore3 -lnlsrtl3 \
129 -lcore3 -lsocket -lnsl -lm -ldl -laio -lsocket
130
131
132 #-------------------------------------------------------------------------------
133 # oracle Trenddata server program components
134
135 oracleTrenddata : trenddata.o server.o oracleTrendfil.o ../newtrend/trendLib.o \
136 ../newtrend/utils.o ../newtrend/archiveLib.o \
137 ../newtrend/oracleSnapLib.o ../avm/catLib.o
138 rm -f oracleTrenddata
139 $(CC) $(CFLAGS) -o oracleTrenddata trenddata.o server.o oracleTrendfil.o \
140 ../newtrend/trendLib.o ../newtrend/utils.o \
141 $(LIBS) $(STDLIBS) ../newtrend/archiveLib.o ../newtrend/oracleSnapLib.o \
142 ../avm/catLib.o \
143 $(TOP)/unix/sun2.4/bin/libcb.a ../bin/dbLibrary.a -lUnix -lcb \
144 -L$(ORACLEHOME)/lib -lsql $(ORACLEHOME)/lib/osntab.o -lsqlnet \
145 -lora -lsqlnet -lpls -lora -lnlsrtl3 -lc3v6 -lcore3 -lnlsrtl3 \
146 -lcore3 -lsocket -lnsl -lm -ldl -laio -lsocket
147
148
149 oracleTrendfil.o : $(TRENDVUSRCDIR)/trendfil.c $(TRENDVUSRCDIR)/trendfil.h
150 $(CC) $(CFLAGS) -DORACLESNAP -c -o oracleTrendfil.o $(INCLUDES) \
151 $(TRENDVUSRCDIR)/trendfil.c
152
153 #-------------------------------------------------------------------------------
154 # Trend update and merge components
155
156 trendupdate : trendupdate.o plcTrendLib.o ../servers/server.o utils.o \
157 $(CODEBASEPATH)/libcb.a ../bin/tisMsgLib.a ../libtis.a
158 $(RM) trendupdate
159 $(CC) -o trendupdate trendupdate.o plcTrendLib.o \
160 ../servers/server.o utils.o \
161 $(CODEBASEPATH)/libcb.a ../bin/tisMsgLib.a ../bin/libtis.a\
162 -lm -lsocket -lnsl
163
164 trendupdate.o : $(SRC)/trendupdate.c
165 $(RM) trendupdate.o
166 $(CC) $(GCCFLAGS) $(INCLUDES) $(SRC)/trendupdate.c
167
168 testtrendupdate: testtrendupdate.o plcTrendLib.o ../servers/server.o utils.o
169 $(CODEBASEPATH)/libcb.a ../bin/tisMsgLib.a ../bin/libtis.a
170 $(RM) testtrendupdate
171 $(CC) -o testtrendupdate testtrendupdate.o plcTrendLib.o \
172 ../servers/server.o utils.o
173 $(CODEBASEPATH)/libcb.a ../bin/tisMsgLib.a ../bin/libtis.a \
174 -lm -lsocket -lnsl
175
176 testtrendupdate.o : $(SRC)/trendupdate.c
177 $(RM) testtrendupdate.o
178 $(CC) $(GCCFLAGS) $(INCLUDES) -DTEST -o testtrendupdate.o $(SRC)/trendupdate.c
179
180 plcTrendLib.o : $(SRC)/plcTrendLib.c
181 $(RM) plcTrendLib.o
182 $(CC) $(GCCFLAGS) $(INCLUDES) $(SRC)/plcTrendLib.c
183
184 mergeupdates: mergeupdates.o utils.o ../servers/client.o \
185 ../bin/tisMsgLib.a $(CODEBASEPATH)/libcb.a ../bin/tisMsgLib.a \
186 ../libtis.a
187 $(CC) -o mergeupdates mergeupdates.o ../servers/client.o utils.o \
188 ../bin/tisMsgLib.a $(CODEBASEPATH)/libcb.a ../bin/tisMsgLib.a \
189 ../bin/libtis.a \
190 -lm -lsocket -lnsl
191
192 mergeupdates.o : $(SRC)/mergeupdates.c
193 $(RM) mergeupdates.o
194 $(CC) $(GCCFLAGS) $(INCLUDES) $(SRC)/mergeupdates.c
195
196 #-------------------------------------------------------------------------------
197 # OpPrivdata server program components
198
199 OpPrivData : OpPrivData.o server.o $(LIBS)
200 $(RM) OpPrivData
201 $(CC) $(CFLAGS) -o OpPrivData OpPrivData.o server.o \
202 $(LIBS) $(STDLIBS)
203
204 OpPrivData.o : $(SRC)/OpPrivData.c $(SRC)/OpPrivData.h \
205 $(LIBTISSRCDIR)/OperPriv.h $(SRC)/server.h \
206 $(SRC)/tisservice.h
207 $(RM) OpPrivData.o
208 $(CC) $(GCCFLAGS) -o OpPrivData.o $(INCLUDES) $(SRC)/OpPrivData.c
209
210 debugOpPrivData : debugOpPrivData.o serverDebug.o $(LIBS)
211 $(RM) debugOpPrivData
212 $(CC) $(CFLAGS) -o debugOpPrivData debugOpPrivData.o serverDebug.o \
213 $(LIBS) $(STDLIBS)
214
215 debugOpPrivData.o : $(SRC)/OpPrivData.c $(SRC)/OpPrivData.h \
216 $(LIBTISSRCDIR)/OperPriv.h $(SRC)/server.h \
217 $(SRC)/tisservice.h
218 $(RM) debugOpPrivData.o
219 $(CC) $(GCCFLAGS) -DDEBUG -o debugOpPrivData.o $(INCLUDES) $(SRC)/OpPrivData.c
220 #-------------------------------------------------------------------------------
221 # libServer.a
222 libServer.a: client.o server.o
223 $(RM) libServer.a
224 ar crv libServer.a client.o server.o
225 cp -p libServer.a ../bin
226 #-------------------------------------------------------------------------------
227 # Common server program components
228
229 ../avm/catLib.o: $(SRCPATH)/avm/catLib.c
230 cd ../avm ; make catLib.o
231
232 client.o : $(SRC)/client.c $(SRC)/client.h $(SRC)/tisservice.h
233 $(RM) client.o
234 $(CC) $(GCCFLAGS) -o client.o $(INCLUDES) $(SRC)/client.c
235
236 clientDebug.o : $(SRC)/client.c $(SRC)/client.h $(SRC)/tisservice.h
237 $(RM) clientDebug.o
238 $(CC) $(GCCFLAGS) -DDEBUG -o clientDebug.o $(INCLUDES) $(SRC)/client.c
239
240 server.o : $(SRC)/server.c $(SRC)/server.h $(SRC)/tisservice.h
241 $(RM) server.o
242 $(CC) $(GCCFLAGS) -o server.o $(INCLUDES) $(SRC)/server.c
243
244 serverDebug.o : $(SRC)/server.c $(SRC)/server.h $(SRC)/tisservice.h
245 $(RM) serverDebug.o
246 $(CC) $(GCCFLAGS) -DDEBUG -o serverDebug.o $(INCLUDES) $(SRC)/server.c
247
248
249 install :
250 cp -p OpPrivData ../bin
251 cp -p libServer.a ../bin
252 cp -p svcquery ../bin
253 cp -p svcmgr ../bin
254
255 clean :
256 $(RM) client.o
257 $(RM) server.o
258 $(RM) serverDebug.o
259 $(RM) utils.o
260 $(RM) svcquery
261 $(RM) svcquery.o
262 $(RM) svcmgr
263 $(RM) svcmgr.o
264 $(RM) snapsync
265 $(RM) snapsync.o
266 $(RM) trenddata
267 $(RM) trenddata.o
268 $(RM) oracleSnapsync
269 $(RM) oracleTrendfil.o
270 $(RM) oracleTrenddata
271 $(RM) trendupdate
272 $(RM) trendupdate.o
273 $(RM) plcTrendLib.o
274 $(RM) testtrendupdate
275 $(RM) testtrendupdate.o
276 $(RM) mergeupdates
277 $(RM) mergeupdates.o
278 $(RM) OpPrivData
279 $(RM) OpPrivData.o
280 $(RM) debugOpPrivData
281 $(RM) debugOpPrivData.o
282 $(RM) libServer.a
283 $(RM) Makefile.depend
284
285 depend: Makefile.depend
286
287 Makefile.depend: $(SRCS) Makefile
288 $(RM) Makefile.depend
289 $(CC) -M $(ALLDEFINES) $(SRCS) > Makefile.depend
290
291 include Makefile.depend
292
293

  ViewVC Help
Powered by ViewVC 1.1.28