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