]> ncurses.scripts.mit.edu Git - ncurses.git/blob - Ada95/samples/Makefile.in
ncurses 6.2 - patch 20200808
[ncurses.git] / Ada95 / samples / Makefile.in
1 ##############################################################################
2 # Copyright 2018-2019,2020 Thomas E. Dickey                                  #
3 # Copyright 1998-2015,2018 Free Software Foundation, Inc.                    #
4 #                                                                            #
5 # Permission is hereby granted, free of charge, to any person obtaining a    #
6 # copy of this software and associated documentation files (the "Software"), #
7 # to deal in the Software without restriction, including without limitation  #
8 # the rights to use, copy, modify, merge, publish, distribute, distribute    #
9 # with modifications, sublicense, and/or sell copies of the Software, and to #
10 # permit persons to whom the Software is furnished to do so, subject to the  #
11 # following conditions:                                                      #
12 #                                                                            #
13 # The above copyright notice and this permission notice shall be included in #
14 # all copies or substantial portions of the Software.                        #
15 #                                                                            #
16 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #
17 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,   #
18 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL    #
19 # THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER      #
20 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING    #
21 # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER        #
22 # DEALINGS IN THE SOFTWARE.                                                  #
23 #                                                                            #
24 # Except as contained in this notice, the name(s) of the above copyright     #
25 # holders shall not be used in advertising or otherwise to promote the sale, #
26 # use or other dealings in this Software without prior written               #
27 # authorization.                                                             #
28 ##############################################################################
29 #
30 #  Author:  Juergen Pfeifer, 1996
31 #
32 #  $Id: Makefile.in,v 1.60 2020/08/08 19:52:58 tom Exp $
33 #
34 .SUFFIXES:
35
36 SHELL           = @SHELL@
37 VPATH           = @srcdir@
38 THIS            = Makefile
39
40 x               = @EXEEXT@
41
42 srcdir          = @srcdir@
43 prefix          = @prefix@
44 exec_prefix     = @exec_prefix@
45 bindir          = @bindir@
46 datarootdir     = @datarootdir@
47 datadir         = @datadir@
48 libdir          = @libdir@
49 includedir      = @includedir@
50
51 INSTALL         = @INSTALL@ @INSTALL_OPT_O@
52 INSTALL_DATA    = @INSTALL_DATA@
53
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) -DNCURSES_STATIC
66 CFLAGS_DEBUG    = $(CCFLAGS) -DNCURSES_STATIC @CC_G_OPT@ -DTRACE
67 CFLAGS_PROFILE  = $(CCFLAGS) -DNCURSES_STATIC -pg
68 CFLAGS_SHARED   = $(CCFLAGS) @CC_SHARED_OPTS@
69
70 CFLAGS_DEFAULT  = $(CFLAGS_@DFT_UPR_MODEL@)
71
72 REL_VERSION     = @cf_cv_rel_version@
73 ABI_VERSION     = @cf_cv_abi_version@
74 LOCAL_LIBDIR    = @top_builddir@/lib
75
76 LINK            = $(CC)
77 LDFLAGS         = @LDFLAGS@ @LD_MODEL@ @LIBS@
78
79 RANLIB          = @RANLIB@
80 ################################################################################
81 BINDIR          = $(DESTDIR)$(bindir)
82 DATADIR         = $(DESTDIR)$(datadir)
83 LIBDIR          = $(DESTDIR)$(libdir)
84
85 MY_DATADIR      = $(DATADIR)/@ADA_LIBNAME@
86 THIS_DATADIR    = $(datadir)/@ADA_LIBNAME@
87
88 ################################################################################
89 ada_srcdir      = ../src
90
91 LD_FLAGS        = @LD_MODEL@ $(LOCAL_LIBS) @LDFLAGS@ @LIBS@ @LOCAL_LDFLAGS2@ $(LDFLAGS)
92
93 ADA             = @cf_ada_compiler@
94 ADAPREP         = gnatprep
95 ADAFLAGS        = @ADAFLAGS@ -I$(srcdir)
96
97 ADAMAKE         = @cf_ada_make@
98 ADAMAKEFLAGS    = -a \
99         -A$(srcdir) \
100         -A$(ada_srcdir) \
101         -A$(srcdir)/$(ada_srcdir)
102
103 ALIB            = @cf_ada_package@
104 ABASE           = $(ALIB)-curses
105 THISLIB         = sample
106
107 CARGS           = -cargs $(ADAFLAGS)
108 LARGS           = -largs -L../lib -l@ADA_LIBNAME@ @TEST_ARG2@ $(LD_FLAGS) @TEST_LIBS2@
109
110 PROGS           = tour$x ncurses$x @USE_GNAT_SIGINT@ rain$x 
111
112 all ::  $(PROGS)
113         @echo made $@
114
115 sources :
116         @echo made $@
117
118 libs \
119 install \
120 install.libs ::
121         @echo made $@
122
123 uninstall \
124 uninstall.libs ::
125         @echo made $@
126
127 install.examples :: $(BINDIR) $(PROGS)
128         $(INSTALL) $(PROGS) $(BINDIR)
129
130 install.examples :: $(MY_DATADIR)
131         $(INSTALL_DATA) explain.txt $(MY_DATADIR)
132
133 uninstall.examples ::
134         -cd $(BINDIR) && rm -f $(PROGS)
135         -rmdir $(BINDIR)
136         -rm -f $(MY_DATADIR)/explain.txt
137         -rmdir $(MY_DATADIR)
138
139 $(BINDIR) \
140 $(MY_DATADIR) :
141         mkdir -p $@
142
143 AUTO_SRC = $(THISLIB)-explanation.adb
144
145 ncurses$x : $(AUTO_SRC)
146         $(ADAMAKE) $(ADAMAKEFLAGS) ncurses $(CARGS) $(LARGS)
147
148 tour$x : $(AUTO_SRC)
149         $(ADAMAKE) $(ADAMAKEFLAGS) tour $(CARGS) $(LARGS)
150
151 rain$x : $(AUTO_SRC)
152         $(ADAMAKE) $(ADAMAKEFLAGS) rain $(CARGS) $(LARGS)
153
154 mostlyclean:
155         @echo made $@
156
157 clean :: mostlyclean
158         rm -f *.o *.ali b_t*.* *.s $(PROGS) a.out core b_*_test.c *.xr[bs] \
159         rm -f $(AUTO_SRC)
160         rm -f trace screendump b~*.ad[bs]
161
162 distclean :: clean
163         rm -f Makefile
164
165 realclean :: distclean
166         @echo made $@
167
168 $(THISLIB)-explanation.adb : $(srcdir)/$(THISLIB)-explanation.adb_p
169         rm -f $@
170         $(AWK) -v this_datadir=$(THIS_DATADIR) -f $(srcdir)/split-path.awk < $(srcdir)/$(THISLIB)-explanation.adb_p  >$@