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

Annotation of /sun2.4/dbTree/Makefile

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


Revision 1.2 - (hide annotations)
Tue Aug 17 18:52:13 1999 UTC (23 years, 5 months ago) by tis4000
Branch: MAIN
Changes since 1.1: +7 -143 lines
08-17-99	ems	added target depend, which creates Makefile.depend
			since the dependancies are differant from machine to
			machine, not having the dependancies in the Makefile
			will not confuse CVS

1 tis4000 1.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$(VUSRC)
26    
27     ALLDEFINES = $(INCLUDES) -DSOLARIS -DUSECB63
28    
29    
30     SRCS = \
31     $(SRC)/dbTree.c \
32     $(SRC)/fieldAttributes.c \
33     $(SRC)/FAInitDatabase.c \
34     $(SRC)/FASpecials.c \
35     $(SRC)/FAAvlUtils.c \
36     $(SRC)/FATreeIO.c \
37     $(SRC)/bldDesDataTable.c
38    
39     OBJS = \
40     fieldAttributes.o \
41     FAInitDatabase.o \
42     FASpecials.o \
43     FAAvlUtils.o \
44     FATreeIO.o \
45     bldDesDataTable.o
46    
47 tis4000 1.2 all : depend dbTreeLib.a dbTree
48 tis4000 1.1
49     dbTreeLib.a : $(OBJS)
50     $(RM) dbTreeLib.a
51     ar crv dbTreeLib.a $(OBJS)
52     cp -p dbTreeLib.a ../bin
53    
54     dbTree : dbTree.o $(LIBS)
55     $(RM) dbTree
56     $(CC) -o dbTree dbTree.o \
57     $(LIBS) -L/usr/lib -lm
58    
59     dbTree.o : $(SRC)/dbTree.c
60     $(RM) dbTree.o
61     $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/dbTree.c
62    
63     fieldAttributes.o : $(SRC)/fieldAttributes.c
64     $(RM) fieldAttributes.o
65     $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/fieldAttributes.c
66    
67     FAInitDatabase.o : $(SRC)/FAInitDatabase.c
68     $(RM) FAInitDatabase.o
69     $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/FAInitDatabase.c
70    
71     FASpecials.o : $(SRC)/FASpecials.c
72     $(RM) FASpecials.o
73     $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/FASpecials.c
74    
75     FAAvlUtils.o : $(SRC)/FAAvlUtils.c
76     $(RM) FAAvlUtils.o
77     $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/FAAvlUtils.c
78    
79     FATreeIO.o : $(SRC)/FATreeIO.c
80     $(RM) FATreeIO.o
81     $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/FATreeIO.c
82    
83     bldDesDataTable.o : $(SRC)/bldDesDataTable.c
84     $(RM) bldDesDataTable.o
85     $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/bldDesDataTable.c
86    
87    
88     install : dbTree dbTreeLib.a
89     cp -p dbTreeLib.a ../bin
90     cp -p dbTree ../bin
91     cp -p $(SRC)/caDataDesc.txt ../bin
92    
93     clean ::
94     $(RM) $(OBJS)
95     $(RM) dbTreeLib.a
96     $(RM) dbTree.o
97     $(RM) dbTree
98 tis4000 1.2 $(RM) Makefile.depend
99 tis4000 1.1
100 tis4000 1.2 depend: Makefile.depend
101 tis4000 1.1
102 tis4000 1.2 Makefile.depend: $(SRCS)
103     $(RM) Makefile.depend
104     $(CC) -M $(ALLDEFINES) $(SRCS) > Makefile.depend
105 tis4000 1.1
106 tis4000 1.2 include Makefile.depend
107 tis4000 1.1

  ViewVC Help
Powered by ViewVC 1.1.28