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

Contents of /sun2.4/dbTree/Makefile

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


Revision 1.4 - (show annotations)
Mon Dec 6 17:14:38 1999 UTC (23 years, 1 month ago) by tis4000
Branch: MAIN
CVS Tags: Duluth_baseline, LMC_baseline, HEAD
Changes since 1.3: +11 -2 lines
Use new version message format, generate buildVersion.h - Bekkerman

1 CC = gcc -g -inostdinc -I/usr/include -DUNIX -DSOLARIS -DUSECB63
2 CFLAGS = -g -c -Wunused
3
4 RM = rm -f
5
6 TOP = ../../..
7 SHAREPATH = $(TOP)/share
8 SRCPATH = $(SHAREPATH)/src
9 SRC = $(SRCPATH)/dbTree
10 VUSRC = $(SRCPATH)/dataVuCC
11
12 CODEBASEPATH = /tools/codebase63/source
13
14 LIBS = ./dbTreeLib.a \
15 $(CODEBASEPATH)/libcb.a \
16 ../bin/libtis.a \
17 ../bin/libCom.a \
18 ../bin/tisMsgLib.a
19
20 INCLUDES = -I/usr/include \
21 -I/usr/include/sys \
22 -I$(TOP)/share/epicsH \
23 -I$(TOP)/share/epicsH/rec \
24 -I$(CODEBASEPATH) \
25 -I. \
26 -I$(VUSRC)
27
28 ALLDEFINES = $(INCLUDES) -DSOLARIS -DUSECB63
29
30
31 SRCS = \
32 $(SRC)/dbTree.c \
33 $(SRC)/fieldAttributes.c \
34 $(SRC)/FAInitDatabase.c \
35 $(SRC)/FASpecials.c \
36 $(SRC)/FAAvlUtils.c \
37 $(SRC)/FATreeIO.c \
38 $(SRC)/bldDesDataTable.c
39
40 OBJS = \
41 fieldAttributes.o \
42 FAInitDatabase.o \
43 FASpecials.o \
44 FAAvlUtils.o \
45 FATreeIO.o \
46 bldDesDataTable.o
47
48 all : buildVersion.h depend dbTreeLib.a dbTree
49
50 dbTreeLib.a : $(OBJS)
51 $(RM) dbTreeLib.a
52 ar crv dbTreeLib.a $(OBJS)
53 cp -p dbTreeLib.a ../bin
54
55 dbTree : dbTree.o $(LIBS)
56 $(RM) dbTree
57 $(CC) -o dbTree dbTree.o \
58 $(LIBS) -L/usr/lib -lm
59
60 dbTree.o : $(SRC)/dbTree.c
61 $(RM) dbTree.o
62 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/dbTree.c
63
64 fieldAttributes.o : $(SRC)/fieldAttributes.c
65 $(RM) fieldAttributes.o
66 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/fieldAttributes.c
67
68 FAInitDatabase.o : $(SRC)/FAInitDatabase.c
69 $(RM) FAInitDatabase.o
70 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/FAInitDatabase.c
71
72 FASpecials.o : $(SRC)/FASpecials.c
73 $(RM) FASpecials.o
74 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/FASpecials.c
75
76 FAAvlUtils.o : $(SRC)/FAAvlUtils.c
77 $(RM) FAAvlUtils.o
78 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/FAAvlUtils.c
79
80 FATreeIO.o : $(SRC)/FATreeIO.c
81 $(RM) FATreeIO.o
82 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/FATreeIO.c
83
84 bldDesDataTable.o : $(SRC)/bldDesDataTable.c
85 $(RM) bldDesDataTable.o
86 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/bldDesDataTable.c
87
88
89 install : dbTree dbTreeLib.a
90 cp -p dbTreeLib.a ../bin
91 cp -p dbTree ../bin
92 cp -p $(SRC)/caDataDesc.txt ../bin
93
94 clean ::
95 $(RM) $(OBJS)
96 $(RM) dbTreeLib.a
97 $(RM) dbTree.o
98 $(RM) dbTree
99 $(RM) Makefile.depend
100 $(RM) buildVersion.h
101
102 depend: Makefile.depend
103
104 Makefile.depend: buildVersion.h $(SRCS) Makefile
105 $(RM) Makefile.depend
106 $(CC) -M $(ALLDEFINES) $(SRCS) > Makefile.depend
107
108 include Makefile.depend
109
110 buildVersion.h : $(SRCS) Makefile
111 $(RM) buildVersion.h
112 pwd > work0.tmp
113 sed -f ../bin/vrsscript.sed work0.tmp > xxx.txt
114 ../bin/getverdefs.sh xxx.txt > buildVersion.h
115 date '+#define BUILDDATE "%m/%d/%Y"' >> buildVersion.h
116 $(RM) xxx.txt work0.tmp

  ViewVC Help
Powered by ViewVC 1.1.28