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