1 |
CC = CC |
2 |
CFLAGS = -DSOLARIS -DLOCAL_DB -c -g |
3 |
STD_C = gcc |
4 |
STD_CFLAGS = -Wunused |
5 |
RM = rm -f |
6 |
|
7 |
CODEBASEPATH = /tools/codebase63/source |
8 |
TOP=../../.. |
9 |
SHAREPATH = $(TOP)/share |
10 |
SRCPATH=$(SHAREPATH)/src |
11 |
SRC = $(SRCPATH)/trendvuCC |
12 |
ALSRC = $(SRCPATH)/alarmVuCC |
13 |
ALMGRSRC = $(SRCPATH)/alarm |
14 |
TISGALAXYPATH=$(SRCPATH)/tisgalaxylib |
15 |
INCLUDES = \ |
16 |
-I$(SRC) \ |
17 |
-I$(ALSRC) \ |
18 |
-I$(ALMGRSRC) \ |
19 |
-I$(GALAXYHOME)/include \ |
20 |
-I$(SHAREPATH)/epicsH \ |
21 |
-I$(TOP)/share/ascii \ |
22 |
-I$(SRCPATH)/tisgalaxylib \ |
23 |
-I$(CODEBASEPATH) \ |
24 |
-I$(SRCPATH)/libtis \ |
25 |
-I$(SRCPATH)/newtrend \ |
26 |
-I$(SRCPATH)/avm \ |
27 |
-I/usr/openwin/include \ |
28 |
-I/usr/include |
29 |
ALLDEFINES = $(INCLUDES) |
30 |
STDLIBS = -lsocket -lnsl -lm -lposix4 |
31 |
LIBS = \ |
32 |
../bin/xbaseSnapLib.a \ |
33 |
../bin/tisMsgLib.a \ |
34 |
../bin/libCom.a \ |
35 |
../bin/dbLibrary.a \ |
36 |
../bin/libUnix.a \ |
37 |
../bin/libtis.a \ |
38 |
../bin/tisgalaxylib.a \ |
39 |
../bin/tisMsgLib.a \ |
40 |
$(CODEBASEPATH)/libcb.a |
41 |
|
42 |
ORACLETRENDLIBS = \ |
43 |
../newtrend/oracleSnapLib.o \ |
44 |
../newtrend/oracleArchiveLib.o \ |
45 |
../newtrend/trendLib.o \ |
46 |
../newtrend/utils.o \ |
47 |
../avm/catLib.o \ |
48 |
../bin/tisMsgLib.a \ |
49 |
../bin/libCom.a \ |
50 |
../bin/dbLibrary.a \ |
51 |
../bin/libUnix.a \ |
52 |
../bin/libtis.a \ |
53 |
../bin/tisgalaxylib.a \ |
54 |
../bin/tisMsgLib.a \ |
55 |
$(CODEBASEPATH)/libcb.a \ |
56 |
|
57 |
ORACLELIBS = \ |
58 |
-L$(ORACLE_HOME)/lib -lsql $(ORACLE_HOME)/lib/osntab.o -lsqlnet \ |
59 |
-lora -lsqlnet -lpls -lora -lnlsrtl3 -lc3v6 -lcore3 -lnlsrtl3 \ |
60 |
-lcore3 -ldl |
61 |
|
62 |
SRCS = \ |
63 |
$(SRC)/trendvu.cxx \ |
64 |
$(SRC)/trendcontrols.cxx \ |
65 |
$(SRC)/trenddetaillist.cxx \ |
66 |
$(SRC)/trenddocs.cxx \ |
67 |
$(SRC)/trendeditdlg.cxx \ |
68 |
$(SRC)/trendgraph.cxx \ |
69 |
$(SRC)/trendlimitlist.cxx \ |
70 |
$(SRC)/trendlistdlg.cxx \ |
71 |
$(SRC)/trendmacrodlg.cxx \ |
72 |
$(SRC)/trendnotesdlg.cxx \ |
73 |
$(SRC)/trendprefsdlg.cxx \ |
74 |
$(SRC)/trendsaveasdlg.cxx \ |
75 |
$(SRC)/trendsearchdlg.cxx \ |
76 |
$(SRC)/trendselectdlg.cxx \ |
77 |
$(SRC)/trendtextdlg.cxx \ |
78 |
$(SRC)/trendutils.c \ |
79 |
$(SRC)/trendvaluedlg.cxx \ |
80 |
$(SRC)/trendfmt.c \ |
81 |
$(ALSRC)/alpvmap.c |
82 |
|
83 |
OBJS = \ |
84 |
trendvu.o \ |
85 |
trendcontrols.o \ |
86 |
trenddetaillist.o \ |
87 |
trenddocs.o \ |
88 |
trendeditdlg.o \ |
89 |
trendgraph.o \ |
90 |
trendlimitlist.o \ |
91 |
trendlistdlg.o \ |
92 |
trendmacrodlg.o \ |
93 |
trendnotesdlg.o \ |
94 |
trendprefsdlg.o \ |
95 |
trendsaveasdlg.o \ |
96 |
trendsearchdlg.o \ |
97 |
trendselectdlg.o \ |
98 |
trendtextdlg.o \ |
99 |
trendutils.o \ |
100 |
trendvaluedlg.o \ |
101 |
trendfmt.o \ |
102 |
alpvmap.o |
103 |
|
104 |
ORACLE_OBJS = \ |
105 |
oracleTrendvu.o \ |
106 |
trendcontrols.o \ |
107 |
trenddetaillist.o \ |
108 |
trenddocs.o \ |
109 |
trendeditdlg.o \ |
110 |
trendgraph.o \ |
111 |
trendlimitlist.o \ |
112 |
trendlistdlg.o \ |
113 |
trendmacrodlg.o \ |
114 |
trendnotesdlg.o \ |
115 |
trendprefsdlg.o \ |
116 |
trendsaveasdlg.o \ |
117 |
trendsearchdlg.o \ |
118 |
trendselectdlg.o \ |
119 |
trendtextdlg.o \ |
120 |
trendutils.o \ |
121 |
trendvaluedlg.o \ |
122 |
trendfmt.o \ |
123 |
alpvmap.o |
124 |
|
125 |
all: depend trendvu oracleTrendvu trendvu.vr oracleTrendvu.vr |
126 |
|
127 |
trendvu: $(OBJS) $(LIBS) |
128 |
$(RM) trendvu |
129 |
$(CC) -g -o trendvu $(OBJS) \ |
130 |
-L$(GALAXYHOME)/lib -L/usr/openwin/lib $(LIBS)\ |
131 |
-lvgalaxy++-debug -lXext -lX11 $(STDLIBS) |
132 |
|
133 |
oracleTrendvu: $(ORACLE_OBJS) $(LIBS) $(ORACLETRENDLIBS) |
134 |
$(RM) oracleTrendvu |
135 |
$(CC) -g -o oracleTrendvu $(ORACLE_OBJS) \ |
136 |
-L$(GALAXYHOME)/lib -L/usr/openwin/lib \ |
137 |
$(ORACLETRENDLIBS) $(ORACLELIBS)\ |
138 |
-lvgalaxy++-debug -lXext -lX11 $(STDLIBS) |
139 |
|
140 |
trendvu.vr: $(SRC)/trendvu.vrx |
141 |
$(RM) trendvu.vr |
142 |
vrx2vr -force $(SRC)/trendvu.vrx |
143 |
cp -p trendvu.vr oracleTrendvu.vr |
144 |
|
145 |
oracleTrendvu.vr: $(SRC)/trendvu.vrx |
146 |
$(RM) trendvu.vr |
147 |
vrx2vr -force $(SRC)/trendvu.vrx |
148 |
cp -p trendvu.vr oracleTrendvu.vr |
149 |
|
150 |
trendvu.o: $(SRC)/trendvu.cxx |
151 |
$(RM) trendvu.o |
152 |
$(CC) $(CFLAGS) $(INCLUDES) $(SRC)/trendvu.cxx |
153 |
|
154 |
oracleTrendvu.o: $(SRC)/trendvu.cxx |
155 |
$(RM) oracleTrendvu.o |
156 |
$(CC) $(CFLAGS) $(INCLUDES) -DORACLESNAP -o oracleTrendvu.o $(SRC)/trendvu.cxx |
157 |
|
158 |
trendcontrols.o: $(SRC)/trendcontrols.cxx |
159 |
$(RM) trendcontrols.o |
160 |
$(CC) $(CFLAGS) $(INCLUDES) $(SRC)/trendcontrols.cxx |
161 |
|
162 |
trenddetaillist.o: $(SRC)/trenddetaillist.cxx |
163 |
$(RM) trenddetaillist.o |
164 |
$(CC) $(CFLAGS) $(INCLUDES) $(SRC)/trenddetaillist.cxx |
165 |
|
166 |
trenddocs.o: $(SRC)/trenddocs.cxx |
167 |
$(RM) trenddocs.o |
168 |
$(CC) $(CFLAGS) $(INCLUDES) $(SRC)/trenddocs.cxx |
169 |
|
170 |
trendeditdlg.o: $(SRC)/trendeditdlg.cxx |
171 |
$(RM) trendeditdlg.o |
172 |
$(CC) $(CFLAGS) $(INCLUDES) $(SRC)/trendeditdlg.cxx |
173 |
|
174 |
trendgraph.o: $(SRC)/trendgraph.cxx |
175 |
$(RM) trendgraph.o |
176 |
$(CC) $(CFLAGS) $(INCLUDES) $(SRC)/trendgraph.cxx |
177 |
|
178 |
trendlimitlist.o: $(SRC)/trendlimitlist.cxx |
179 |
$(RM) trendlimitlist.o |
180 |
$(CC) $(CFLAGS) $(INCLUDES) $(SRC)/trendlimitlist.cxx |
181 |
|
182 |
trendlistdlg.o: $(SRC)/trendlistdlg.cxx |
183 |
$(RM) trendlistdlg.o |
184 |
$(CC) $(CFLAGS) $(INCLUDES) $(SRC)/trendlistdlg.cxx |
185 |
|
186 |
trendmacrodlg.o: $(SRC)/trendmacrodlg.cxx |
187 |
$(RM) trendmacrodlg.o |
188 |
$(CC) $(CFLAGS) $(INCLUDES) $(SRC)/trendmacrodlg.cxx |
189 |
|
190 |
trendnotesdlg.o: $(SRC)/trendnotesdlg.cxx |
191 |
$(RM) trendnotedlg.o |
192 |
$(CC) $(CFLAGS) $(INCLUDES) $(SRC)/trendnotesdlg.cxx |
193 |
|
194 |
trendprefsdlg.o: $(SRC)/trendprefsdlg.cxx |
195 |
$(RM) trendprefsdlg.o |
196 |
$(CC) $(CFLAGS) $(INCLUDES) $(SRC)/trendprefsdlg.cxx |
197 |
|
198 |
trendsaveasdlg.o: $(SRC)/trendsaveasdlg.cxx |
199 |
$(RM) trendsaveasdlg.o |
200 |
$(CC) $(CFLAGS) $(INCLUDES) $(SRC)/trendsaveasdlg.cxx |
201 |
|
202 |
trendsearchdlg.o: $(SRC)/trendsearchdlg.cxx |
203 |
$(RM) trendsearchdlg.o |
204 |
$(CC) $(CFLAGS) $(INCLUDES) $(SRC)/trendsearchdlg.cxx |
205 |
|
206 |
trendselectdlg.o: $(SRC)/trendselectdlg.cxx |
207 |
$(RM) trendselectdlg.o |
208 |
$(CC) $(CFLAGS) $(INCLUDES) $(SRC)/trendselectdlg.cxx |
209 |
|
210 |
trendtextdlg.o: $(SRC)/trendtextdlg.cxx |
211 |
$(RM) trendtextdlg.o |
212 |
$(CC) $(CFLAGS) $(INCLUDES) $(SRC)/trendtextdlg.cxx |
213 |
|
214 |
trendutils.o: $(SRC)/trendutils.c |
215 |
$(RM) trendutils.o |
216 |
$(STD_C) $(CFLAGS) $(STD_CFLAGS) $(INCLUDES) $(SRC)/trendutils.c |
217 |
|
218 |
trendvaluedlg.o: $(SRC)/trendvaluedlg.cxx |
219 |
$(RM) trendvaluedlg.o |
220 |
$(CC) $(CFLAGS) $(INCLUDES) $(SRC)/trendvaluedlg.cxx |
221 |
|
222 |
trendfmt.o: $(SRC)/trendfmt.c |
223 |
$(RM) trendfmt.o |
224 |
$(STD_C) $(CFLAGS) $(STD_CFLAGS) $(INCLUDES) $(SRC)/trendfmt.c |
225 |
|
226 |
alpvmap.o: $(ALSRC)/alpvmap.c |
227 |
$(RM) alpvmap.o |
228 |
$(STD_C) $(CFLAGS) $(INCLUDES) -DUSECB63 $(ALSRC)/alpvmap.c |
229 |
|
230 |
install: |
231 |
cp -p trendvu ../bin |
232 |
cp -p trendvu.vr ../bin |
233 |
cp -p oracleTrendvu ../bin |
234 |
cp -p oracleTrendvu.vr ../bin |
235 |
cp -p $(SRC)/trendvu_print ../bin |
236 |
chmod 777 ../bin/trendvu_print |
237 |
|
238 |
clean: |
239 |
$(RM) trendvu |
240 |
$(RM) trendvu.vr |
241 |
$(RM) oracleTrendvu |
242 |
$(RM) oracleTrendvu.vr |
243 |
$(RM) $(OBJS) |
244 |
$(RM) Makefile.depend |
245 |
|
246 |
depend: Makefile.depend |
247 |
|
248 |
Makefile.depend: $(SRCS) Makefile |
249 |
$(RM) Makefile.depend |
250 |
gcc -M $(ALLDEFINES) $(SRCS) > Makefile.depend |
251 |
|
252 |
include Makefile.depend |
253 |
|