libncurses: updated to 6.0
[tomato.git] / release / src / router / libncurses / Ada95 / samples / Makefile.in
blob5b4002733608850f2847858cc5b3f9bf0f19b0e0
1 ##############################################################################
2 # Copyright (c) 1998-2012,2015 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 ##############################################################################
29 # Author: Juergen Pfeifer, 1996
31 # $Id: Makefile.in,v 1.49 2015/08/05 23:15:41 tom Exp $
33 .SUFFIXES:
35 SHELL = @SHELL@
36 VPATH = @srcdir@
37 THIS = Makefile
39 x = @EXEEXT@
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@
50 INSTALL = @INSTALL@
51 INSTALL_DATA = @INSTALL_DATA@
53 AWK = @AWK@
54 LN_S = @LN_S@
56 CC = @CC@
57 CFLAGS = @CFLAGS@
59 CPPFLAGS = @ACPPFLAGS@ \
60 -DHAVE_CONFIG_H -I$(srcdir)
62 CCFLAGS = $(CPPFLAGS) $(CFLAGS)
64 CFLAGS_NORMAL = $(CCFLAGS)
65 CFLAGS_DEBUG = $(CCFLAGS) @CC_G_OPT@ -DTRACE
66 CFLAGS_PROFILE = $(CCFLAGS) -pg
67 CFLAGS_SHARED = $(CCFLAGS) @CC_SHARED_OPTS@
69 CFLAGS_DEFAULT = $(CFLAGS_@DFT_UPR_MODEL@)
71 REL_VERSION = @cf_cv_rel_version@
72 ABI_VERSION = @cf_cv_abi_version@
73 LOCAL_LIBDIR = @top_builddir@/lib
75 LINK = $(CC)
76 LDFLAGS = @LDFLAGS@ @LD_MODEL@ @LIBS@
78 RANLIB = @RANLIB@
79 ################################################################################
80 BINDIR = $(DESTDIR)$(bindir)
81 DATADIR = $(DESTDIR)$(datadir)
82 LIBDIR = $(DESTDIR)$(libdir)
84 MY_DATADIR = $(DATADIR)/AdaCurses
86 ################################################################################
87 ada_srcdir=../src
89 LD_FLAGS = @LD_MODEL@ $(LOCAL_LIBS) @LDFLAGS@ @LIBS@ @LOCAL_LDFLAGS2@ $(LDFLAGS)
91 ADA = @cf_ada_compiler@
92 ADAFLAGS = @ADAFLAGS@ -I$(srcdir)
94 ADAMAKE = @cf_ada_make@
95 ADAMAKEFLAGS = -a -A$(srcdir) -A$(ada_srcdir) -A$(srcdir)/$(ada_srcdir)
97 ALIB = @cf_ada_package@
98 ABASE = $(ALIB)-curses
100 CARGS =-cargs $(ADAFLAGS)
101 LARGS =-largs -L../lib -lAdaCurses @TEST_ARG2@ $(LD_FLAGS) @TEST_LIBS2@
103 PROGS = tour$x ncurses$x @USE_GNAT_SIGINT@ rain$x
105 all :: $(PROGS)
106 @echo made $@
108 sources :
109 @echo made $@
111 libs \
112 install \
113 install.libs ::
114 @echo made $@
116 uninstall \
117 uninstall.libs ::
118 @echo made $@
120 install.examples :: $(BINDIR) $(PROGS)
121 $(INSTALL) $(PROGS) $(BINDIR)
123 install.examples :: $(MY_DATADIR)
124 $(INSTALL_DATA) explain.txt $(MY_DATADIR)
126 uninstall.examples ::
127 -cd $(BINDIR) && rm -f $(PROGS)
128 -rmdir $(BINDIR)
129 -rm -f $(MY_DATADIR)/explain.txt
130 -rmdir $(MY_DATADIR)
132 $(BINDIR) \
133 $(MY_DATADIR) :
134 mkdir -p $@
136 ncurses$x :
137 $(ADAMAKE) $(ADAMAKEFLAGS) ncurses $(CARGS) $(LARGS)
139 tour$x :
140 $(ADAMAKE) $(ADAMAKEFLAGS) tour $(CARGS) $(LARGS)
142 rain$x :
143 $(ADAMAKE) $(ADAMAKEFLAGS) rain $(CARGS) $(LARGS)
145 mostlyclean:
146 @echo made $@
148 clean :: mostlyclean
149 rm -f *.o *.ali b_t*.* *.s $(PROGS) a.out core b_*_test.c *.xr[bs] \
150 trace screendump b~*.ad[bs]
152 distclean :: clean
153 rm -f Makefile
155 realclean :: distclean
156 @echo made $@