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