/[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.4 - (show annotations)
Wed Sep 29 14:31:21 1999 UTC (23 years, 2 months ago) by tis4000
Branch: MAIN
CVS Tags: t55baseline
Changes since 1.3: +52 -4 lines
Add build for secDbClient (CAISO) - irani

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$(CODEBASEPATH)
45
46 SEC_INCLUDES = \
47 -I$(TOP)/share/epicsH \
48 -I/usr/include \
49 -I/usr/include/sys \
50 -I/usr/include/netinet \
51 -I$(CODEBASEPATH) \
52 -I$(SSL_LIB)/include
53
54 ALLDEFINES = $(SEC_INCLUDES) -DSOLARIS -DUSECB63 -DPRIV_AUDIT
55
56 SRCS = \
57 $(SRC)/DBCMain.c \
58 $(SRC)/DBCFunctions.c \
59 $(SRC)/DBCSymTable.c \
60 $(SRC)/DBCError.c \
61 $(SRC)/DBCVerifyFuncs.c \
62 $(SRC)/xrefconvert.c \
63 $(TOP)/share/src/redund/dbCrcSubs.c \
64 $(TOP)/share/src/ca/serverInit.c
65
66 OBJS = \
67 DBCMain.o \
68 DBCFunctions.o \
69 dbCrcSubs.o \
70 DBCError.o \
71 DBCSymTable.o \
72 DBCVerifyFuncs.o \
73 serverInit.o
74
75 SEC_OBJS = \
76 secDBCMain.o \
77 DBCFunctions.o \
78 dbCrcSubs.o \
79 DBCError.o \
80 DBCSymTable.o \
81 DBCVerifyFuncs.o \
82 serverInit.o
83
84 all:: depend dbClient secDbClient xrefconvert
85
86
87 dbClient : $(OBJS) $(LIBS)
88 $(RM) dbClient
89 $(CC) -o dbClient $(OBJS) $(LIBS) -lm -lsocket -lnsl
90
91 secDbClient : $(SEC_OBJS) $(SEC_LIBS)
92 $(RM) secDbClient
93 $(CC) -o secDbClient $(SEC_OBJS) $(SEC_LIBS) -lm -lsocket -lnsl
94
95 xrefconvert : xrefconvert.o $(SRC)/pdbxref.txt
96 $(RM) xrefconvert
97 $(RM) pdbxref.dbf
98 $(RM) pdbxref.mdx
99 $(CC) -o xrefconvert xrefconvert.o $(CODEBASEPATH)/libcb.a -ldl -lm
100 xrefconvert $(SRC)
101
102 DBCMain.o : $(SRC)/DBCMain.c
103 $(RM) DBCMain.o
104 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/DBCMain.c
105
106 secDBCMain.o : $(SRC)/DBCMain.c
107 $(RM) secDBCMain.o
108 $(CC) -o secDBCMain.o $(SEC_CFLAGS) $(SEC_INCLUDES) $(SRC)/DBCMain.c
109
110 DBCFunctions.o : $(SRC)/DBCFunctions.c
111 $(RM) DBCFunctions.o
112 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/DBCFunctions.c
113
114 DBCSymTable.o : $(SRC)/DBCSymTable.c
115 $(RM) DBCSymTable.o
116 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/DBCSymTable.c
117
118 DBCError.o : $(SRC)/DBCError.c
119 $(RM) DBCError.o
120 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/DBCError.c
121
122 DBCVerifyFuncs.o : $(SRC)/DBCVerifyFuncs.c
123 $(RM) DBCVerifyFuncs.o
124 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/DBCVerifyFuncs.c
125
126 dbCrcSubs.o : $(TOP)/share/src/redund/dbCrcSubs.c
127 $(RM) dbCrcSubs.o
128 $(CC) $(CFLAGS) $(INCLUDES) $(TOP)/share/src/redund/dbCrcSubs.c
129
130 serverInit.o : $(TOP)/share/src/ca/serverInit.c
131 $(RM) serverInit.o
132 $(CC) $(CFLAGS) $(INCLUDES) $(TOP)/share/src/ca/serverInit.c
133
134 xrefconvert.o : $(SRC)/xrefconvert.c
135 $(RM) xrefconvert.o
136 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/xrefconvert.c
137
138 install :
139 cp -p dbClient ../bin
140 cp -p secDbClient ../bin
141 cp -p pdbxref.dbf ../bin
142 cp -p pdbxref.mdx ../bin
143
144 clean :
145 $(RM) $(OBJS) $(SEC_OBJS)
146 $(RM) xrefconvert.o
147 $(RM) xrefconvert
148 $(RM) pdbxref.dbf
149 $(RM) pdbxref.mdx
150 $(RM) dbClient
151 $(RM) secDbClient
152 $(RM) Makefile.depend
153
154 depend: Makefile.depend
155
156 Makefile.depend: $(SRCS) Makefile
157 $(RM) Makefile.depend
158 $(CC) -M $(ALLDEFINES) $(SRCS) > Makefile.depend
159
160 include Makefile.depend
161

  ViewVC Help
Powered by ViewVC 1.1.28