ncurses 5.0
[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.19 $
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 install ::
175 install.libs ::
176 uninstall ::
177 uninstall.libs ::
178
179 generics: $(GENALIS)
180         @
181
182 mostlyclean ::
183         rm -f *.o *.ali b_t*.* *.s $(PROGS) a.out core b_*_test.c *.xr[bs] *.a
184
185 clean :: mostlyclean
186         rm -f $(LIBALIS) $(GENALIS) $(LIBOBJS) $(GENOBJS)
187
188 distclean :: clean
189         rm -f Makefile
190
191 realclean :: distclean
192
193 BASEDEPS=$(ABASE).ads $(srcdir)/$(ABASE)-aux.ads $(srcdir)/$(ABASE).adb
194
195 $(ALIB).o: $(srcdir)/$(ALIB).ads
196         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ALIB).ads
197
198
199 $(ABASE)-aux.o: $(srcdir)/$(ABASE)-aux.adb $(BASEDEPS)
200         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-aux.adb
201
202
203 $(ABASE).o: $(srcdir)/$(ABASE).adb $(BASEDEPS)
204         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE).adb
205
206
207 $(ABASE)-mouse.o: \
208                 $(ABASE)-mouse.ads \
209                 $(srcdir)/$(ABASE)-mouse.adb $(BASEDEPS)
210         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-mouse.adb
211
212
213 $(ABASE)-panels.o: \
214                 $(ABASE)-panels.ads \
215                 $(srcdir)/$(ABASE)-panels.adb $(BASEDEPS)
216         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-panels.adb
217
218
219 $(ABASE)-menus.o: \
220                 $(ABASE)-menus.ads \
221                 $(srcdir)/$(ABASE)-menus.adb $(BASEDEPS)
222         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-menus.adb
223
224
225 $(ABASE)-forms.o: \
226                 $(ABASE)-forms.ads \
227                 $(srcdir)/$(ABASE)-forms.adb $(BASEDEPS)
228         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-forms.adb
229
230 $(ABASE)-forms-field_types.o: \
231                 $(ABASE)-forms-field_types.ads \
232                 $(srcdir)/$(ABASE)-forms-field_types.adb $(BASEDEPS)
233         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-forms-field_types.adb
234
235 $(ABASE)-forms-field_types-alpha.o: \
236                 $(srcdir)/$(ABASE)-forms-field_types-alpha.ads \
237                 $(srcdir)/$(ABASE)-forms-field_types-alpha.adb $(BASEDEPS)
238         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-forms-field_types-alpha.adb
239
240 $(ABASE)-forms-field_types-alphanumeric.o: \
241                 $(srcdir)/$(ABASE)-forms-field_types-alphanumeric.ads \
242                 $(srcdir)/$(ABASE)-forms-field_types-alphanumeric.adb $(BASEDEPS)
243         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-forms-field_types-alphanumeric.adb
244
245 $(ABASE)-forms-field_types-intfield.o: \
246                 $(srcdir)/$(ABASE)-forms-field_types-intfield.ads \
247                 $(srcdir)/$(ABASE)-forms-field_types-intfield.adb $(BASEDEPS)
248         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-forms-field_types-intfield.adb
249
250 $(ABASE)-forms-field_types-numeric.o: \
251                 $(srcdir)/$(ABASE)-forms-field_types-numeric.ads \
252                 $(srcdir)/$(ABASE)-forms-field_types-numeric.adb $(BASEDEPS)
253         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-forms-field_types-numeric.adb
254
255 $(ABASE)-forms-field_types-regexp.o: \
256                 $(srcdir)/$(ABASE)-forms-field_types-regexp.ads \
257                 $(srcdir)/$(ABASE)-forms-field_types-regexp.adb $(BASEDEPS)
258         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-forms-field_types-regexp.adb
259
260 $(ABASE)-forms-field_types-enumeration.o: \
261                 $(srcdir)/$(ABASE)-forms-field_types-enumeration.ads \
262                 $(srcdir)/$(ABASE)-forms-field_types-enumeration.adb $(BASEDEPS)
263         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-forms-field_types-enumeration.adb
264
265 $(ABASE)-forms-field_types-ipv4_address.o: \
266                 $(srcdir)/$(ABASE)-forms-field_types-ipv4_address.ads \
267                 $(srcdir)/$(ABASE)-forms-field_types-ipv4_address.adb $(BASEDEPS)
268         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-forms-field_types-ipv4_address.adb
269
270 $(ABASE)-forms-field_types-user.o: \
271                 $(srcdir)/$(ABASE)-forms-field_types-user.ads \
272                 $(srcdir)/$(ABASE)-forms-field_types-user.adb $(BASEDEPS)
273         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-forms-field_types-user.adb
274
275 $(ABASE)-forms-field_types-user-choice.o: \
276                 $(srcdir)/$(ABASE)-forms-field_types-user-choice.ads \
277                 $(srcdir)/$(ABASE)-forms-field_types-user-choice.adb $(BASEDEPS)
278         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-forms-field_types-user-choice.adb
279
280 $(ABASE)-text_io.o: \
281                 $(srcdir)/$(ABASE)-text_io.ads \
282                 $(srcdir)/$(ABASE)-text_io.adb $(BASEDEPS)
283         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-text_io.adb
284
285 $(ABASE)-text_io-aux.o: \
286                 $(srcdir)/$(ABASE)-text_io-aux.ads \
287                 $(srcdir)/$(ABASE)-text_io-aux.adb $(BASEDEPS)
288         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-text_io-aux.adb
289
290 $(ABASE)-menus-menu_user_data.o: \
291                 $(ABASE)-menus-menu_user_data.ads \
292                 $(srcdir)/$(ABASE)-menus-menu_user_data.adb $(BASEDEPS)
293         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-menus-menu_user_data.adb
294
295 $(ABASE)-menus-item_user_data.o: \
296                 $(ABASE)-menus-item_user_data.ads \
297                 $(srcdir)/$(ABASE)-menus-item_user_data.adb $(BASEDEPS)
298         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-menus-item_user_data.adb
299
300 $(ABASE)-forms-form_user_data.o: \
301                 $(ABASE)-forms-form_user_data.ads \
302                 $(srcdir)/$(ABASE)-forms-form_user_data.adb $(BASEDEPS)
303         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-forms-form_user_data.adb
304
305 $(ABASE)-forms-field_user_data.o: \
306                 $(ABASE)-forms-field_user_data.ads \
307                 $(srcdir)/$(ABASE)-forms-field_user_data.adb $(BASEDEPS)
308         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-forms-field_user_data.adb
309
310 $(ABASE)-forms-field_types-enumeration-ada.o: \
311                 $(srcdir)/$(ABASE)-forms-field_types-enumeration-ada.ads \
312                 $(srcdir)/$(ABASE)-forms-field_types-enumeration-ada.adb $(BASEDEPS)
313         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-forms-field_types-enumeration-ada.adb
314
315 $(ABASE)-panels-user_data.o: \
316                 $(ABASE)-panels-user_data.ads \
317                 $(srcdir)/$(ABASE)-panels-user_data.adb $(BASEDEPS)
318         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-panels-user_data.adb
319
320 $(ABASE)-text_io-integer_io.o: \
321                 $(srcdir)/$(ABASE)-text_io-integer_io.ads \
322                 $(srcdir)/$(ABASE)-text_io-integer_io.adb $(BASEDEPS)
323         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-text_io-integer_io.adb
324
325 $(ABASE)-text_io-float_io.o: \
326                 $(srcdir)/$(ABASE)-text_io-float_io.ads \
327                 $(srcdir)/$(ABASE)-text_io-float_io.adb $(BASEDEPS)
328         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-text_io-float_io.adb
329
330 $(ABASE)-text_io-fixed_io.o: \
331                 $(srcdir)/$(ABASE)-text_io-fixed_io.ads \
332                 $(srcdir)/$(ABASE)-text_io-fixed_io.adb $(BASEDEPS)
333         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-text_io-fixed_io.adb
334
335 $(ABASE)-text_io-decimal_io.o: \
336                 $(srcdir)/$(ABASE)-text_io-decimal_io.ads \
337                 $(srcdir)/$(ABASE)-text_io-decimal_io.adb $(BASEDEPS)
338         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-text_io-decimal_io.adb
339
340 $(ABASE)-text_io-enumeration_io.o: \
341                 $(srcdir)/$(ABASE)-text_io-enumeration_io.ads \
342                 $(srcdir)/$(ABASE)-text_io-enumeration_io.adb $(BASEDEPS)
343         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-text_io-enumeration_io.adb
344
345 $(ABASE)-text_io-modular_io.o: \
346                 $(srcdir)/$(ABASE)-text_io-modular_io.ads \
347                 $(srcdir)/$(ABASE)-text_io-modular_io.adb $(BASEDEPS)
348         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-text_io-modular_io.adb
349
350 $(ABASE)-text_io-complex_io.o: \
351                 $(srcdir)/$(ABASE)-text_io-complex_io.ads \
352                 $(srcdir)/$(ABASE)-text_io-complex_io.adb $(BASEDEPS)
353         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-text_io-complex_io.adb