1 |
################################################################# |
2 |
# # |
3 |
# This software is the proprietary property of Tate # |
4 |
# Integrated Systems, L.P. Patents and copyrights are # |
5 |
# pending. # |
6 |
# # |
7 |
# This software is furnished under a license and may # |
8 |
# be used and copied only in accordance with the terms # |
9 |
# of such license and with the inclusion of the above # |
10 |
# notice. This software or any other copies thereof # |
11 |
# may not be provided or otherwise made available to # |
12 |
# any other person. No title to and ownership of the # |
13 |
# software is hereby transferred. # |
14 |
# # |
15 |
# The information in this software is subject to # |
16 |
# change without notice and should not be construed # |
17 |
# as a commitment by Tate Integrated Systems L.P. or # |
18 |
# its third party suppliers. # |
19 |
# # |
20 |
# Tate Integrated Systems, L.P. (TIS) and its third # |
21 |
# party suppliers assume no responsibility for the # |
22 |
# use or inability to use any of its software. TIS # |
23 |
# software is provided "as is" without warranty of # |
24 |
# any kind and TIS expressly disclaims all implied # |
25 |
# warranties, including but not limited to the implied # |
26 |
# warranties of merchantability and fitness for a # |
27 |
# particular purpose. # |
28 |
# # |
29 |
# Notice: Notwithstanding any other lease or license # |
30 |
# that may pertain to or accompany the delivery of this # |
31 |
# computer software, the rights of the Government # |
32 |
# regarding its use, reproduction, and disclosure are # |
33 |
# as set forth in Section 52.227-19 of the FARS # |
34 |
# Computer Software-Restricted Rights clause. # |
35 |
# # |
36 |
################################################################# |
37 |
CC = gcc -inostdinc -I/usr/include -DSOLARIS |
38 |
CFLAGS = -g -DUNIX |
39 |
RM = rm -f |
40 |
CODEBASEPATH = /tools/codebase63/source |
41 |
TOP = ../../../.. |
42 |
SRC = $(TOP)/share/src |
43 |
INC = $(TOP)/share |
44 |
|
45 |
INCLUDES = \ |
46 |
-I$(INC)/src/opi/h \ |
47 |
-I$(WHICHMOTIF)/include \ |
48 |
-I/usr/include/X11 \ |
49 |
-I/usr/include/sys \ |
50 |
-I$(INC)/epicsH \ |
51 |
-I$(CODEBASEPATH) |
52 |
|
53 |
LIBS = \ |
54 |
../../opi/menu/libmenu.a \ |
55 |
../gizmo/libgz.a \ |
56 |
../util/libutil.a \ |
57 |
../../bin/libUnix.a \ |
58 |
../../bin/libCom.a \ |
59 |
../../bin/libtlm.a \ |
60 |
../../bin/tisMsgLib.a |
61 |
|
62 |
ALLDEFINES = $(CFLAGS) $(INCLUDES) -DSOLARIS |
63 |
|
64 |
SRCS = \ |
65 |
$(SRC)/opi/edd/align_selections.c $(SRC)/opi/edd/atodl_lex.c \ |
66 |
$(SRC)/opi/edd/distribute_selections.c $(SRC)/opi/edd/edd.c \ |
67 |
$(SRC)/opi/edd/edd_stream_io.c $(SRC)/opi/edd/element.c \ |
68 |
$(SRC)/opi/edd/get_coordinate.c $(SRC)/opi/edd/load.c \ |
69 |
$(SRC)/opi/edd/load_adl.c $(SRC)/opi/edd/menu_actions.c \ |
70 |
$(SRC)/opi/edd/modify.c $(SRC)/opi/edd/modify_color.c \ |
71 |
$(SRC)/opi/edd/modify_color_rules.c $(SRC)/opi/edd/pick.c \ |
72 |
$(SRC)/opi/edd/redraw_dl.c $(SRC)/opi/edd/save.c \ |
73 |
$(SRC)/opi/edd/select_util.c $(SRC)/opi/edd/selections.c \ |
74 |
$(SRC)/opi/edd/undo.c \ |
75 |
$(SRC)/opi/edd/einfo_string_init.c \ |
76 |
$(SRC)/opi/edd/sinfo_string_init.c |
77 |
|
78 |
TSRCS = \ |
79 |
$(SRC)/opi/edd/t_align_selections.c $(SRC)/opi/edd/t_atodl_lex.c \ |
80 |
$(SRC)/opi/edd/t_distribute_selections.c $(SRC)/opi/edd/t_edd.c \ |
81 |
$(SRC)/opi/edd/t_edd_stream_io.c $(SRC)/opi/edd/t_element.c \ |
82 |
$(SRC)/opi/edd/t_get_coordinate.c $(SRC)/opi/edd/t_load.c \ |
83 |
$(SRC)/opi/edd/t_load_adl.c $(SRC)/opi/edd/t_menu_actions.c \ |
84 |
$(SRC)/opi/edd/t_modify.c $(SRC)/opi/edd/t_modify_color.c \ |
85 |
$(SRC)/opi/edd/t_modify_color_rules.c $(SRC)/opi/edd/t_pick.c \ |
86 |
$(SRC)/opi/edd/t_redraw_dl.c $(SRC)/opi/edd/t_save.c \ |
87 |
$(SRC)/opi/edd/t_select_util.c $(SRC)/opi/edd/t_selections.c \ |
88 |
$(SRC)/opi/edd/t_undo.c \ |
89 |
$(SRC)/opi/edd/t_einfo_string_init.c \ |
90 |
$(SRC)/opi/edd/t_sinfo_string_init.c |
91 |
|
92 |
OBJS = \ |
93 |
align_selections.o \ |
94 |
atodl_lex.o \ |
95 |
distribute_selections.o \ |
96 |
edd.o \ |
97 |
edd_stream_io.o \ |
98 |
element.o \ |
99 |
get_coordinate.o \ |
100 |
load.o \ |
101 |
load_adl.o \ |
102 |
menu_actions.o \ |
103 |
modify.o \ |
104 |
modify_color.o \ |
105 |
modify_color_rules.o \ |
106 |
pick.o \ |
107 |
redraw_dl.o \ |
108 |
save.o \ |
109 |
select_util.o \ |
110 |
selections.o \ |
111 |
undo.o \ |
112 |
einfo_string_init.o \ |
113 |
sinfo_string_init.o |
114 |
|
115 |
all : depend edd |
116 |
|
117 |
edd: $(OBJS) $(LIBS) |
118 |
$(CC) -o edd $(OBJS) ../dm/memLeak.o \ |
119 |
$(LIBS) \ |
120 |
-L/usr/local/lib -lXpm -lX11 -ll -lsocket -lnsl -ldl |
121 |
|
122 |
align_selections.o: \ |
123 |
$(SRC)/opi/edd/t_align_selections.c |
124 |
$(CC) -c $(CFLAGS) \ |
125 |
$(INCLUDES) \ |
126 |
-o align_selections.o $(SRC)/opi/edd/t_align_selections.c |
127 |
|
128 |
atodl_lex.o: \ |
129 |
$(SRC)/opi/edd/t_atodl_lex.c |
130 |
$(CC) -c $(CFLAGS) \ |
131 |
$(INCLUDES) \ |
132 |
-o atodl_lex.o $(SRC)/opi/edd/t_atodl_lex.c |
133 |
|
134 |
distribute_selections.o: \ |
135 |
$(SRC)/opi/edd/t_distribute_selections.c |
136 |
$(CC) -c $(CFLAGS) \ |
137 |
$(INCLUDES) \ |
138 |
-o distribute_selections.o $(SRC)/opi/edd/t_distribute_selections.c |
139 |
|
140 |
edd.o: \ |
141 |
$(SRC)/opi/edd/t_edd.c |
142 |
$(CC) -c $(CFLAGS) \ |
143 |
$(INCLUDES) \ |
144 |
-o edd.o $(SRC)/opi/edd/t_edd.c |
145 |
|
146 |
edd_stream_io.o: \ |
147 |
$(SRC)/opi/edd/t_edd_stream_io.c |
148 |
$(CC) -c $(CFLAGS) \ |
149 |
$(INCLUDES) \ |
150 |
-o edd_stream_io.o $(SRC)/opi/edd/t_edd_stream_io.c |
151 |
|
152 |
element.o: \ |
153 |
$(SRC)/opi/edd/t_element.c |
154 |
$(CC) -c $(CFLAGS) \ |
155 |
$(INCLUDES) \ |
156 |
-o element.o $(SRC)/opi/edd/t_element.c |
157 |
|
158 |
get_coordinate.o: \ |
159 |
$(SRC)/opi/edd/t_get_coordinate.c |
160 |
$(CC) -c $(CFLAGS) \ |
161 |
$(INCLUDES) \ |
162 |
-o get_coordinate.o $(SRC)/opi/edd/t_get_coordinate.c |
163 |
|
164 |
load.o: \ |
165 |
$(SRC)/opi/edd/t_load.c |
166 |
$(CC) -c $(CFLAGS) \ |
167 |
$(INCLUDES) \ |
168 |
-o load.o $(SRC)/opi/edd/t_load.c |
169 |
|
170 |
load_adl.o: \ |
171 |
$(SRC)/opi/edd/t_load_adl.c |
172 |
$(CC) -c $(CFLAGS) \ |
173 |
$(INCLUDES) \ |
174 |
-o load_adl.o $(SRC)/opi/edd/t_load_adl.c |
175 |
|
176 |
menu_actions.o: \ |
177 |
$(SRC)/opi/edd/t_menu_actions.c |
178 |
$(CC) -c $(CFLAGS) \ |
179 |
$(INCLUDES) \ |
180 |
-o menu_actions.o $(SRC)/opi/edd/t_menu_actions.c |
181 |
|
182 |
modify.o: \ |
183 |
$(SRC)/opi/edd/t_modify.c |
184 |
$(CC) -c $(CFLAGS) \ |
185 |
$(INCLUDES) \ |
186 |
-o modify.o $(SRC)/opi/edd/t_modify.c |
187 |
|
188 |
modify_color.o: \ |
189 |
$(SRC)/opi/edd/t_modify_color.c |
190 |
$(CC) -c $(CFLAGS) \ |
191 |
$(INCLUDES) \ |
192 |
-o modify_color.o $(SRC)/opi/edd/t_modify_color.c |
193 |
|
194 |
modify_color_rules.o: \ |
195 |
$(SRC)/opi/edd/t_modify_color_rules.c |
196 |
$(CC) -c $(CFLAGS) \ |
197 |
$(INCLUDES) \ |
198 |
-o modify_color_rules.o $(SRC)/opi/edd/t_modify_color_rules.c |
199 |
|
200 |
pick.o: \ |
201 |
$(SRC)/opi/edd/t_pick.c |
202 |
$(CC) -c $(CFLAGS) \ |
203 |
$(INCLUDES) \ |
204 |
-o pick.o $(SRC)/opi/edd/t_pick.c |
205 |
|
206 |
redraw_dl.o: \ |
207 |
$(SRC)/opi/edd/t_redraw_dl.c |
208 |
$(CC) -c $(CFLAGS) \ |
209 |
$(INCLUDES) \ |
210 |
-o redraw_dl.o $(SRC)/opi/edd/t_redraw_dl.c |
211 |
|
212 |
save.o: \ |
213 |
$(SRC)/opi/edd/t_save.c |
214 |
$(CC) -c $(CFLAGS) \ |
215 |
$(INCLUDES) \ |
216 |
-o save.o $(SRC)/opi/edd/t_save.c |
217 |
|
218 |
select_util.o: \ |
219 |
$(SRC)/opi/edd/t_select_util.c |
220 |
$(CC) -c $(CFLAGS) \ |
221 |
$(INCLUDES) \ |
222 |
-o select_util.o $(SRC)/opi/edd/t_select_util.c |
223 |
|
224 |
selections.o: \ |
225 |
$(SRC)/opi/edd/t_selections.c |
226 |
$(CC) -c $(CFLAGS) \ |
227 |
$(INCLUDES) \ |
228 |
-o selections.o $(SRC)/opi/edd/t_selections.c |
229 |
|
230 |
undo.o: \ |
231 |
$(SRC)/opi/edd/t_undo.c |
232 |
$(CC) -c $(CFLAGS) \ |
233 |
$(INCLUDES) \ |
234 |
-o undo.o $(SRC)/opi/edd/t_undo.c |
235 |
|
236 |
einfo_string_init.o: \ |
237 |
$(SRC)/opi/edd/t_einfo_string_init.c |
238 |
$(CC) -c $(CFLAGS) \ |
239 |
$(INCLUDES) \ |
240 |
-o einfo_string_init.o $(SRC)/opi/edd/t_einfo_string_init.c |
241 |
|
242 |
sinfo_string_init.o: \ |
243 |
$(SRC)/opi/edd/t_sinfo_string_init.c |
244 |
$(CC) -c $(CFLAGS) \ |
245 |
$(INCLUDES) \ |
246 |
-o sinfo_string_init.o $(SRC)/opi/edd/t_sinfo_string_init.c |
247 |
|
248 |
install : |
249 |
cp -p edd ../../bin |
250 |
cp -p ../opiStringTable ../../bin |
251 |
|
252 |
clean : |
253 |
$(RM) $(OBJS) |
254 |
$(RM) edd |
255 |
$(RM) Makefile.depend |
256 |
|
257 |
depend: Makefile.depend |
258 |
|
259 |
Makefile.depend: $(SRCS) Makefile |
260 |
$(RM) Makefile.depend |
261 |
$(CC) -M $(ALLDEFINES) $(SRCS) > Makefile.depend |
262 |
|
263 |
include Makefile.depend |
264 |
|