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

Contents of /sun2.4/util/Makefile

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


Revision 1.2 - (show annotations)
Tue Aug 17 20:59:19 1999 UTC (23 years, 9 months ago) by tis4000
Branch: MAIN
Changes since 1.1: +7 -162 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 -inostdinc -I/usr/include -DSOLARIS -DUSECB63
2 CFLAGS = -g -Wunused
3
4 RM = rm -f
5
6 TOP = ../../..
7 CODEBASEPATH = /tools/codebase63/source
8 SHAREPATH = $(TOP)/share
9 SRCPATH = $(SHAREPATH)/src
10 SRC = $(SRCPATH)/util
11
12 INCLUDES = \
13 -I$(SRC) \
14 -I$(TOP)/share/epicsH
15
16 ALLDEFINES = $(INCLUDES)
17
18 LIBS = \
19 ../bin/libCom.a \
20 ../bin/libUnix.a \
21 ../bin/libca.a \
22 ../bin/tisMsgLib.a
23
24 SRCS = \
25 $(SRC)/bfRing.c \
26 $(SRC)/ca_test.c \
27 $(SRC)/cmdClient.c \
28 $(SRC)/extrDoc.c \
29 $(SRC)/iocLogServer.c \
30 $(SRC)/pprPlot.c \
31 $(SRC)/racPrint.c \
32 $(SRC)/recListProg.c \
33 $(SRC)/startCArepeater.c\
34 $(SRC)/sydPlot.c
35
36 EXTRDOC_OBJS = \
37 extrDoc.o
38
39 PPRLIB_OBJS = \
40 pprPlot.o\
41 sydPlot.o
42
43 OBJS = \
44 $(EXTRDOC_OBJS) \
45 $(PPRLIB_OBJS) \
46 bfRing.o \
47 ca_test.o \
48 cmdClient.o \
49 iocLogServer.o \
50 racPrint.o \
51 recListProg.o \
52 startCArepeater.o
53
54 all:: \
55 depend \
56 extrDoc \
57 libppr.a \
58 bfRing \
59 ca_test \
60 cmdClient \
61 iocLogServer \
62 racPrint \
63 recListProg \
64 startCArepeater
65
66 ############# TARGETS ###########################################################
67
68 extrDoc: extrDoc.o
69 $(RM) extrDoc
70 $(CC) -o extrDoc extrDoc.o \
71 -lm -lsocket -lnsl -ldl
72 cp -p extrDoc ../bin
73
74 bfRing: bfRing.o $(LIBS)
75 $(RM) bfRing
76 $(CC) -o bfRing bfRing.o $(LIBS) -ldl -lm
77
78 ca_test: ca_test.o $(LIBS)
79 $(RM) ca_test
80 $(CC) -o ca_test ca_test.o $(LIBS) -lsocket -lnsl -ldl -lm
81
82 cmdClient: cmdClient.o $(LIBS)
83 $(RM) cmdClient
84 $(CC) -o cmdClient cmdClient.o $(LIBS) -lsocket -lnsl -ldl -lm
85
86 iocLogServer: iocLogServer.o $(LIBS)
87 $(RM) iocLogServer
88 $(CC) -o iocLogServer iocLogServer.o $(LIBS) -lsocket -lnsl -ldl -lm
89
90 libppr.a: $(PPRLIB_OBJS)
91 $(RM) libppr.a
92 ar cq libppr.a $(PPRLIB_OBJS)
93 cp -p libppr.a ../bin
94
95 racPrint: racPrint.o $(LIBS)
96 $(RM) racPrint
97 $(CC) -o racPrint racPrint.o $(LIBS) -ldl -lm
98
99 recListProg: recListProg.o $(LIBS)
100 $(RM) recListProg
101 $(CC) -o recListProg recListProg.o $(LIBS) -lsocket -lnsl -ldl -lm
102
103 startCArepeater: startCArepeater.o $(LIBS)
104 $(RM) startCArepeater
105 $(CC) -o startCArepeater startCArepeater.o $(LIBS) -lsocket -lnsl -ldl -lm
106
107 ############# OBJECTS ###########################################################
108
109 bfRing.o: $(SRC)/bfRing.c
110 $(RM) bfRing.o
111 $(CC) -c $(CFLAGS) $(INCLUDES) $(SRC)/bfRing.c
112
113 ca_test.o: $(SRC)/ca_test.c
114 $(RM) ca_test.o
115 $(CC) -c $(CFLAGS) $(INCLUDES) $(SRC)/ca_test.c
116
117 cmdClient.o: $(SRC)/cmdClient.c
118 $(RM) cmdClient.o
119 $(CC) -c $(CFLAGS) $(INCLUDES) $(SRC)/cmdClient.c
120
121 extrDoc.o: $(SRC)/extrDoc.c
122 $(RM) extrDoc.o
123 $(CC) -c $(CFLAGS) $(INCLUDES) $(SRC)/extrDoc.c
124
125 iocLogServer.o: $(SRC)/iocLogServer.c
126 $(RM) iocLogServer.o
127 $(CC) -c $(CFLAGS) $(INCLUDES) $(SRC)/iocLogServer.c
128
129 pprPlot.o: $(SRC)/pprPlot.c
130 $(RM) pprPlot.o
131 $(CC) -c $(CFLAGS) $(INCLUDES) $(SRC)/pprPlot.c
132
133 racPrint.o: $(SRC)/racPrint.c
134 $(RM) racPrint
135 $(CC) -c $(CFLAGS) $(INCLUDES) $(SRC)/racPrint.c
136
137 recListProg.o: $(SRC)/recListProg.c
138 $(RM) recListProg.o
139 $(CC) -c $(CFLAGS) $(INCLUDES) $(SRC)/recListProg.c
140
141 startCArepeater.o: $(SRC)/startCArepeater.c
142 $(RM) startCArepeater.o
143 $(CC) -c $(CFLAGS) $(INCLUDES) $(SRC)/startCArepeater.c
144
145 sydPlot.o: $(SRC)/sydPlot.c
146 $(RM) sydPlot.o
147 $(CC) -c $(CFLAGS) -DXWINDOWS $(INCLUDES) $(SRC)/sydPlot.c
148
149 install::
150 cp -p extrDoc ../bin
151 cp -p libppr.a ../bin
152 cp -p bfRing ../bin
153 cp -p ca_test ../bin
154 cp -p cmdClient ../bin
155 cp -p iocLogServer ..
156 cp -p racPrint ../bin
157 cp -p recListProg ../bin
158 cp -p startCArepeater ../bin
159
160 clean :
161 $(RM) $(OBJS)
162 $(RM) extrDoc
163 $(RM) libppr.a
164 $(RM) bfRing
165 $(RM) ca_test
166 $(RM) cmdClient
167 $(RM) iocLogServer
168 $(RM) recListProg
169 $(RM) racPrint
170 $(RM) startCArepeater
171 $(RM) Makefile.depend
172
173 depend: Makefile.depend
174
175 Makefile.depend: $(SRCS)
176 $(RM) Makefile.depend
177 $(CC) -M $(ALLDEFINES) $(SRCS) > Makefile.depend
178
179 include Makefile.depend
180

  ViewVC Help
Powered by ViewVC 1.1.28