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

Contents of /sun2.4/libtis/Makefile

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


Revision 1.5 - (show annotations)
Mon Jun 26 17:47:20 2000 UTC (23 years, 8 months ago) by tis4000
Branch: MAIN
CVS Tags: Duluth_baseline, LMC_baseline, HEAD
Changes since 1.4: +8 -2 lines
Added optLib.c. - Tomalesky

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)/libtis
10
11 CODEBASEPATH = /tools/codebase63/source
12
13 INCLUDES = \
14 -I$(SRCPATH)/libtis \
15 -I$(SHAREPATH)/epicsH \
16 -I$(CODEBASEPATH) \
17 -I$(SRCPATH)/dataVuCC
18
19 ALLDEFINES = $(INCLUDES) -DSOLARIS -DUSECB63
20
21 CLEANMERGELIBS = \
22 $(CODEBASEPATH)/libcb.a \
23 ../bin/libtis.a \
24 ../bin/libUnix.a \
25 ../bin/tisMsgLib.a
26
27 SRCS = \
28 $(SRC)/avl.c \
29 $(SRC)/crypt.c \
30 $(SRC)/CleanAndArchTrak.c \
31 $(SRC)/MergeTrak.c \
32 $(SRC)/OperPrvTrk.c \
33 $(SRC)/pdfHelpUtils.c \
34 $(SRC)/resolveLinks.c \
35 $(SRC)/semaph.c \
36 $(SRC)/tisEncrypt.c \
37 $(SRC)/optLib.c
38
39 LIBTISOBJS = \
40 avl.o \
41 crypt.o \
42 OperPrvTrk.o \
43 pdfHelpUtils.o \
44 resolveLinks.o \
45 semaph.o \
46 tisEncrypt.o \
47 optLib.o
48
49 all: depend libtis.a CleanAndArchTrak MergeTrak
50
51 ############ TAGRETS #######################################################
52
53 libtis.a: $(LIBTISOBJS)
54 $(RM) libtis.a
55 ar crv libtis.a $(LIBTISOBJS)
56 cp -p libtis.a ../bin
57
58 CleanAndArchTrak: CleanAndArchTrak.o $(CLEANMERGELIBS)
59 $(RM) CleanAndArchTrak
60 $(CC) -o CleanAndArchTrak CleanAndArchTrak.o \
61 $(CLEANMERGELIBS) -lm -ldl
62
63 MergeTrak: MergeTrak.o $(CLEANMERGELIBS)
64 $(RM) MergeTrak
65 $(CC) -o MergeTrak MergeTrak.o \
66 $(CLEANMERGELIBS) -lm -ldl
67
68 ############ OBJECTS #######################################################
69
70 avl.o: $(SRC)/avl.c
71 $(RM) avl.o
72 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/avl.c
73
74 CleanAndArchTrak.o: $(SRC)/CleanAndArchTrak.c $(SRC)/trak.c
75 $(RM) CleanAndArchTrak.o
76 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/CleanAndArchTrak.c
77
78 crypt.o: $(SRC)/crypt.c
79 $(RM) crypt.o
80 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/crypt.c
81
82 MergeTrak.o: $(SRC)/MergeTrak.c
83 $(RM) MergeTrak.o
84 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/MergeTrak.c
85
86 OperPrvTrk.o: $(SRC)/OperPrvTrk.c
87 $(RM) OperPrvTrk.o
88 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/OperPrvTrk.c
89
90 pdfHelpUtils.o: $(SRC)/pdfHelpUtils.c
91 $(RM) pdfHelpUtils.o
92 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/pdfHelpUtils.c
93
94 resolveLinks.o: $(SRC)/resolveLinks.c
95 $(RM) resolveLinks.o
96 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/resolveLinks.c
97
98 semaph.o: $(SRC)/semaph.c
99 $(RM) semaph.o
100 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/semaph.c
101
102 tisEncrypt.o: $(SRC)/tisEncrypt.c
103 $(RM) tisEncrypt.o
104 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/tisEncrypt.c
105
106 optLib.o : $(SRC)/optLib.c
107 $(RM) optLib.o
108 $(CC) $(CFLAGS) $(ALLDEFINES) $(SRC)/optLib.c
109
110
111
112 #FixTrkTimes: FixTrkTimes.o $(LIB)/libUnix/libUnix.a $(CODEBASEPATH)/libcb.a
113 # $(CC) -o FixTrkTimes FixTrkTimes.o \
114 # $(LIB)/libUnix/libUnix.a \
115 # $(CODEBASEPATH)/libcb.a \
116 # ./libtis.a \
117 # -lm
118
119 #FixTrkTimes.o: $(SRC)/FixTrkTimes.c
120 # $(CC) $(CFLAGS) \
121 # -I$(INC)/src/libtis \
122 # -I$(INC)/src/codebase51 \
123 # -I$(INC)/epicsH \
124 # -I$(INC)/src/dataVu \
125 # $(SRC)/FixTrkTimes.c
126
127 #install : libtis.a CleanAndArchTrak MergeTrak FixTrkTimes
128 install : libtis.a CleanAndArchTrak
129 cp -p libtis.a ../bin
130 cp -p CleanAndArchTrak ../bin
131 cp -p MergeTrak ../bin
132 # cp -p FixTrkTimes ../bin
133
134 clean:
135 $(RM) $(LIBTISOBJS)
136 $(RM) CleanAndArchTrak.o
137 $(RM) MergeTrak.o
138 $(RM) libtis.a
139 $(RM) CleanAndArchTrak
140 $(RM) MergeTrak
141 $(RM) Makefile.depend
142
143 depend: Makefile.depend
144
145 Makefile.depend : $(SRCS) Makefile
146 $(RM) Makefile.depend
147 $(CC) -M $(ALLDEFINES) $(SRCS) > Makefile.depend
148
149 include Makefile.depend
150

  ViewVC Help
Powered by ViewVC 1.1.30