/[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.5 - (show annotations)
Mon Dec 6 17:09:46 1999 UTC (24 years, 2 months ago) by tis4000
Branch: MAIN
Changes since 1.4: +12 -2 lines
Use new version message format, generate buildVersion.h - Bekkerman

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
68 OBJS = \
69 DBCMain.o \
70 DBCFunctions.o \
71 dbCrcSubs.o \
72 DBCError.o \
73 DBCSymTable.o \
74 DBCVerifyFuncs.o \
75 serverInit.o
76
77 SEC_OBJS = \
78 secDBCMain.o \
79 DBCFunctions.o \
80 dbCrcSubs.o \
81 DBCError.o \
82 DBCSymTable.o \
83 DBCVerifyFuncs.o \
84 serverInit.o
85
86 all:: buildVersion.h depend dbClient secDbClient xrefconvert
87
88
89 dbClient : $(OBJS) $(LIBS)
90 $(RM) dbClient
91 $(CC) -o dbClient $(OBJS) $(LIBS) -lm -lsocket -lnsl
92
93 secDbClient : $(SEC_OBJS) $(SEC_LIBS)
94 $(RM) secDbClient
95 $(CC) -o secDbClient $(SEC_OBJS) $(SEC_LIBS) -lm -lsocket -lnsl
96
97 xrefconvert : xrefconvert.o $(SRC)/pdbxref.txt
98 $(RM) xrefconvert
99 $(RM) pdbxref.dbf
100 $(RM) pdbxref.mdx
101 $(CC) -o xrefconvert xrefconvert.o $(CODEBASEPATH)/libcb.a -ldl -lm
102 xrefconvert $(SRC)
103
104 DBCMain.o : $(SRC)/DBCMain.c
105 $(RM) DBCMain.o
106 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/DBCMain.c
107
108 secDBCMain.o : $(SRC)/DBCMain.c
109 $(RM) secDBCMain.o
110 $(CC) -o secDBCMain.o $(SEC_CFLAGS) $(SEC_INCLUDES) $(SRC)/DBCMain.c
111
112 DBCFunctions.o : $(SRC)/DBCFunctions.c
113 $(RM) DBCFunctions.o
114 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/DBCFunctions.c
115
116 DBCSymTable.o : $(SRC)/DBCSymTable.c
117 $(RM) DBCSymTable.o
118 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/DBCSymTable.c
119
120 DBCError.o : $(SRC)/DBCError.c
121 $(RM) DBCError.o
122 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/DBCError.c
123
124 DBCVerifyFuncs.o : $(SRC)/DBCVerifyFuncs.c
125 $(RM) DBCVerifyFuncs.o
126 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/DBCVerifyFuncs.c
127
128 dbCrcSubs.o : $(TOP)/share/src/redund/dbCrcSubs.c
129 $(RM) dbCrcSubs.o
130 $(CC) $(CFLAGS) $(INCLUDES) $(TOP)/share/src/redund/dbCrcSubs.c
131
132 serverInit.o : $(TOP)/share/src/ca/serverInit.c
133 $(RM) serverInit.o
134 $(CC) $(CFLAGS) $(INCLUDES) $(TOP)/share/src/ca/serverInit.c
135
136 xrefconvert.o : $(SRC)/xrefconvert.c
137 $(RM) xrefconvert.o
138 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/xrefconvert.c
139
140 install :
141 cp -p dbClient ../bin
142 cp -p secDbClient ../bin
143 cp -p pdbxref.dbf ../bin
144 cp -p pdbxref.mdx ../bin
145
146 clean :
147 $(RM) $(OBJS) $(SEC_OBJS)
148 $(RM) xrefconvert.o
149 $(RM) xrefconvert
150 $(RM) pdbxref.dbf
151 $(RM) pdbxref.mdx
152 $(RM) dbClient
153 $(RM) secDbClient
154 $(RM) Makefile.depend
155 $(RM) buildVersion.h
156
157 depend: Makefile.depend
158
159 Makefile.depend: ./buildVersion.h $(SRCS) Makefile
160 $(RM) Makefile.depend
161 $(CC) -M $(ALLDEFINES) $(SRCS) > Makefile.depend
162
163 include Makefile.depend
164
165 buildVersion.h : $(SRCS) Makefile
166 $(RM) buildVersion.h
167 pwd > work0.tmp
168 sed -f ../bin/vrsscript.sed work0.tmp > xxx.txt
169 ../bin/getverdefs.sh xxx.txt > buildVersion.h
170 date '+#define BUILDDATE "%m/%d/%Y"' >> buildVersion.h
171 $(RM) xxx.txt work0.tmp

  ViewVC Help
Powered by ViewVC 1.1.30