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