/[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.3 - (show annotations)
Thu Aug 26 20:48:49 1999 UTC (24 years, 6 months ago) by tis4000
Branch: MAIN
Changes since 1.2: +1 -1 lines
made Makefile.depend dependant on Makefile

1 CC = gcc -DSOLARIS -DUSECB63
2 CFLAGS = -g -c -Wunused
3 RM = rm -f
4
5 TOP = ../../..
6 SHAREPATH = $(TOP)/share
7 SRCPATH = $(SHAREPATH)/src
8 SRC = $(SRCPATH)/dbClient
9
10 CODEBASEPATH = /tools/codebase63/source
11
12 LIBS = \
13 ../bin/dbLibrary.a \
14 $(CODEBASEPATH)/libcb.a \
15 ../bin/libCom.a \
16 ../bin/libUnix.a \
17 ../bin/tisMsgLib.a
18 INCLUDES = \
19 -I$(TOP)/share/epicsH \
20 -I/usr/include \
21 -I/usr/include/sys \
22 -I/usr/include/netinet \
23 -I$(CODEBASEPATH)
24
25 ALLDEFINES = $(INCLUDES) -DSOLARIS -DUSECB63
26
27 SRCS = \
28 $(SRC)/DBCMain.c \
29 $(SRC)/DBCFunctions.c \
30 $(SRC)/DBCSymTable.c \
31 $(SRC)/DBCError.c \
32 $(SRC)/DBCVerifyFuncs.c \
33 $(SRC)/xrefconvert.c \
34 $(TOP)/share/src/redund/dbCrcSubs.c \
35 $(TOP)/share/src/ca/serverInit.c
36
37 OBJS = \
38 DBCMain.o \
39 DBCFunctions.o \
40 dbCrcSubs.o \
41 DBCError.o \
42 DBCSymTable.o \
43 DBCVerifyFuncs.o \
44 serverInit.o
45
46 all:: depend dbClient xrefconvert
47
48
49 dbClient : $(OBJS) $(LIBS)
50 $(RM) dbClient
51 $(CC) -o dbClient $(OBJS) $(LIBS) -lm -lsocket -lnsl
52
53 xrefconvert : xrefconvert.o $(SRC)/pdbxref.txt
54 $(RM) xrefconvert
55 $(RM) pdbxref.dbf
56 $(RM) pdnxref.mdx
57 $(CC) -o xrefconvert xrefconvert.o $(CODEBASEPATH)/libcb.a -ldl -lm
58 xrefconvert $(SRC)
59
60 DBCMain.o : $(SRC)/DBCMain.c
61 $(RM) DBCMain.o
62 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/DBCMain.c
63
64 DBCFunctions.o : $(SRC)/DBCFunctions.c
65 $(RM) DBCFunctions.o
66 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/DBCFunctions.c
67
68 DBCSymTable.o : $(SRC)/DBCSymTable.c
69 $(RM) DBCSymTable.o
70 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/DBCSymTable.c
71
72 DBCError.o : $(SRC)/DBCError.c
73 $(RM) DBCError.o
74 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/DBCError.c
75
76 DBCVerifyFuncs.o : $(SRC)/DBCVerifyFuncs.c
77 $(RM) DBCVerifyFuncs.o
78 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/DBCVerifyFuncs.c
79
80 dbCrcSubs.o : $(TOP)/share/src/redund/dbCrcSubs.c
81 $(RM) dbCrcSubs.o
82 $(CC) $(CFLAGS) $(INCLUDES) $(TOP)/share/src/redund/dbCrcSubs.c
83
84 serverInit.o : $(TOP)/share/src/ca/serverInit.c
85 $(RM) serverInit.o
86 $(CC) $(CFLAGS) $(INCLUDES) $(TOP)/share/src/ca/serverInit.c
87
88 xrefconvert.o : $(SRC)/xrefconvert.c
89 $(RM) xrefconvert.o
90 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/xrefconvert.c
91
92 install :
93 cp -p dbClient ../bin
94 cp -p pdbxref.dbf ../bin
95 cp -p pdbxref.mdx ../bin
96
97 clean :
98 $(RM) $(OBJS)
99 $(RM) xrefconvert.o
100 $(RM) xrefconvert
101 $(RM) pdbxref.dbf
102 $(RM) pdbxref.mdx
103 $(RM) dbClient
104 $(RM) Makefile.depend
105
106 depend: Makefile.depend
107
108 Makefile.depend: $(SRCS) Makefile
109 $(RM) Makefile.depend
110 $(CC) -M $(ALLDEFINES) $(SRCS) > Makefile.depend
111
112 include Makefile.depend
113

  ViewVC Help
Powered by ViewVC 1.1.30