/[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.4 - (show annotations)
Thu Aug 26 21:03:39 1999 UTC (23 years, 3 months ago) by tis4000
Branch: MAIN
CVS Tags: t55baseline
Changes since 1.3: +1 -1 lines
made Makefile.depend dependant on Makefile

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
38 LIBTISOBJS = \
39 avl.o \
40 crypt.o \
41 OperPrvTrk.o \
42 pdfHelpUtils.o \
43 resolveLinks.o \
44 semaph.o \
45 tisEncrypt.o
46
47 all: depend libtis.a CleanAndArchTrak MergeTrak
48
49 ############ TAGRETS #######################################################
50
51 libtis.a: $(LIBTISOBJS)
52 $(RM) libtis.a
53 ar crv libtis.a $(LIBTISOBJS)
54 cp -p libtis.a ../bin
55
56 CleanAndArchTrak: CleanAndArchTrak.o $(CLEANMERGELIBS)
57 $(RM) CleanAndArchTrak
58 $(CC) -o CleanAndArchTrak CleanAndArchTrak.o \
59 $(CLEANMERGELIBS) -lm -ldl
60
61 MergeTrak: MergeTrak.o $(CLEANMERGELIBS)
62 $(RM) MergeTrak
63 $(CC) -o MergeTrak MergeTrak.o \
64 $(CLEANMERGELIBS) -lm -ldl
65
66 ############ OBJECTS #######################################################
67
68 avl.o: $(SRC)/avl.c
69 $(RM) avl.o
70 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/avl.c
71
72 CleanAndArchTrak.o: $(SRC)/CleanAndArchTrak.c $(SRC)/trak.c
73 $(RM) CleanAndArchTrak.o
74 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/CleanAndArchTrak.c
75
76 crypt.o: $(SRC)/crypt.c
77 $(RM) crypt.o
78 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/crypt.c
79
80 MergeTrak.o: $(SRC)/MergeTrak.c
81 $(RM) MergeTrak.o
82 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/MergeTrak.c
83
84 OperPrvTrk.o: $(SRC)/OperPrvTrk.c
85 $(RM) OperPrvTrk.o
86 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/OperPrvTrk.c
87
88 pdfHelpUtils.o: $(SRC)/pdfHelpUtils.c
89 $(RM) pdfHelpUtils.o
90 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/pdfHelpUtils.c
91
92 resolveLinks.o: $(SRC)/resolveLinks.c
93 $(RM) resolveLinks.o
94 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/resolveLinks.c
95
96 semaph.o: $(SRC)/semaph.c
97 $(RM) semaph.o
98 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/semaph.c
99
100 tisEncrypt.o: $(SRC)/tisEncrypt.c
101 $(RM) tisEncrypt.o
102 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/tisEncrypt.c
103
104
105
106 #FixTrkTimes: FixTrkTimes.o $(LIB)/libUnix/libUnix.a $(CODEBASEPATH)/libcb.a
107 # $(CC) -o FixTrkTimes FixTrkTimes.o \
108 # $(LIB)/libUnix/libUnix.a \
109 # $(CODEBASEPATH)/libcb.a \
110 # ./libtis.a \
111 # -lm
112
113 #FixTrkTimes.o: $(SRC)/FixTrkTimes.c
114 # $(CC) $(CFLAGS) \
115 # -I$(INC)/src/libtis \
116 # -I$(INC)/src/codebase51 \
117 # -I$(INC)/epicsH \
118 # -I$(INC)/src/dataVu \
119 # $(SRC)/FixTrkTimes.c
120
121 #install : libtis.a CleanAndArchTrak MergeTrak FixTrkTimes
122 install : libtis.a CleanAndArchTrak
123 cp -p libtis.a ../bin
124 cp -p CleanAndArchTrak ../bin
125 cp -p MergeTrak ../bin
126 # cp -p FixTrkTimes ../bin
127
128 clean:
129 $(RM) $(LIBTISOBJS)
130 $(RM) CleanAndArchTrak.o
131 $(RM) MergeTrak.o
132 $(RM) libtis.a
133 $(RM) CleanAndArchTrak
134 $(RM) MergeTrak
135 $(RM) Makefile.depend
136
137 depend: Makefile.depend
138
139 Makefile.depend : $(SRCS) Makefile
140 $(RM) Makefile.depend
141 $(CC) -M $(ALLDEFINES) $(SRCS) > Makefile.depend
142
143 include Makefile.depend
144

  ViewVC Help
Powered by ViewVC 1.1.28