ncurses 5.3
[ncurses.git] / Ada95 / src / Makefile.in
1 ##############################################################################
2 # Copyright (c) 1998 Free Software Foundation, Inc.                          #
3 #                                                                            #
4 # Permission is hereby granted, free of charge, to any person obtaining a    #
5 # copy of this software and associated documentation files (the "Software"), #
6 # to deal in the Software without restriction, including without limitation  #
7 # the rights to use, copy, modify, merge, publish, distribute, distribute    #
8 # with modifications, sublicense, and/or sell copies of the Software, and to #
9 # permit persons to whom the Software is furnished to do so, subject to the  #
10 # following conditions:                                                      #
11 #                                                                            #
12 # The above copyright notice and this permission notice shall be included in #
13 # all copies or substantial portions of the Software.                        #
14 #                                                                            #
15 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #
16 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,   #
17 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL    #
18 # THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER      #
19 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING    #
20 # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER        #
21 # DEALINGS IN THE SOFTWARE.                                                  #
22 #                                                                            #
23 # Except as contained in this notice, the name(s) of the above copyright     #
24 # holders shall not be used in advertising or otherwise to promote the sale, #
25 # use or other dealings in this Software without prior written               #
26 # authorization.                                                             #
27 ##############################################################################
28 #
29 #  Author:  Juergen Pfeifer, 1996
30 #  Contact: http://www.familiepfeifer.de/Contact.aspx?Lang=en
31 #
32 #  Version Control
33 #  $Revision: 1.26 $
34 #
35 .SUFFIXES:
36
37 SHELL           = /bin/sh
38 THIS            = Makefile
39
40 MODEL           = ../../@DFT_OBJ_SUBDIR@
41 DESTDIR         = @DESTDIR@
42 srcdir          = @srcdir@
43 prefix          = @prefix@
44 exec_prefix     = @exec_prefix@
45 ADA_INCLUDE     = @ADA_INCLUDE@
46
47 INSTALL         = @INSTALL@
48 INSTALL_DATA    = @INSTALL_DATA@
49
50 AR              = @AR@
51 AR_OPTS         = @AR_OPTS@
52 AWK             = @AWK@
53 LN_S            = @LN_S@
54
55 CC              = @CC@
56 CFLAGS          = @CFLAGS@
57
58 CPPFLAGS        = @ACPPFLAGS@ \
59                   -DHAVE_CONFIG_H -I$(srcdir)
60
61 CCFLAGS         = $(CPPFLAGS) $(CFLAGS)
62
63 CFLAGS_NORMAL   = $(CCFLAGS)
64 CFLAGS_DEBUG    = $(CCFLAGS) @CC_G_OPT@ -DTRACE
65 CFLAGS_PROFILE  = $(CCFLAGS) -pg
66 CFLAGS_SHARED   = $(CCFLAGS) @CC_SHARED_OPTS@
67
68 CFLAGS_DEFAULT  = $(CFLAGS_@DFT_UPR_MODEL@)
69
70 LINK            = $(CC)
71 LDFLAGS         = @LDFLAGS@ @LD_MODEL@ @LIBS@
72
73 RANLIB          = @RANLIB@
74 ################################################################################
75 ADA             = @cf_ada_compiler@
76 ADAPREP         = gnatprep
77 ADAFLAGS        = @ADAFLAGS@ -I. -I$(srcdir)
78
79 ADAMAKE         = @cf_ada_make@
80 ADAMAKEFLAGS    = 
81
82 CARGS           = -cargs $(ADAFLAGS)
83 LARGS           =
84
85 ALIB            = @cf_ada_package@
86 ABASE           = $(ALIB)-curses
87
88 LIBALIS=$(ALIB).ali                                     \
89         $(ABASE)-aux.ali                                \
90         $(ABASE).ali                                    \
91         $(ABASE)-terminfo.ali                           \
92         $(ABASE)-termcap.ali                            \
93         $(ABASE)-putwin.ali                             \
94         $(ABASE)-trace.ali                              \
95         $(ABASE)-mouse.ali                              \
96         $(ABASE)-panels.ali                             \
97         $(ABASE)-menus.ali                              \
98         $(ABASE)-forms.ali                              \
99         $(ABASE)-forms-field_types.ali                  \
100         $(ABASE)-forms-field_types-alpha.ali            \
101         $(ABASE)-forms-field_types-alphanumeric.ali     \
102         $(ABASE)-forms-field_types-intfield.ali         \
103         $(ABASE)-forms-field_types-numeric.ali          \
104         $(ABASE)-forms-field_types-regexp.ali           \
105         $(ABASE)-forms-field_types-enumeration.ali      \
106         $(ABASE)-forms-field_types-ipv4_address.ali     \
107         $(ABASE)-forms-field_types-user.ali             \
108         $(ABASE)-forms-field_types-user-choice.ali      \
109         $(ABASE)-text_io.ali                            \
110         $(ABASE)-text_io-aux.ali
111
112 # Ada Library files for generic packages. Since gnat 3.10 they are
113 # also compiled
114 GENALIS=$(ABASE)-menus-menu_user_data.ali               \
115         $(ABASE)-menus-item_user_data.ali               \
116         $(ABASE)-forms-form_user_data.ali               \
117         $(ABASE)-forms-field_user_data.ali              \
118         $(ABASE)-forms-field_types-enumeration-ada.ali  \
119         $(ABASE)-panels-user_data.ali                   \
120         $(ABASE)-text_io-integer_io.ali                 \
121         $(ABASE)-text_io-float_io.ali                   \
122         $(ABASE)-text_io-fixed_io.ali                   \
123         $(ABASE)-text_io-decimal_io.ali                 \
124         $(ABASE)-text_io-enumeration_io.ali             \
125         $(ABASE)-text_io-modular_io.ali                 \
126         $(ABASE)-text_io-complex_io.ali
127
128 LIBOBJS=$(ALIB).o                                       \
129         $(ABASE)-aux.o                                  \
130         $(ABASE).o                                      \
131         $(ABASE)-terminfo.o                             \
132         $(ABASE)-termcap.o                              \
133         $(ABASE)-putwin.o                               \
134         $(ABASE)-trace.o                                \
135         $(ABASE)-mouse.o                                \
136         $(ABASE)-panels.o                               \
137         $(ABASE)-menus.o                                \
138         $(ABASE)-forms.o                                \
139         $(ABASE)-forms-field_types.o                    \
140         $(ABASE)-forms-field_types-alpha.o              \
141         $(ABASE)-forms-field_types-alphanumeric.o       \
142         $(ABASE)-forms-field_types-intfield.o           \
143         $(ABASE)-forms-field_types-numeric.o            \
144         $(ABASE)-forms-field_types-regexp.o             \
145         $(ABASE)-forms-field_types-enumeration.o        \
146         $(ABASE)-forms-field_types-ipv4_address.o       \
147         $(ABASE)-forms-field_types-user.o               \
148         $(ABASE)-forms-field_types-user-choice.o        \
149         $(ABASE)-text_io.o                              \
150         $(ABASE)-text_io-aux.o
151
152 # Ada object files for generic packages. Since gnat 3.10 they are
153 # also compiled
154 GENOBJS=$(ABASE)-menus-menu_user_data.o                 \
155         $(ABASE)-menus-item_user_data.o                 \
156         $(ABASE)-forms-form_user_data.o                 \
157         $(ABASE)-forms-field_user_data.o                \
158         $(ABASE)-forms-field_types-enumeration-ada.o    \
159         $(ABASE)-panels-user_data.o                     \
160         $(ABASE)-text_io-integer_io.o                   \
161         $(ABASE)-text_io-float_io.o                     \
162         $(ABASE)-text_io-fixed_io.o                     \
163         $(ABASE)-text_io-decimal_io.o                   \
164         $(ABASE)-text_io-enumeration_io.o               \
165         $(ABASE)-text_io-modular_io.o                   \
166         $(ABASE)-text_io-complex_io.o
167
168
169 all ::  libAdaCurses.a
170         @echo done
171
172 libAdaCurses.a :: dotouch $(LIBOBJS) @cf_generic_objects@
173         $(AR) $(AR_OPTS) $@ $(LIBOBJS) @cf_generic_objects@
174
175 dotouch :
176         @sh -c 'for f in $(LIBALIS) $(GENALIS); do test -f $$f || touch $$f; done'
177
178 sources :
179         @
180
181 libs \
182 install \
183 install.libs \
184 uninstall \
185 uninstall.libs ::
186         @
187
188 generics: $(GENALIS)
189         @
190
191 mostlyclean ::
192         rm -f *.o *.ali b_t*.* *.s $(PROGS) a.out core b_*_test.c *.xr[bs] *.a
193
194 clean :: mostlyclean
195         rm -f $(LIBALIS) $(GENALIS) $(LIBOBJS) $(GENOBJS) $(ABASE)-trace.adb
196
197 distclean :: clean
198         rm -f Makefile
199
200 realclean :: distclean
201
202 BASEDEPS=$(ABASE).ads $(ABASE)-aux.ads $(srcdir)/$(ABASE).adb
203
204 $(ALIB).o: $(srcdir)/$(ALIB).ads
205         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ALIB).ads
206
207
208 $(ABASE)-aux.o: $(srcdir)/$(ABASE)-aux.adb $(BASEDEPS)
209         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-aux.adb
210
211
212 $(ABASE).o: $(srcdir)/$(ABASE).adb $(BASEDEPS)
213         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE).adb
214
215
216 $(ABASE)-terminfo.o: \
217                 $(ABASE)-terminfo.ads \
218                 $(srcdir)/$(ABASE)-terminfo.adb $(BASEDEPS)
219         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-terminfo.adb
220
221
222 $(ABASE)-termcap.o: \
223                 $(ABASE)-termcap.ads \
224                 $(srcdir)/$(ABASE)-termcap.adb $(BASEDEPS)
225         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-termcap.adb
226
227
228 $(ABASE)-putwin.o: \
229                 $(ABASE)-putwin.ads \
230                 $(srcdir)/$(ABASE)-putwin.adb $(BASEDEPS)
231         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-putwin.adb
232
233
234 $(ABASE)-trace.adb : $(srcdir)/$(ABASE)-trace.adb_p
235         rm -f $@
236         $(ADAPREP) -DADA_TRACE=@ADA_TRACE@ $(srcdir)/$(ABASE)-trace.adb_p $@
237
238 $(ABASE)-trace.o: \
239                 $(ABASE)-trace.ads \
240                 $(ABASE)-trace.adb $(BASEDEPS)
241         $(ADA) $(ADAFLAGS) -c -o $@ $(ABASE)-trace.adb
242
243
244 $(ABASE)-mouse.o: \
245                 $(ABASE)-mouse.ads \
246                 $(srcdir)/$(ABASE)-mouse.adb $(BASEDEPS)
247         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-mouse.adb
248
249
250 $(ABASE)-panels.o: \
251                 $(ABASE)-panels.ads \
252                 $(srcdir)/$(ABASE)-panels.adb $(BASEDEPS)
253         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-panels.adb
254
255
256 $(ABASE)-menus.o: \
257                 $(ABASE)-menus.ads \
258                 $(srcdir)/$(ABASE)-menus.adb $(BASEDEPS)
259         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-menus.adb
260
261
262 $(ABASE)-forms.o: \
263                 $(ABASE)-forms.ads \
264                 $(srcdir)/$(ABASE)-forms.adb $(BASEDEPS)
265         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-forms.adb
266
267 $(ABASE)-forms-field_types.o: \
268                 $(ABASE)-forms-field_types.ads \
269                 $(srcdir)/$(ABASE)-forms-field_types.adb $(BASEDEPS)
270         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-forms-field_types.adb
271
272 $(ABASE)-forms-field_types-alpha.o: \
273                 $(srcdir)/$(ABASE)-forms-field_types-alpha.ads \
274                 $(srcdir)/$(ABASE)-forms-field_types-alpha.adb $(BASEDEPS)
275         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-forms-field_types-alpha.adb
276
277 $(ABASE)-forms-field_types-alphanumeric.o: \
278                 $(srcdir)/$(ABASE)-forms-field_types-alphanumeric.ads \
279                 $(srcdir)/$(ABASE)-forms-field_types-alphanumeric.adb $(BASEDEPS)
280         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-forms-field_types-alphanumeric.adb
281
282 $(ABASE)-forms-field_types-intfield.o: \
283                 $(srcdir)/$(ABASE)-forms-field_types-intfield.ads \
284                 $(srcdir)/$(ABASE)-forms-field_types-intfield.adb $(BASEDEPS)
285         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-forms-field_types-intfield.adb
286
287 $(ABASE)-forms-field_types-numeric.o: \
288                 $(srcdir)/$(ABASE)-forms-field_types-numeric.ads \
289                 $(srcdir)/$(ABASE)-forms-field_types-numeric.adb $(BASEDEPS)
290         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-forms-field_types-numeric.adb
291
292 $(ABASE)-forms-field_types-regexp.o: \
293                 $(srcdir)/$(ABASE)-forms-field_types-regexp.ads \
294                 $(srcdir)/$(ABASE)-forms-field_types-regexp.adb $(BASEDEPS)
295         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-forms-field_types-regexp.adb
296
297 $(ABASE)-forms-field_types-enumeration.o: \
298                 $(srcdir)/$(ABASE)-forms-field_types-enumeration.ads \
299                 $(srcdir)/$(ABASE)-forms-field_types-enumeration.adb $(BASEDEPS)
300         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-forms-field_types-enumeration.adb
301
302 $(ABASE)-forms-field_types-ipv4_address.o: \
303                 $(srcdir)/$(ABASE)-forms-field_types-ipv4_address.ads \
304                 $(srcdir)/$(ABASE)-forms-field_types-ipv4_address.adb $(BASEDEPS)
305         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-forms-field_types-ipv4_address.adb
306
307 $(ABASE)-forms-field_types-user.o: \
308                 $(srcdir)/$(ABASE)-forms-field_types-user.ads \
309                 $(srcdir)/$(ABASE)-forms-field_types-user.adb $(BASEDEPS)
310         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-forms-field_types-user.adb
311
312 $(ABASE)-forms-field_types-user-choice.o: \
313                 $(srcdir)/$(ABASE)-forms-field_types-user-choice.ads \
314                 $(srcdir)/$(ABASE)-forms-field_types-user-choice.adb $(BASEDEPS)
315         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-forms-field_types-user-choice.adb
316
317 $(ABASE)-text_io.o: \
318                 $(srcdir)/$(ABASE)-text_io.ads \
319                 $(srcdir)/$(ABASE)-text_io.adb $(BASEDEPS)
320         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-text_io.adb
321
322 $(ABASE)-text_io-aux.o: \
323                 $(srcdir)/$(ABASE)-text_io-aux.ads \
324                 $(srcdir)/$(ABASE)-text_io-aux.adb $(BASEDEPS)
325         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-text_io-aux.adb
326
327 $(ABASE)-menus-menu_user_data.o: \
328                 $(ABASE)-menus-menu_user_data.ads \
329                 $(srcdir)/$(ABASE)-menus-menu_user_data.adb $(BASEDEPS)
330         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-menus-menu_user_data.adb
331
332 $(ABASE)-menus-item_user_data.o: \
333                 $(ABASE)-menus-item_user_data.ads \
334                 $(srcdir)/$(ABASE)-menus-item_user_data.adb $(BASEDEPS)
335         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-menus-item_user_data.adb
336
337 $(ABASE)-forms-form_user_data.o: \
338                 $(ABASE)-forms-form_user_data.ads \
339                 $(srcdir)/$(ABASE)-forms-form_user_data.adb $(BASEDEPS)
340         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-forms-form_user_data.adb
341
342 $(ABASE)-forms-field_user_data.o: \
343                 $(ABASE)-forms-field_user_data.ads \
344                 $(srcdir)/$(ABASE)-forms-field_user_data.adb $(BASEDEPS)
345         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-forms-field_user_data.adb
346
347 $(ABASE)-forms-field_types-enumeration-ada.o: \
348                 $(srcdir)/$(ABASE)-forms-field_types-enumeration-ada.ads \
349                 $(srcdir)/$(ABASE)-forms-field_types-enumeration-ada.adb $(BASEDEPS)
350         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-forms-field_types-enumeration-ada.adb
351
352 $(ABASE)-panels-user_data.o: \
353                 $(ABASE)-panels-user_data.ads \
354                 $(srcdir)/$(ABASE)-panels-user_data.adb $(BASEDEPS)
355         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-panels-user_data.adb
356
357 $(ABASE)-text_io-integer_io.o: \
358                 $(srcdir)/$(ABASE)-text_io-integer_io.ads \
359                 $(srcdir)/$(ABASE)-text_io-integer_io.adb $(BASEDEPS)
360         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-text_io-integer_io.adb
361
362 $(ABASE)-text_io-float_io.o: \
363                 $(srcdir)/$(ABASE)-text_io-float_io.ads \
364                 $(srcdir)/$(ABASE)-text_io-float_io.adb $(BASEDEPS)
365         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-text_io-float_io.adb
366
367 $(ABASE)-text_io-fixed_io.o: \
368                 $(srcdir)/$(ABASE)-text_io-fixed_io.ads \
369                 $(srcdir)/$(ABASE)-text_io-fixed_io.adb $(BASEDEPS)
370         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-text_io-fixed_io.adb
371
372 $(ABASE)-text_io-decimal_io.o: \
373                 $(srcdir)/$(ABASE)-text_io-decimal_io.ads \
374                 $(srcdir)/$(ABASE)-text_io-decimal_io.adb $(BASEDEPS)
375         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-text_io-decimal_io.adb
376
377 $(ABASE)-text_io-enumeration_io.o: \
378                 $(srcdir)/$(ABASE)-text_io-enumeration_io.ads \
379                 $(srcdir)/$(ABASE)-text_io-enumeration_io.adb $(BASEDEPS)
380         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-text_io-enumeration_io.adb
381
382 $(ABASE)-text_io-modular_io.o: \
383                 $(srcdir)/$(ABASE)-text_io-modular_io.ads \
384                 $(srcdir)/$(ABASE)-text_io-modular_io.adb $(BASEDEPS)
385         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-text_io-modular_io.adb
386
387 $(ABASE)-text_io-complex_io.o: \
388                 $(srcdir)/$(ABASE)-text_io-complex_io.ads \
389                 $(srcdir)/$(ABASE)-text_io-complex_io.adb $(BASEDEPS)
390         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-text_io-complex_io.adb