1 |
tis4000 |
1.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)/iocLogServer.c \ |
29 |
|
|
$(SRC)/pprPlot.c \ |
30 |
|
|
$(SRC)/racPrint.c \ |
31 |
|
|
$(SRC)/recListProg.c \ |
32 |
|
|
$(SRC)/startCArepeater.c\ |
33 |
|
|
$(SRC)/sydPlot.c |
34 |
|
|
|
35 |
|
|
PPRLIB_OBJS = \ |
36 |
|
|
pprPlot.o\ |
37 |
|
|
sydPlot.o |
38 |
|
|
|
39 |
|
|
OBJS = \ |
40 |
|
|
$(PPRLIB_OBJS) \ |
41 |
|
|
bfRing.o \ |
42 |
|
|
ca_test.o \ |
43 |
|
|
cmdClient.o \ |
44 |
|
|
iocLogServer.o \ |
45 |
|
|
racPrint.o \ |
46 |
|
|
recListProg.o \ |
47 |
|
|
startCArepeater.o |
48 |
|
|
|
49 |
|
|
all:: \ |
50 |
tis4000 |
1.2 |
depend \ |
51 |
tis4000 |
1.1 |
libppr.a \ |
52 |
|
|
bfRing \ |
53 |
|
|
ca_test \ |
54 |
|
|
cmdClient \ |
55 |
|
|
iocLogServer \ |
56 |
|
|
racPrint \ |
57 |
|
|
recListProg \ |
58 |
|
|
startCArepeater |
59 |
|
|
|
60 |
|
|
############# TARGETS ########################################################### |
61 |
|
|
|
62 |
|
|
bfRing: bfRing.o $(LIBS) |
63 |
|
|
$(RM) bfRing |
64 |
|
|
$(CC) -o bfRing bfRing.o $(LIBS) -ldl -lm |
65 |
|
|
|
66 |
|
|
ca_test: ca_test.o $(LIBS) |
67 |
|
|
$(RM) ca_test |
68 |
|
|
$(CC) -o ca_test ca_test.o $(LIBS) -lsocket -lnsl -ldl -lm |
69 |
|
|
|
70 |
|
|
cmdClient: cmdClient.o $(LIBS) |
71 |
|
|
$(RM) cmdClient |
72 |
|
|
$(CC) -o cmdClient cmdClient.o $(LIBS) -lsocket -lnsl -ldl -lm |
73 |
|
|
|
74 |
|
|
iocLogServer: iocLogServer.o $(LIBS) |
75 |
|
|
$(RM) iocLogServer |
76 |
|
|
$(CC) -o iocLogServer iocLogServer.o $(LIBS) -lsocket -lnsl -ldl -lm |
77 |
|
|
|
78 |
|
|
libppr.a: $(PPRLIB_OBJS) |
79 |
|
|
$(RM) libppr.a |
80 |
|
|
ar cq libppr.a $(PPRLIB_OBJS) |
81 |
|
|
cp -p libppr.a ../bin |
82 |
|
|
|
83 |
|
|
racPrint: racPrint.o $(LIBS) |
84 |
|
|
$(RM) racPrint |
85 |
|
|
$(CC) -o racPrint racPrint.o $(LIBS) -ldl -lm |
86 |
|
|
|
87 |
|
|
recListProg: recListProg.o $(LIBS) |
88 |
|
|
$(RM) recListProg |
89 |
|
|
$(CC) -o recListProg recListProg.o $(LIBS) -lsocket -lnsl -ldl -lm |
90 |
|
|
|
91 |
|
|
startCArepeater: startCArepeater.o $(LIBS) |
92 |
|
|
$(RM) startCArepeater |
93 |
|
|
$(CC) -o startCArepeater startCArepeater.o $(LIBS) -lsocket -lnsl -ldl -lm |
94 |
|
|
|
95 |
|
|
############# OBJECTS ########################################################### |
96 |
|
|
|
97 |
|
|
bfRing.o: $(SRC)/bfRing.c |
98 |
|
|
$(RM) bfRing.o |
99 |
|
|
$(CC) -c $(CFLAGS) $(INCLUDES) $(SRC)/bfRing.c |
100 |
|
|
|
101 |
|
|
ca_test.o: $(SRC)/ca_test.c |
102 |
|
|
$(RM) ca_test.o |
103 |
|
|
$(CC) -c $(CFLAGS) $(INCLUDES) $(SRC)/ca_test.c |
104 |
|
|
|
105 |
|
|
cmdClient.o: $(SRC)/cmdClient.c |
106 |
|
|
$(RM) cmdClient.o |
107 |
|
|
$(CC) -c $(CFLAGS) $(INCLUDES) $(SRC)/cmdClient.c |
108 |
|
|
|
109 |
|
|
iocLogServer.o: $(SRC)/iocLogServer.c |
110 |
|
|
$(RM) iocLogServer.o |
111 |
|
|
$(CC) -c $(CFLAGS) $(INCLUDES) $(SRC)/iocLogServer.c |
112 |
|
|
|
113 |
|
|
pprPlot.o: $(SRC)/pprPlot.c |
114 |
|
|
$(RM) pprPlot.o |
115 |
|
|
$(CC) -c $(CFLAGS) $(INCLUDES) $(SRC)/pprPlot.c |
116 |
|
|
|
117 |
|
|
racPrint.o: $(SRC)/racPrint.c |
118 |
|
|
$(RM) racPrint |
119 |
|
|
$(CC) -c $(CFLAGS) $(INCLUDES) $(SRC)/racPrint.c |
120 |
|
|
|
121 |
|
|
recListProg.o: $(SRC)/recListProg.c |
122 |
|
|
$(RM) recListProg.o |
123 |
|
|
$(CC) -c $(CFLAGS) $(INCLUDES) $(SRC)/recListProg.c |
124 |
|
|
|
125 |
|
|
startCArepeater.o: $(SRC)/startCArepeater.c |
126 |
|
|
$(RM) startCArepeater.o |
127 |
|
|
$(CC) -c $(CFLAGS) $(INCLUDES) $(SRC)/startCArepeater.c |
128 |
|
|
|
129 |
|
|
sydPlot.o: $(SRC)/sydPlot.c |
130 |
|
|
$(RM) sydPlot.o |
131 |
|
|
$(CC) -c $(CFLAGS) -DXWINDOWS $(INCLUDES) $(SRC)/sydPlot.c |
132 |
|
|
|
133 |
|
|
install:: |
134 |
|
|
cp -p libppr.a ../bin |
135 |
|
|
cp -p bfRing ../bin |
136 |
|
|
cp -p ca_test ../bin |
137 |
|
|
cp -p cmdClient ../bin |
138 |
|
|
cp -p iocLogServer .. |
139 |
|
|
cp -p racPrint ../bin |
140 |
|
|
cp -p recListProg ../bin |
141 |
|
|
cp -p startCArepeater ../bin |
142 |
|
|
|
143 |
|
|
clean : |
144 |
|
|
$(RM) $(OBJS) |
145 |
|
|
$(RM) libppr.a |
146 |
|
|
$(RM) bfRing |
147 |
|
|
$(RM) ca_test |
148 |
|
|
$(RM) cmdClient |
149 |
|
|
$(RM) iocLogServer |
150 |
|
|
$(RM) recListProg |
151 |
|
|
$(RM) racPrint |
152 |
|
|
$(RM) startCArepeater |
153 |
tis4000 |
1.2 |
$(RM) Makefile.depend |
154 |
tis4000 |
1.1 |
|
155 |
tis4000 |
1.2 |
depend: Makefile.depend |
156 |
tis4000 |
1.1 |
|
157 |
tis4000 |
1.3 |
Makefile.depend: $(SRCS) Makefile |
158 |
tis4000 |
1.2 |
$(RM) Makefile.depend |
159 |
|
|
$(CC) -M $(ALLDEFINES) $(SRCS) > Makefile.depend |
160 |
tis4000 |
1.1 |
|
161 |
tis4000 |
1.2 |
include Makefile.depend |
162 |
tis4000 |
1.1 |
|