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