163697c50f5d923e497d649915e19aa510b0bd47
[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.43 2010/06/19 20:25:18 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 libdir          = ${exec_prefix}/lib
47
48 ADA_INCLUDE     = $(DESTDIR)@ADA_INCLUDE@
49 ADA_OBJECTS     = $(DESTDIR)@ADA_OBJECTS@
50
51 INSTALL         = @INSTALL@
52 INSTALL_LIB     = @INSTALL@ @INSTALL_LIB@
53
54 AR              = @AR@
55 ARFLAGS         = @ARFLAGS@
56 AWK             = @AWK@
57 LN_S            = @LN_S@
58
59 CC              = @CC@
60 CFLAGS          = @CFLAGS@
61
62 CPPFLAGS        = @ACPPFLAGS@ \
63                   -DHAVE_CONFIG_H -I$(srcdir)
64
65 CCFLAGS         = $(CPPFLAGS) $(CFLAGS)
66
67 CFLAGS_NORMAL   = $(CCFLAGS)
68 CFLAGS_DEBUG    = $(CCFLAGS) @CC_G_OPT@ -DTRACE
69 CFLAGS_PROFILE  = $(CCFLAGS) -pg
70 CFLAGS_SHARED   = $(CCFLAGS) @CC_SHARED_OPTS@
71
72 CFLAGS_DEFAULT  = $(CFLAGS_@DFT_UPR_MODEL@)
73
74 LINK            = $(CC)
75 LDFLAGS         = @LDFLAGS@ @LD_MODEL@ @LIBS@
76
77 RANLIB          = @RANLIB@
78
79 ################################################################################
80 ADA             = @cf_ada_compiler@
81 ADAPREP         = gnatprep
82 ADAFLAGS        = @ADAFLAGS@ -I. -I$(srcdir)
83
84 LIB_NAME        = AdaCurses
85 SONAME          = @ADA_SHAREDLIB@
86
87 GNAT_PROJECT    = library.gpr
88
89 # build/source are the Ada95 tree
90 BUILD_DIR       = @srcdir@/..
91 SOURCE_DIR      = @srcdir@/..
92
93 BUILD_DIR_LIB   = $(BUILD_DIR)/lib
94 SOURCE_DIR_SRC  = $(SOURCE_DIR)/src
95
96 ADAMAKE         = @cf_ada_make@
97 ADAMAKEFLAGS    = \
98         -p \
99         -P$(GNAT_PROJECT) \
100         -XBUILD_DIR=$(BUILD_DIR) \
101         -XSOURCE_DIR=$(SOURCE_DIR) \
102         -XLIB_NAME=$(LIB_NAME) \
103         -XSONAME=$(SONAME)
104
105 CARGS           = -cargs $(ADAFLAGS)
106 LARGS           =
107
108 MY_STATIC_LIB   = $(BUILD_DIR_LIB)/lib$(LIB_NAME).a
109 MY_SHARED_LIB   = $(BUILD_DIR_LIB)/$(SONAME)
110
111 ALIB            = @cf_ada_package@
112 ABASE           = $(ALIB)-curses
113 ################################################################################
114 GENERATED_SOURCES=$(ABASE).ads                          \
115                   $(ABASE).adb                          \
116                   $(ABASE)-aux.ads                      \
117                   $(ABASE)-trace.ads                    \
118                   $(ABASE)-menus.ads                    \
119                   $(ABASE)-forms.ads                    \
120                   $(ABASE)-mouse.ads                    \
121                   $(ABASE)-panels.ads                   \
122                   $(ABASE)-menus-menu_user_data.ads     \
123                   $(ABASE)-menus-item_user_data.ads     \
124                   $(ABASE)-forms-form_user_data.ads     \
125                   $(ABASE)-forms-field_types.ads        \
126                   $(ABASE)-forms-field_user_data.ads    \
127                   $(ABASE)-panels-user_data.ads
128 ################################################################################
129 LIBALIS=$(ALIB).ali                                     \
130         $(ABASE)-aux.ali                                \
131         $(ABASE).ali                                    \
132         $(ABASE)-terminfo.ali                           \
133         $(ABASE)-termcap.ali                            \
134         $(ABASE)-putwin.ali                             \
135         $(ABASE)-trace.ali                              \
136         $(ABASE)-mouse.ali                              \
137         $(ABASE)-panels.ali                             \
138         $(ABASE)-menus.ali                              \
139         $(ABASE)-forms.ali                              \
140         $(ABASE)-forms-field_types.ali                  \
141         $(ABASE)-forms-field_types-alpha.ali            \
142         $(ABASE)-forms-field_types-alphanumeric.ali     \
143         $(ABASE)-forms-field_types-intfield.ali         \
144         $(ABASE)-forms-field_types-numeric.ali          \
145         $(ABASE)-forms-field_types-regexp.ali           \
146         $(ABASE)-forms-field_types-enumeration.ali      \
147         $(ABASE)-forms-field_types-ipv4_address.ali     \
148         $(ABASE)-forms-field_types-user.ali             \
149         $(ABASE)-forms-field_types-user-choice.ali      \
150         $(ABASE)-text_io.ali                            \
151         $(ABASE)-text_io-aux.ali
152
153 # Ada Library files for generic packages. Since gnat 3.10 they are
154 # also compiled
155 GENALIS=$(ABASE)-menus-menu_user_data.ali               \
156         $(ABASE)-menus-item_user_data.ali               \
157         $(ABASE)-forms-form_user_data.ali               \
158         $(ABASE)-forms-field_user_data.ali              \
159         $(ABASE)-forms-field_types-enumeration-ada.ali  \
160         $(ABASE)-panels-user_data.ali                   \
161         $(ABASE)-text_io-integer_io.ali                 \
162         $(ABASE)-text_io-float_io.ali                   \
163         $(ABASE)-text_io-fixed_io.ali                   \
164         $(ABASE)-text_io-decimal_io.ali                 \
165         $(ABASE)-text_io-enumeration_io.ali             \
166         $(ABASE)-text_io-modular_io.ali                 \
167         $(ABASE)-text_io-complex_io.ali
168
169 LIBOBJS=$(ALIB).o                                       \
170         $(ABASE)-aux.o                                  \
171         $(ABASE).o                                      \
172         $(ABASE)-terminfo.o                             \
173         $(ABASE)-termcap.o                              \
174         $(ABASE)-putwin.o                               \
175         $(ABASE)-trace.o                                \
176         $(ABASE)-mouse.o                                \
177         $(ABASE)-panels.o                               \
178         $(ABASE)-menus.o                                \
179         $(ABASE)-forms.o                                \
180         $(ABASE)-forms-field_types.o                    \
181         $(ABASE)-forms-field_types-alpha.o              \
182         $(ABASE)-forms-field_types-alphanumeric.o       \
183         $(ABASE)-forms-field_types-intfield.o           \
184         $(ABASE)-forms-field_types-numeric.o            \
185         $(ABASE)-forms-field_types-regexp.o             \
186         $(ABASE)-forms-field_types-enumeration.o        \
187         $(ABASE)-forms-field_types-ipv4_address.o       \
188         $(ABASE)-forms-field_types-user.o               \
189         $(ABASE)-forms-field_types-user-choice.o        \
190         $(ABASE)-text_io.o                              \
191         $(ABASE)-text_io-aux.o
192
193 # Ada object files for generic packages. Since gnat 3.10 they are
194 # also compiled
195 GENOBJS=$(ABASE)-menus-menu_user_data.o                 \
196         $(ABASE)-menus-item_user_data.o                 \
197         $(ABASE)-forms-form_user_data.o                 \
198         $(ABASE)-forms-field_user_data.o                \
199         $(ABASE)-forms-field_types-enumeration-ada.o    \
200         $(ABASE)-panels-user_data.o                     \
201         $(ABASE)-text_io-integer_io.o                   \
202         $(ABASE)-text_io-float_io.o                     \
203         $(ABASE)-text_io-fixed_io.o                     \
204         $(ABASE)-text_io-decimal_io.o                   \
205         $(ABASE)-text_io-enumeration_io.o               \
206         $(ABASE)-text_io-modular_io.o                   \
207         $(ABASE)-text_io-complex_io.o
208
209 all ::  $(MY_STATIC_LIB)
210         @echo done
211
212 $(BUILD_DIR_LIB) :
213         mkdir -p $@
214
215 $(MY_STATIC_LIB) :: $(BUILD_DIR_LIB) $(LIBOBJS) @cf_generic_objects@
216         $(AR) $(ARFLAGS) $@ $(LIBOBJS) @cf_generic_objects@
217
218 sources :
219         @echo made $@
220
221 libs \
222 install \
223 install.libs :: $(MY_STATIC_LIB)
224         @echo made $(MY_STATIC_LIB)
225
226 install \
227 install.libs :: $(MY_STATIC_LIB)
228         @$(INSTALL_LIB) $(MY_STATIC_LIB) $(ADA_OBJECTS)
229         @echo made $@
230
231 uninstall \
232 uninstall.libs ::
233         @echo made $@
234
235 generics: $(GENALIS)
236         @echo made $@
237
238 mostlyclean ::
239         rm -f *.o *.ali b_t*.* *.s $(PROGS) a.out core b_*_test.c *.xr[bs] *.a
240
241 clean :: mostlyclean
242         rm -f $(LIBALIS) $(GENALIS) $(LIBOBJS) $(GENOBJS) $(ABASE)-trace.adb
243
244 distclean :: clean
245         rm -f Makefile
246
247 realclean :: distclean
248
249 BASEDEPS=$(ABASE).ads $(ABASE)-aux.ads $(ABASE).adb
250
251 $(ALIB).o: $(srcdir)/$(ALIB).ads
252         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ALIB).ads
253
254
255 $(ABASE)-aux.o: $(srcdir)/$(ABASE)-aux.adb $(BASEDEPS)
256         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-aux.adb
257
258
259 $(ABASE).o: $(ABASE).adb $(BASEDEPS)
260         $(ADA) $(ADAFLAGS) -c -o $@ $(ABASE).adb
261
262
263 $(ABASE)-terminfo.o: \
264                 $(srcdir)/$(ABASE)-terminfo.ads \
265                 $(srcdir)/$(ABASE)-terminfo.adb $(BASEDEPS)
266         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-terminfo.adb
267
268
269 $(ABASE)-termcap.o: \
270                 $(srcdir)/$(ABASE)-termcap.ads \
271                 $(srcdir)/$(ABASE)-termcap.adb $(BASEDEPS)
272         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-termcap.adb
273
274
275 $(ABASE)-putwin.o: \
276                 $(srcdir)/$(ABASE)-putwin.ads \
277                 $(srcdir)/$(ABASE)-putwin.adb $(BASEDEPS)
278         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-putwin.adb
279
280
281 $(ABASE)-trace.adb : $(srcdir)/$(ABASE)-trace.adb_p
282         rm -f $@
283         $(ADAPREP) -DADA_TRACE=@ADA_TRACE@ -DPRAGMA_UNREF=@PRAGMA_UNREF@ $(srcdir)/$(ABASE)-trace.adb_p $@
284
285 $(ABASE)-trace.o: \
286                 $(ABASE)-trace.ads \
287                 $(ABASE)-trace.adb $(BASEDEPS)
288         $(ADA) $(ADAFLAGS) -c -o $@ $(ABASE)-trace.adb
289
290
291 $(ABASE)-mouse.o: \
292                 $(ABASE)-mouse.ads \
293                 $(srcdir)/$(ABASE)-mouse.adb $(BASEDEPS)
294         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-mouse.adb
295
296
297 $(ABASE)-panels.o: \
298                 $(ABASE)-panels.ads \
299                 $(srcdir)/$(ABASE)-panels.adb $(BASEDEPS)
300         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-panels.adb
301
302
303 $(ABASE)-menus.o: \
304                 $(ABASE)-menus.ads \
305                 $(srcdir)/$(ABASE)-menus.adb $(BASEDEPS)
306         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-menus.adb
307
308
309 $(ABASE)-forms.o: \
310                 $(ABASE)-forms.ads \
311                 $(srcdir)/$(ABASE)-forms.adb $(BASEDEPS)
312         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-forms.adb
313
314 $(ABASE)-forms-field_types.o: \
315                 $(ABASE)-forms-field_types.ads \
316                 $(srcdir)/$(ABASE)-forms-field_types.adb $(BASEDEPS)
317         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-forms-field_types.adb
318
319 $(ABASE)-forms-field_types-alpha.o: \
320                 $(srcdir)/$(ABASE)-forms-field_types-alpha.ads \
321                 $(srcdir)/$(ABASE)-forms-field_types-alpha.adb $(BASEDEPS)
322         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-forms-field_types-alpha.adb
323
324 $(ABASE)-forms-field_types-alphanumeric.o: \
325                 $(srcdir)/$(ABASE)-forms-field_types-alphanumeric.ads \
326                 $(srcdir)/$(ABASE)-forms-field_types-alphanumeric.adb $(BASEDEPS)
327         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-forms-field_types-alphanumeric.adb
328
329 $(ABASE)-forms-field_types-intfield.o: \
330                 $(srcdir)/$(ABASE)-forms-field_types-intfield.ads \
331                 $(srcdir)/$(ABASE)-forms-field_types-intfield.adb $(BASEDEPS)
332         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-forms-field_types-intfield.adb
333
334 $(ABASE)-forms-field_types-numeric.o: \
335                 $(srcdir)/$(ABASE)-forms-field_types-numeric.ads \
336                 $(srcdir)/$(ABASE)-forms-field_types-numeric.adb $(BASEDEPS)
337         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-forms-field_types-numeric.adb
338
339 $(ABASE)-forms-field_types-regexp.o: \
340                 $(srcdir)/$(ABASE)-forms-field_types-regexp.ads \
341                 $(srcdir)/$(ABASE)-forms-field_types-regexp.adb $(BASEDEPS)
342         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-forms-field_types-regexp.adb
343
344 $(ABASE)-forms-field_types-enumeration.o: \
345                 $(srcdir)/$(ABASE)-forms-field_types-enumeration.ads \
346                 $(srcdir)/$(ABASE)-forms-field_types-enumeration.adb $(BASEDEPS)
347         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-forms-field_types-enumeration.adb
348
349 $(ABASE)-forms-field_types-ipv4_address.o: \
350                 $(srcdir)/$(ABASE)-forms-field_types-ipv4_address.ads \
351                 $(srcdir)/$(ABASE)-forms-field_types-ipv4_address.adb $(BASEDEPS)
352         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-forms-field_types-ipv4_address.adb
353
354 $(ABASE)-forms-field_types-user.o: \
355                 $(srcdir)/$(ABASE)-forms-field_types-user.ads \
356                 $(srcdir)/$(ABASE)-forms-field_types-user.adb $(BASEDEPS)
357         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-forms-field_types-user.adb
358
359 $(ABASE)-forms-field_types-user-choice.o: \
360                 $(srcdir)/$(ABASE)-forms-field_types-user-choice.ads \
361                 $(srcdir)/$(ABASE)-forms-field_types-user-choice.adb $(BASEDEPS)
362         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-forms-field_types-user-choice.adb
363
364 $(ABASE)-text_io.o: \
365                 $(srcdir)/$(ABASE)-text_io.ads \
366                 $(srcdir)/$(ABASE)-text_io.adb $(BASEDEPS)
367         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-text_io.adb
368
369 $(ABASE)-text_io-aux.o: \
370                 $(srcdir)/$(ABASE)-text_io-aux.ads \
371                 $(srcdir)/$(ABASE)-text_io-aux.adb $(BASEDEPS)
372         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-text_io-aux.adb
373
374 $(ABASE)-menus-menu_user_data.o: \
375                 $(ABASE)-menus-menu_user_data.ads \
376                 $(srcdir)/$(ABASE)-menus-menu_user_data.adb $(BASEDEPS)
377         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-menus-menu_user_data.adb
378
379 $(ABASE)-menus-item_user_data.o: \
380                 $(ABASE)-menus-item_user_data.ads \
381                 $(srcdir)/$(ABASE)-menus-item_user_data.adb $(BASEDEPS)
382         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-menus-item_user_data.adb
383
384 $(ABASE)-forms-form_user_data.o: \
385                 $(ABASE)-forms-form_user_data.ads \
386                 $(srcdir)/$(ABASE)-forms-form_user_data.adb $(BASEDEPS)
387         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-forms-form_user_data.adb
388
389 $(ABASE)-forms-field_user_data.o: \
390                 $(ABASE)-forms-field_user_data.ads \
391                 $(srcdir)/$(ABASE)-forms-field_user_data.adb $(BASEDEPS)
392         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-forms-field_user_data.adb
393
394 $(ABASE)-forms-field_types-enumeration-ada.o: \
395                 $(srcdir)/$(ABASE)-forms-field_types-enumeration-ada.ads \
396                 $(srcdir)/$(ABASE)-forms-field_types-enumeration-ada.adb $(BASEDEPS)
397         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-forms-field_types-enumeration-ada.adb
398
399 $(ABASE)-panels-user_data.o: \
400                 $(ABASE)-panels-user_data.ads \
401                 $(srcdir)/$(ABASE)-panels-user_data.adb $(BASEDEPS)
402         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-panels-user_data.adb
403
404 $(ABASE)-text_io-integer_io.o: \
405                 $(srcdir)/$(ABASE)-text_io-integer_io.ads \
406                 $(srcdir)/$(ABASE)-text_io-integer_io.adb $(BASEDEPS)
407         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-text_io-integer_io.adb
408
409 $(ABASE)-text_io-float_io.o: \
410                 $(srcdir)/$(ABASE)-text_io-float_io.ads \
411                 $(srcdir)/$(ABASE)-text_io-float_io.adb $(BASEDEPS)
412         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-text_io-float_io.adb
413
414 $(ABASE)-text_io-fixed_io.o: \
415                 $(srcdir)/$(ABASE)-text_io-fixed_io.ads \
416                 $(srcdir)/$(ABASE)-text_io-fixed_io.adb $(BASEDEPS)
417         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-text_io-fixed_io.adb
418
419 $(ABASE)-text_io-decimal_io.o: \
420                 $(srcdir)/$(ABASE)-text_io-decimal_io.ads \
421                 $(srcdir)/$(ABASE)-text_io-decimal_io.adb $(BASEDEPS)
422         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-text_io-decimal_io.adb
423
424 $(ABASE)-text_io-enumeration_io.o: \
425                 $(srcdir)/$(ABASE)-text_io-enumeration_io.ads \
426                 $(srcdir)/$(ABASE)-text_io-enumeration_io.adb $(BASEDEPS)
427         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-text_io-enumeration_io.adb
428
429 $(ABASE)-text_io-modular_io.o: \
430                 $(srcdir)/$(ABASE)-text_io-modular_io.ads \
431                 $(srcdir)/$(ABASE)-text_io-modular_io.adb $(BASEDEPS)
432         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-text_io-modular_io.adb
433
434 $(ABASE)-text_io-complex_io.o: \
435                 $(srcdir)/$(ABASE)-text_io-complex_io.ads \
436                 $(srcdir)/$(ABASE)-text_io-complex_io.adb $(BASEDEPS)
437         $(ADA) $(ADAFLAGS) -c -o $@ $(srcdir)/$(ABASE)-text_io-complex_io.adb
438
439 # in-progress rewrite to use gnatmake library project files
440
441 test_make: $(ABASE)-trace.adb
442         $(ADAMAKE) $(ADAMAKEFLAGS) -XLIB_KIND=static
443 @MAKE_ADA_SHAREDLIB@    $(ADAMAKE) $(ADAMAKEFLAGS) -XLIB_KIND=dynamic
444
445 test_install:
446         install --directory $(ADA_INCLUDE)
447         $(INSTALL_LIB) \
448                 $(SOURCE_DIR_SRC)/*.ad[sb] \
449                 $(GENERATED_SOURCES) \
450                 $(ADA_INCLUDE)
451         install --directory $(ADA_OBJECTS)
452 @MAKE_ADA_SHAREDLIB@    $(INSTALL_LIB) \
453 @MAKE_ADA_SHAREDLIB@            $(BUILD_DIR)/dynamic-ali/* \
454 @MAKE_ADA_SHAREDLIB@            $(ADA_OBJECTS)
455         $(INSTALL_LIB) \
456                 $(MY_STATIC_LIB) \
457                 $(DESTDIR)/usr/lib
458 @MAKE_ADA_SHAREDLIB@    $(INSTALL_LIB) \
459 @MAKE_ADA_SHAREDLIB@            $(BUILD_DIR_LIB)/$(SONAME) \
460 @MAKE_ADA_SHAREDLIB@            $(DESTDIR)/usr/lib
461 @MAKE_ADA_SHAREDLIB@    cd $(DESTDIR)/usr/lib && ln -s $(SONAME) lib$(LIB_NAME).so
462
463 test_uninstall:
464         rm -rf \
465                 $(ADA_INCLUDE) \
466                 $(ADA_OBJECTS) \
467         rm -f \
468                 $(DESTDIR)/usr/lib/lib$(LIB_NAME).a
469 @MAKE_ADA_SHAREDLIB@    rm -f \
470 @MAKE_ADA_SHAREDLIB@            $(DESTDIR)/usr/lib/$(SONAME) \
471 @MAKE_ADA_SHAREDLIB@            $(DESTDIR)/usr/lib/lib$(LIB_NAME).so
472
473 test_clean:
474         rm -rf $(BUILD_DIR)/*-ali
475         rm -rf $(BUILD_DIR)/*-obj
476         rm -rf $(BUILD_DIR_LIB)