]> ncurses.scripts.mit.edu Git - ncurses.git/blob - Ada95/samples/Makefile.in
ncurses 6.1 - patch 20200111
[ncurses.git] / Ada95 / samples / Makefile.in
1 ##############################################################################
2 # Copyright (c) 1998-2018,2019 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.57 2019/12/22 01:09:19 tom Exp $
32 #
33 .SUFFIXES:
34
35 SHELL           = @SHELL@
36 VPATH           = @srcdir@
37 THIS            = Makefile
38
39 x               = @EXEEXT@
40
41 srcdir          = @srcdir@
42 prefix          = @prefix@
43 exec_prefix     = @exec_prefix@
44 bindir          = @bindir@
45 datarootdir     = @datarootdir@
46 datadir         = @datadir@
47 libdir          = @libdir@
48 includedir      = @includedir@
49
50 INSTALL         = @INSTALL@ @INSTALL_OPT_O@
51 INSTALL_DATA    = @INSTALL_DATA@
52
53 AWK             = @AWK@
54 LN_S            = @LN_S@
55
56 CC              = @CC@
57 CFLAGS          = @CFLAGS@
58
59 CPPFLAGS        = @ACPPFLAGS@ \
60                   -DHAVE_CONFIG_H -I$(srcdir)
61
62 CCFLAGS         = $(CPPFLAGS) $(CFLAGS)
63
64 CFLAGS_NORMAL   = $(CCFLAGS)
65 CFLAGS_DEBUG    = $(CCFLAGS) @CC_G_OPT@ -DTRACE
66 CFLAGS_PROFILE  = $(CCFLAGS) -pg
67 CFLAGS_SHARED   = $(CCFLAGS) @CC_SHARED_OPTS@
68
69 CFLAGS_DEFAULT  = $(CFLAGS_@DFT_UPR_MODEL@)
70
71 REL_VERSION     = @cf_cv_rel_version@
72 ABI_VERSION     = @cf_cv_abi_version@
73 LOCAL_LIBDIR    = @top_builddir@/lib
74
75 LINK            = $(CC)
76 LDFLAGS         = @LDFLAGS@ @LD_MODEL@ @LIBS@
77
78 RANLIB          = @RANLIB@
79 ################################################################################
80 BINDIR          = $(DESTDIR)$(bindir)
81 DATADIR         = $(DESTDIR)$(datadir)
82 LIBDIR          = $(DESTDIR)$(libdir)
83
84 MY_DATADIR      = $(DATADIR)/@ADA_LIBNAME@
85 THIS_DATADIR    = $(datadir)/@ADA_LIBNAME@
86
87 ################################################################################
88 ada_srcdir      = ../src
89
90 LD_FLAGS        = @LD_MODEL@ $(LOCAL_LIBS) @LDFLAGS@ @LIBS@ @LOCAL_LDFLAGS2@ $(LDFLAGS)
91
92 ADA             = @cf_ada_compiler@
93 ADAPREP         = gnatprep
94 ADAFLAGS        = @ADAFLAGS@ -I$(srcdir)
95
96 ADAMAKE         = @cf_ada_make@
97 ADAMAKEFLAGS    = -a \
98         -A$(srcdir) \
99         -A$(ada_srcdir) \
100         -A$(srcdir)/$(ada_srcdir)
101
102 ALIB            = @cf_ada_package@
103 ABASE           = $(ALIB)-curses
104 THISLIB         = sample
105
106 CARGS           = -cargs $(ADAFLAGS)
107 LARGS           = -largs -L../lib -l@ADA_LIBNAME@ @TEST_ARG2@ $(LD_FLAGS) @TEST_LIBS2@
108
109 PROGS           = tour$x ncurses$x @USE_GNAT_SIGINT@ rain$x 
110
111 all ::  $(PROGS)
112         @echo made $@
113
114 sources :
115         @echo made $@
116
117 libs \
118 install \
119 install.libs ::
120         @echo made $@
121
122 uninstall \
123 uninstall.libs ::
124         @echo made $@
125
126 install.examples :: $(BINDIR) $(PROGS)
127         $(INSTALL) $(PROGS) $(BINDIR)
128
129 install.examples :: $(MY_DATADIR)
130         $(INSTALL_DATA) explain.txt $(MY_DATADIR)
131
132 uninstall.examples ::
133         -cd $(BINDIR) && rm -f $(PROGS)
134         -rmdir $(BINDIR)
135         -rm -f $(MY_DATADIR)/explain.txt
136         -rmdir $(MY_DATADIR)
137
138 $(BINDIR) \
139 $(MY_DATADIR) :
140         mkdir -p $@
141
142 AUTO_SRC = $(THISLIB)-explanation.adb
143
144 ncurses$x : $(AUTO_SRC)
145         $(ADAMAKE) $(ADAMAKEFLAGS) ncurses $(CARGS) $(LARGS)
146
147 tour$x : $(AUTO_SRC)
148         $(ADAMAKE) $(ADAMAKEFLAGS) tour $(CARGS) $(LARGS)
149
150 rain$x : $(AUTO_SRC)
151         $(ADAMAKE) $(ADAMAKEFLAGS) rain $(CARGS) $(LARGS)
152
153 mostlyclean:
154         @echo made $@
155
156 clean :: mostlyclean
157         rm -f *.o *.ali b_t*.* *.s $(PROGS) a.out core b_*_test.c *.xr[bs] \
158         rm -f $(AUTO_SRC)
159         rm -f trace screendump b~*.ad[bs]
160
161 distclean :: clean
162         rm -f Makefile
163
164 realclean :: distclean
165         @echo made $@
166
167 $(THISLIB)-explanation.adb : $(srcdir)/$(THISLIB)-explanation.adb_p
168         rm -f $@
169         $(ADAPREP) -DTHIS_DATADIR=\"$(THIS_DATADIR)/\" @GNATPREP_OPTS@ $(srcdir)/$(THISLIB)-explanation.adb_p $@