ncurses 5.7 - patch 20100220
[ncurses.git] / Ada95 / src / Makefile.in
1 ##############################################################################
2 # Copyright (c) 1998-2007,2009 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 #
31 #  $Id: Makefile.in,v 1.34 2009/01/11 01:11:44 tom Exp $
32 #
33 .SUFFIXES:
34
35 SHELL           = /bin/sh
36 THIS            = Makefile
37
38 MODEL           = ../../@DFT_OBJ_SUBDIR@
39
40 DESTDIR         = @DESTDIR@
41
42 top_srcdir      = @top_srcdir@
43 srcdir          = @srcdir@
44 prefix          = @prefix@
45 exec_prefix     = @exec_prefix@
46
47 ADA_INCLUDE     = $(DESTDIR)@ADA_INCLUDE@
48 ADA_OBJECTS     = $(DESTDIR)@ADA_OBJECTS@
49
50 INSTALL         = @INSTALL@
51 INSTALL_LIB     = @INSTALL@ @INSTALL_LIB@
52
53 AR              = @AR@
54 ARFLAGS         = @ARFLAGS@
55 AWK             = @AWK@
56 LN_S            = @LN_S@
57
58 CC              = @CC@
59 CFLAGS          = @CFLAGS@
60
61 CPPFLAGS        = @ACPPFLAGS@ \
62                   -DHAVE_CONFIG_H -I$(srcdir)
63
64 CCFLAGS         = $(CPPFLAGS) $(CFLAGS)
65
66 CFLAGS_NORMAL   = $(CCFLAGS)
67 CFLAGS_DEBUG    = $(CCFLAGS) @CC_G_OPT@ -DTRACE
68 CFLAGS_PROFILE  = $(CCFLAGS) -pg
69 CFLAGS_SHARED   = $(CCFLAGS) @CC_SHARED_OPTS@
70
71 CFLAGS_DEFAULT  = $(CFLAGS_@DFT_UPR_MODEL@)
72
73 LINK            = $(CC)
74 LDFLAGS         = @LDFLAGS@ @LD_MODEL@ @LIBS@
75
76 RANLIB          = @RANLIB@
77 ################################################################################
78 ADA             = @cf_ada_compiler@
79 ADAPREP         = gnatprep
80 ADAFLAGS        = @ADAFLAGS@ -I. -I$(srcdir)
81
82 ADAMAKE         = @cf_ada_make@
83 ADAMAKEFLAGS    =
84
85 CARGS           = -cargs $(ADAFLAGS)
86 LARGS           =
87
88 LIBRARY_FILE    = libAdaCurses.a
89 ALIB            = @cf_ada_package@
90 ABASE           = $(ALIB)-curses
91
92 LIBALIS=$(ALIB).ali                                     \
93         $(ABASE)-aux.ali                                \
94         $(ABASE).ali                                    \
95         $(ABASE)-terminfo.ali                           \
96         $(ABASE)-termcap.ali                            \
97         $(ABASE)-putwin.ali                             \
98         $(ABASE)-trace.ali                              \
99         $(ABASE)-mouse.ali                              \
100         $(ABASE)-panels.ali                             \
101         $(ABASE)-menus.ali                              \
102         $(ABASE)-forms.ali                              \
103         $(ABASE)-forms-field_types.ali                  \
104         $(ABASE)-forms-field_types-alpha.ali            \
105         $(ABASE)-forms-field_types-alphanumeric.ali     \
106         $(ABASE)-forms-field_types-intfield.ali         \
107         $(ABASE)-forms-field_types-numeric.ali          \
108         $(ABASE)-forms-field_types-regexp.ali           \
109         $(ABASE)-forms-field_types-enumeration.ali      \
110         $(ABASE)-forms-field_types-ipv4_address.ali     \
111         $(ABASE)-forms-field_types-user.ali             \
112         $(ABASE)-forms-field_types-user-choice.ali      \
113         $(ABASE)-text_io.ali                            \
114         $(ABASE)-text_io-aux.ali
115
116 # Ada Library files for generic packages. Since gnat 3.10 they are
117 # also compiled
118 GENALIS=$(ABASE)-menus-menu_user_data.ali               \
119         $(ABASE)-menus-item_user_data.ali               \
120         $(ABASE)-forms-form_user_data.ali               \
121         $(ABASE)-forms-field_user_data.ali              \
122         $(ABASE)-forms-field_types-enumeration-ada.ali  \
123         $(ABASE)-panels-user_data.ali                   \
124         $(ABASE)-text_io-integer_io.ali                 \
125         $(ABASE)-text_io-float_io.ali                   \
126         $(ABASE)-text_io-fixed_io.ali                   \
127         $(ABASE)-text_io-decimal_io.ali                 \
128         $(ABASE)-text_io-enumeration_io.ali             \
129         $(ABASE)-text_io-modular_io.ali                 \
130         $(ABASE)-text_io-complex_io.ali
131
132 LIBOBJS=$(ALIB).o                                       \
133         $(ABASE)-aux.o                                  \
134         $(ABASE).o                                      \
135         $(ABASE)-terminfo.o                             \
136         $(ABASE)-termcap.o                              \
137         $(ABASE)-putwin.o                               \
138         $(ABASE)-trace.o                                \
139         $(ABASE)-mouse.o                                \
140         $(ABASE)-panels.o                               \
141         $(ABASE)-menus.o                                \
142         $(ABASE)-forms.o                                \
143         $(ABASE)-forms-field_types.o                    \
144         $(ABASE)-forms-field_types-alpha.o              \
145         $(ABASE)-forms-field_types-alphanumeric.o       \
146         $(ABASE)-forms-field_types-intfield.o           \
147         $(ABASE)-forms-field_types-numeric.o            \
148         $(ABASE)-forms-field_types-regexp.o             \
149         $(ABASE)-forms-field_types-enumeration.o        \
150         $(ABASE)-forms-field_types-ipv4_address.o       \
151         $(ABASE)-forms-field_types-user.o               \
152         $(ABASE)-forms-field_types-user-choice.o        \
153         $(ABASE)-text_io.o                              \
154         $(ABASE)-text_io-aux.o
155
156 # Ada object files for generic packages. Since gnat 3.10 they are
157 # also compiled
158 GENOBJS=$(ABASE)-menus-menu_user_data.o                 \
159         $(ABASE)-menus-item_user_data.o                 \
160         $(ABASE)-forms-form_user_data.o                 \
161         $(ABASE)-forms-field_user_data.o                \
162         $(ABASE)-forms-field_types-enumeration-ada.o    \
163         $(ABASE)-panels-user_data.o                     \
164         $(ABASE)-text_io-integer_io.o                   \
165         $(ABASE)-text_io-float_io.o                     \
166         $(ABASE)-text_io-fixed_io.o                     \
167         $(ABASE)-text_io-decimal_io.o                   \
168         $(ABASE)-text_io-enumeration_io.o               \
169         $(ABASE)-text_io-modular_io.o                   \
170         $(ABASE)-text_io-complex_io.o
171
172
173 all ::  $(LIBRARY_FILE)
174         @echo done
175
176 $(LIBRARY_FILE) :: $(LIBOBJS) @cf_generic_objects@
177         $(AR) $(ARFLAGS) $@ $(LIBOBJS) @cf_generic_objects@
178
179 sources :
180         @echo made $@
181
182 libs \
183 install \
184 install.libs :: $(LIBRARY_FILE)
185         @echo made $(LIBRARY_FILE)
186
187 install \
188 install.libs :: $(LIBRARY_FILE)
189         @$(top_srcdir)/tar-copy.sh $(LIBRARY_FILE) . $(ADA_OBJECTS)
190         @echo made $@
191
192 uninstall \
193 uninstall.libs ::
194         @echo made $@
195
196 generics: $(GENALIS)
197         @echo made $@
198
199 mostlyclean ::
200         rm -f *.o *.ali b_t*.* *.s $(PROGS) a.out core b_*_test.c *.xr[bs] *.a
201
202 clean :: mostlyclean
203         rm -f $(LIBALIS) $(GENALIS) $(LIBOBJS) $(GENOBJS) $(ABASE)-trace.adb
204
205 distclean :: clean
206         rm -f Makefile
207
208 realclean :: distclean
209
210 BASEDEPS=$(ABASE).ads $(ABASE)-aux.ads $(ABASE).adb
211
212 $(ALIB).o: $(srcdir)/$(ALIB).ads
213         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ALIB).ads
214
215
216 $(ABASE)-aux.o: $(srcdir)/$(ABASE)-aux.adb $(BASEDEPS)
217         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-aux.adb
218
219
220 $(ABASE).o: $(ABASE).adb $(BASEDEPS)
221         $(ADA) $(ADAFLAGS) -c -o $@ $(ABASE).adb
222
223
224 $(ABASE)-terminfo.o: \
225                 $(srcdir)/$(ABASE)-terminfo.ads \
226                 $(srcdir)/$(ABASE)-terminfo.adb $(BASEDEPS)
227         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-terminfo.adb
228
229
230 $(ABASE)-termcap.o: \
231                 $(srcdir)/$(ABASE)-termcap.ads \
232                 $(srcdir)/$(ABASE)-termcap.adb $(BASEDEPS)
233         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-termcap.adb
234
235
236 $(ABASE)-putwin.o: \
237                 $(srcdir)/$(ABASE)-putwin.ads \
238                 $(srcdir)/$(ABASE)-putwin.adb $(BASEDEPS)
239         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-putwin.adb
240
241
242 $(ABASE)-trace.adb : $(srcdir)/$(ABASE)-trace.adb_p
243         rm -f $@
244         $(ADAPREP) -DADA_TRACE=@ADA_TRACE@ -DPRAGMA_UNREF=@PRAGMA_UNREF@ $(srcdir)/$(ABASE)-trace.adb_p $@
245
246 $(ABASE)-trace.o: \
247                 $(ABASE)-trace.ads \
248                 $(ABASE)-trace.adb $(BASEDEPS)
249         $(ADA) $(ADAFLAGS) -c -o $@ $(ABASE)-trace.adb
250
251
252 $(ABASE)-mouse.o: \
253                 $(ABASE)-mouse.ads \
254                 $(srcdir)/$(ABASE)-mouse.adb $(BASEDEPS)
255         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-mouse.adb
256
257
258 $(ABASE)-panels.o: \
259                 $(ABASE)-panels.ads \
260                 $(srcdir)/$(ABASE)-panels.adb $(BASEDEPS)
261         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-panels.adb
262
263
264 $(ABASE)-menus.o: \
265                 $(ABASE)-menus.ads \
266                 $(srcdir)/$(ABASE)-menus.adb $(BASEDEPS)
267         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-menus.adb
268
269
270 $(ABASE)-forms.o: \
271                 $(ABASE)-forms.ads \
272                 $(srcdir)/$(ABASE)-forms.adb $(BASEDEPS)
273         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-forms.adb
274
275 $(ABASE)-forms-field_types.o: \
276                 $(ABASE)-forms-field_types.ads \
277                 $(srcdir)/$(ABASE)-forms-field_types.adb $(BASEDEPS)
278         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-forms-field_types.adb
279
280 $(ABASE)-forms-field_types-alpha.o: \
281                 $(srcdir)/$(ABASE)-forms-field_types-alpha.ads \
282                 $(srcdir)/$(ABASE)-forms-field_types-alpha.adb $(BASEDEPS)
283         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-forms-field_types-alpha.adb
284
285 $(ABASE)-forms-field_types-alphanumeric.o: \
286                 $(srcdir)/$(ABASE)-forms-field_types-alphanumeric.ads \
287                 $(srcdir)/$(ABASE)-forms-field_types-alphanumeric.adb $(BASEDEPS)
288         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-forms-field_types-alphanumeric.adb
289
290 $(ABASE)-forms-field_types-intfield.o: \
291                 $(srcdir)/$(ABASE)-forms-field_types-intfield.ads \
292                 $(srcdir)/$(ABASE)-forms-field_types-intfield.adb $(BASEDEPS)
293         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-forms-field_types-intfield.adb
294
295 $(ABASE)-forms-field_types-numeric.o: \
296                 $(srcdir)/$(ABASE)-forms-field_types-numeric.ads \
297                 $(srcdir)/$(ABASE)-forms-field_types-numeric.adb $(BASEDEPS)
298         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-forms-field_types-numeric.adb
299
300 $(ABASE)-forms-field_types-regexp.o: \
301                 $(srcdir)/$(ABASE)-forms-field_types-regexp.ads \
302                 $(srcdir)/$(ABASE)-forms-field_types-regexp.adb $(BASEDEPS)
303         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-forms-field_types-regexp.adb
304
305 $(ABASE)-forms-field_types-enumeration.o: \
306                 $(srcdir)/$(ABASE)-forms-field_types-enumeration.ads \
307                 $(srcdir)/$(ABASE)-forms-field_types-enumeration.adb $(BASEDEPS)
308         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-forms-field_types-enumeration.adb
309
310 $(ABASE)-forms-field_types-ipv4_address.o: \
311                 $(srcdir)/$(ABASE)-forms-field_types-ipv4_address.ads \
312                 $(srcdir)/$(ABASE)-forms-field_types-ipv4_address.adb $(BASEDEPS)
313         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-forms-field_types-ipv4_address.adb
314
315 $(ABASE)-forms-field_types-user.o: \
316                 $(srcdir)/$(ABASE)-forms-field_types-user.ads \
317                 $(srcdir)/$(ABASE)-forms-field_types-user.adb $(BASEDEPS)
318         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-forms-field_types-user.adb
319
320 $(ABASE)-forms-field_types-user-choice.o: \
321                 $(srcdir)/$(ABASE)-forms-field_types-user-choice.ads \
322                 $(srcdir)/$(ABASE)-forms-field_types-user-choice.adb $(BASEDEPS)
323         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-forms-field_types-user-choice.adb
324
325 $(ABASE)-text_io.o: \
326                 $(srcdir)/$(ABASE)-text_io.ads \
327                 $(srcdir)/$(ABASE)-text_io.adb $(BASEDEPS)
328         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-text_io.adb
329
330 $(ABASE)-text_io-aux.o: \
331                 $(srcdir)/$(ABASE)-text_io-aux.ads \
332                 $(srcdir)/$(ABASE)-text_io-aux.adb $(BASEDEPS)
333         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-text_io-aux.adb
334
335 $(ABASE)-menus-menu_user_data.o: \
336                 $(ABASE)-menus-menu_user_data.ads \
337                 $(srcdir)/$(ABASE)-menus-menu_user_data.adb $(BASEDEPS)
338         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-menus-menu_user_data.adb
339
340 $(ABASE)-menus-item_user_data.o: \
341                 $(ABASE)-menus-item_user_data.ads \
342                 $(srcdir)/$(ABASE)-menus-item_user_data.adb $(BASEDEPS)
343         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-menus-item_user_data.adb
344
345 $(ABASE)-forms-form_user_data.o: \
346                 $(ABASE)-forms-form_user_data.ads \
347                 $(srcdir)/$(ABASE)-forms-form_user_data.adb $(BASEDEPS)
348         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-forms-form_user_data.adb
349
350 $(ABASE)-forms-field_user_data.o: \
351                 $(ABASE)-forms-field_user_data.ads \
352                 $(srcdir)/$(ABASE)-forms-field_user_data.adb $(BASEDEPS)
353         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-forms-field_user_data.adb
354
355 $(ABASE)-forms-field_types-enumeration-ada.o: \
356                 $(srcdir)/$(ABASE)-forms-field_types-enumeration-ada.ads \
357                 $(srcdir)/$(ABASE)-forms-field_types-enumeration-ada.adb $(BASEDEPS)
358         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-forms-field_types-enumeration-ada.adb
359
360 $(ABASE)-panels-user_data.o: \
361                 $(ABASE)-panels-user_data.ads \
362                 $(srcdir)/$(ABASE)-panels-user_data.adb $(BASEDEPS)
363         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-panels-user_data.adb
364
365 $(ABASE)-text_io-integer_io.o: \
366                 $(srcdir)/$(ABASE)-text_io-integer_io.ads \
367                 $(srcdir)/$(ABASE)-text_io-integer_io.adb $(BASEDEPS)
368         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-text_io-integer_io.adb
369
370 $(ABASE)-text_io-float_io.o: \
371                 $(srcdir)/$(ABASE)-text_io-float_io.ads \
372                 $(srcdir)/$(ABASE)-text_io-float_io.adb $(BASEDEPS)
373         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-text_io-float_io.adb
374
375 $(ABASE)-text_io-fixed_io.o: \
376                 $(srcdir)/$(ABASE)-text_io-fixed_io.ads \
377                 $(srcdir)/$(ABASE)-text_io-fixed_io.adb $(BASEDEPS)
378         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-text_io-fixed_io.adb
379
380 $(ABASE)-text_io-decimal_io.o: \
381                 $(srcdir)/$(ABASE)-text_io-decimal_io.ads \
382                 $(srcdir)/$(ABASE)-text_io-decimal_io.adb $(BASEDEPS)
383         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-text_io-decimal_io.adb
384
385 $(ABASE)-text_io-enumeration_io.o: \
386                 $(srcdir)/$(ABASE)-text_io-enumeration_io.ads \
387                 $(srcdir)/$(ABASE)-text_io-enumeration_io.adb $(BASEDEPS)
388         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-text_io-enumeration_io.adb
389
390 $(ABASE)-text_io-modular_io.o: \
391                 $(srcdir)/$(ABASE)-text_io-modular_io.ads \
392                 $(srcdir)/$(ABASE)-text_io-modular_io.adb $(BASEDEPS)
393         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-text_io-modular_io.adb
394
395 $(ABASE)-text_io-complex_io.o: \
396                 $(srcdir)/$(ABASE)-text_io-complex_io.ads \
397                 $(srcdir)/$(ABASE)-text_io-complex_io.adb $(BASEDEPS)
398         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-text_io-complex_io.adb