/[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.2 - (show annotations)
Tue Aug 17 16:00:16 1999 UTC (24 years, 6 months ago) by tis4000
Branch: MAIN
Changes since 1.1: +7 -129 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 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 DEPEND = $(SHAREPATH)/bin/sun2.4/EPICSmakedepend
14 INCLUDES = \
15 -I$(SRCPATH)/libtis \
16 -I$(SHAREPATH)/epicsH \
17 -I$(CODEBASEPATH) \
18 -I$(SRCPATH)/dataVuCC
19
20 ALLDEFINES = $(INCLUDES) -DSOLARIS -DUSECB63
21
22 CLEANMERGELIBS = \
23 $(CODEBASEPATH)/libcb.a \
24 ../bin/libtis.a \
25 ../bin/libUnix.a \
26 ../bin/tisMsgLib.a
27
28 SRCS = \
29 $(SRC)/avl.c \
30 $(SRC)/crypt.c \
31 $(SRC)/CleanAndArchTrak.c \
32 $(SRC)/MergeTrak.c \
33 $(SRC)/OperPrvTrk.c \
34 $(SRC)/pdfHelpUtils.c \
35 $(SRC)/resolveLinks.c \
36 $(SRC)/semaph.c \
37 $(SRC)/tisEncrypt.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
48 all: depend libtis.a CleanAndArchTrak MergeTrak
49
50 ############ TAGRETS #######################################################
51
52 libtis.a: $(LIBTISOBJS)
53 $(RM) libtis.a
54 ar crv libtis.a $(LIBTISOBJS)
55 cp -p libtis.a ../bin
56
57 CleanAndArchTrak: CleanAndArchTrak.o $(CLEANMERGELIBS)
58 $(RM) CleanAndArchTrak
59 $(CC) -o CleanAndArchTrak CleanAndArchTrak.o \
60 $(CLEANMERGELIBS) -lm -ldl
61
62 MergeTrak: MergeTrak.o $(CLEANMERGELIBS)
63 $(RM) MergeTrak
64 $(CC) -o MergeTrak MergeTrak.o \
65 $(CLEANMERGELIBS) -lm -ldl
66
67 ############ OBJECTS #######################################################
68
69 avl.o: $(SRC)/avl.c
70 $(RM) avl.o
71 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/avl.c
72
73 CleanAndArchTrak.o: $(SRC)/CleanAndArchTrak.c $(SRC)/trak.c
74 $(RM) CleanAndArchTrak.o
75 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/CleanAndArchTrak.c
76
77 crypt.o: $(SRC)/crypt.c
78 $(RM) crypt.o
79 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/crypt.c
80
81 MergeTrak.o: $(SRC)/MergeTrak.c
82 $(RM) MergeTrak.o
83 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/MergeTrak.c
84
85 OperPrvTrk.o: $(SRC)/OperPrvTrk.c
86 $(RM) OperPrvTrk.o
87 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/OperPrvTrk.c
88
89 pdfHelpUtils.o: $(SRC)/pdfHelpUtils.c
90 $(RM) pdfHelpUtils.o
91 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/pdfHelpUtils.c
92
93 resolveLinks.o: $(SRC)/resolveLinks.c
94 $(RM) resolveLinks.o
95 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/resolveLinks.c
96
97 semaph.o: $(SRC)/semaph.c
98 $(RM) semaph.o
99 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/semaph.c
100
101 tisEncrypt.o: $(SRC)/tisEncrypt.c
102 $(RM) tisEncrypt.o
103 $(CC) $(CFLAGS) $(INCLUDES) $(SRC)/tisEncrypt.c
104
105
106
107 #FixTrkTimes: FixTrkTimes.o $(LIB)/libUnix/libUnix.a $(CODEBASEPATH)/libcb.a
108 # $(CC) -o FixTrkTimes FixTrkTimes.o \
109 # $(LIB)/libUnix/libUnix.a \
110 # $(CODEBASEPATH)/libcb.a \
111 # ./libtis.a \
112 # -lm
113
114 #FixTrkTimes.o: $(SRC)/FixTrkTimes.c
115 # $(CC) $(CFLAGS) \
116 # -I$(INC)/src/libtis \
117 # -I$(INC)/src/codebase51 \
118 # -I$(INC)/epicsH \
119 # -I$(INC)/src/dataVu \
120 # $(SRC)/FixTrkTimes.c
121
122 #install : libtis.a CleanAndArchTrak MergeTrak FixTrkTimes
123 install : libtis.a CleanAndArchTrak
124 cp -p libtis.a ../bin
125 cp -p CleanAndArchTrak ../bin
126 cp -p MergeTrak ../bin
127 # cp -p FixTrkTimes ../bin
128
129 clean:
130 $(RM) $(LIBTISOBJS)
131 $(RM) CleanAndArchTrak.o
132 $(RM) MergeTrak.o
133 $(RM) libtis.a
134 $(RM) CleanAndArchTrak
135 $(RM) MergeTrak
136 $(RM) Makefile.depend
137
138 #
139 # Uses EPICSmakedepend to create dependencies
140 #
141
142 depend: Makefile.depend
143
144 Makefile.depend : $(SRCS)
145 $(RM) Makefile.depend
146 $(CC) -M $(ALLDEFINES) $(SRCS) > Makefile.depend
147
148 include Makefile.depend

  ViewVC Help
Powered by ViewVC 1.1.30