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

Contents of /sun2.4/dbClient/Makefile

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


Revision 1.7 - (show annotations)
Fri Sep 14 13:48:32 2001 UTC (22 years, 5 months ago) by tis4000
Branch: MAIN
CVS Tags: Duluth_baseline, HEAD
Changes since 1.6: +24 -2 lines
Add E2EB.DAT files for IOC/DPG installations. - gct

1 CC = gcc -DSOLARIS -DUSECB63
2 CFLAGS = -g -c -Wunused
3 SEC_CFLAGS = -g -c -Wunused -DPRIV_AUDIT
4 RM = rm -f
5
6 TOP = ../../..
7 SHAREPATH = $(TOP)/share
8 SRCPATH = $(SHAREPATH)/src
9 SRC = $(SRCPATH)/dbClient
10
11 SSL_SDK=/tools/SSLeay/SSLeay-0.9.0b
12 SSL_LIB=$(SSL_SDK)
13 SSL_INCLUDE=$(SSL_SDK)/include
14
15 LYNKSEES_SDK=/tools/SPYRUS/sdk
16 LYNKSEES_LIB=$(LYNKSEES_SDK)/lib
17 LYNKSEES_INCLUDE=$(LYNKSEES_SDK)/include
18
19 CODEBASEPATH = /tools/codebase63/source
20
21 LIBS = \
22 ../bin/dbLibrary.a \
23 $(CODEBASEPATH)/libcb.a \
24 ../bin/libCom.a \
25 ../bin/libUnix.a \
26 ../bin/tisMsgLib.a
27
28 SEC_LIBS = \
29 ../bin/dbLibrary.a \
30 $(CODEBASEPATH)/libcb.a \
31 ../bin/libCom.a \
32 ../bin/libUnix.a \
33 ../bin/tisMsgLib.a \
34 ../bin/libCalISO.a \
35 $(LYNKSEES_LIB)/liblynksees.a \
36 $(SSL_LIB)/libssl.a \
37 $(SSL_LIB)/libcrypto.a
38
39 INCLUDES = \
40 -I$(TOP)/share/epicsH \
41 -I/usr/include \
42 -I/usr/include/sys \
43 -I/usr/include/netinet \
44 -I. \
45 -I$(CODEBASEPATH)
46
47 SEC_INCLUDES = \
48 -I$(TOP)/share/epicsH \
49 -I/usr/include \
50 -I/usr/include/sys \
51 -I/usr/include/netinet \
52 -I. \
53 -I$(CODEBASEPATH) \
54 -I$(SSL_LIB)/include
55
56 ALLDEFINES = $(SEC_INCLUDES) -DSOLARIS -DUSECB63 -DPRIV_AUDIT
57
58 SRCS = \
59 $(SRC)/DBCMain.c \
60 $(SRC)/DBCFunctions.c \
61 $(SRC)/DBCSymTable.c \
62 $(SRC)/DBCError.c \
63 $(SRC)/DBCVerifyFuncs.c \
64 $(SRC)/xrefconvert.c \
65 $(TOP)/share/src/redund/dbCrcSubs.c \
66 $(TOP)/share/src/ca/serverInit.c \
67 $(SRC)/E2DBGen.c \
68 $(SRC)/E2DBFunctions.c
69
70 OBJS = \
71 DBCMain.o \
72 DBCFunctions.o \
73 dbCrcSubs.o \
74 DBCError.o \
75 DBCSymTable.o \
76 DBCVerifyFuncs.o \
77 serverInit.o
78
79 E2DBOBJS = \
80 E2DBGen.o \
81 E2DBFunctions.o \
82 dbCrcSubs.o \
83 DBCError.o
84
85 SEC_OBJS = \
86 secDBCMain.o \
87 DBCFunctions.o \
88 dbCrcSubs.o \
89 DBCError.o \
90 DBCSymTable.o \
91 DBCVerifyFuncs.o \
92 serverInit.o
93
94 all:: buildVersion.h depend dbClient secDbClient xrefconvert E2DBGen
95
96
97 dbClient : $(OBJS) $(LIBS)
98 $(RM) dbClient
99 $(CC) -o dbClient $(OBJS) $(LIBS) -lm -lsocket -lnsl
100
101 secDbClient : $(SEC_OBJS) $(SEC_LIBS)
102 $(RM) secDbClient
103 $(CC) -o secDbClient $(SEC_OBJS) $(SEC_LIBS) -lm -lsocket -lnsl
104
105 E2DBGen : $(E2DBOBJS) $(LIBS)
106 $(RM) E2DBGen
107 $(CC) -o E2DBGen $(E2DBOBJS) $(LIBS) -lm -lsocket -lnsl
108
109 xrefconvert : xrefconvert.o $(SRC)/pdbxref.txt
110 $(RM) xrefconvert
111 $(RM) pdbxref.dbf
112 $(RM) pdbxref.mdx
113 $(CC) -o xrefconvert xrefconvert.o $(CODEBASEPATH)/libcb.a -ldl -lm
114 xrefconvert $(SRC)
115
116 DBCMain.o : $(SRC)/DBCMain.c
117 $(RM) DBCMain.o
118 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/DBCMain.c
119
120 secDBCMain.o : $(SRC)/DBCMain.c
121 $(RM) secDBCMain.o
122 $(CC) -o secDBCMain.o $(SEC_CFLAGS) $(SEC_INCLUDES) $(SRC)/DBCMain.c
123
124 DBCFunctions.o : $(SRC)/DBCFunctions.c
125 $(RM) DBCFunctions.o
126 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/DBCFunctions.c
127
128 DBCSymTable.o : $(SRC)/DBCSymTable.c
129 $(RM) DBCSymTable.o
130 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/DBCSymTable.c
131
132 DBCError.o : $(SRC)/DBCError.c
133 $(RM) DBCError.o
134 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/DBCError.c
135
136 DBCVerifyFuncs.o : $(SRC)/DBCVerifyFuncs.c
137 $(RM) DBCVerifyFuncs.o
138 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/DBCVerifyFuncs.c
139
140 dbCrcSubs.o : $(TOP)/share/src/redund/dbCrcSubs.c
141 $(RM) dbCrcSubs.o
142 $(CC) $(CFLAGS) $(INCLUDES) $(TOP)/share/src/redund/dbCrcSubs.c
143
144 serverInit.o : $(TOP)/share/src/ca/serverInit.c
145 $(RM) serverInit.o
146 $(CC) $(CFLAGS) $(INCLUDES) $(TOP)/share/src/ca/serverInit.c
147
148 xrefconvert.o : $(SRC)/xrefconvert.c
149 $(RM) xrefconvert.o
150 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/xrefconvert.c
151
152 E2DBGen.o : $(SRC)/E2DBGen.c
153 $(RM) E2DBGen.o
154 $(CC) -o E2DBGen.o $(CFLAGS) $(INCLUDES) $(SRC)/E2DBGen.c
155
156 E2DBFunctions.o : $(SRC)/E2DBFunctions.c
157 $(RM) E2DBFunctions.o
158 $(CC) -o E2DBFunctions.o $(CFLAGS) $(INCLUDES) $(SRC)/E2DBFunctions.c
159
160 install :
161 cp -p dbClient ../bin
162 cp -p secDbClient ../bin
163 cp -p E2DBGen ../bin
164 chmod 666 pdbxref.dbf
165 chmod 666 pdbxref.mdx
166 cp -p pdbxref.dbf ../bin
167 cp -p pdbxref.mdx ../bin
168
169 clean :
170 $(RM) $(OBJS) $(SEC_OBJS)
171 $(RM) xrefconvert.o
172 $(RM) xrefconvert
173 $(RM) pdbxref.dbf
174 $(RM) pdbxref.mdx
175 $(RM) dbClient
176 $(RM) secDbClient
177 $(RM) Makefile.depend
178 $(RM) buildVersion.h
179 $(RM) E2DBGen
180
181 depend: Makefile.depend
182
183 Makefile.depend: ./buildVersion.h $(SRCS) Makefile
184 $(RM) Makefile.depend
185 $(CC) -M $(ALLDEFINES) $(SRCS) > Makefile.depend
186
187 include Makefile.depend
188
189 buildVersion.h : $(SRCS) Makefile
190 $(RM) buildVersion.h
191 pwd > work0.tmp
192 sed -f ../bin/vrsscript.sed work0.tmp > xxx.txt
193 ../bin/getverdefs.sh xxx.txt > buildVersion.h
194 date '+#define BUILDDATE "%m/%d/%Y"' >> buildVersion.h
195 $(RM) xxx.txt work0.tmp

  ViewVC Help
Powered by ViewVC 1.1.30