]> ncurses.scripts.mit.edu Git - ncurses.git/blob - Ada95/samples/Makefile.in
ncurses 5.8 - patch 20110319
[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.41 2011/03/06 01:22:23 Nicolas.Boulenguez 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 libdir          = @libdir@
45 includedir      = @includedir@
46
47 INSTALL         = @INSTALL@
48 INSTALL_DATA    = @INSTALL_DATA@
49
50 AWK             = @AWK@
51 LN_S            = @LN_S@
52
53 CC              = @CC@
54 CFLAGS          = @CFLAGS@
55
56 CPPFLAGS        = @ACPPFLAGS@ \
57                   -DHAVE_CONFIG_H -I$(srcdir)
58
59 CCFLAGS         = $(CPPFLAGS) $(CFLAGS)
60
61 CFLAGS_NORMAL   = $(CCFLAGS)
62 CFLAGS_DEBUG    = $(CCFLAGS) @CC_G_OPT@ -DTRACE
63 CFLAGS_PROFILE  = $(CCFLAGS) -pg
64 CFLAGS_SHARED   = $(CCFLAGS) @CC_SHARED_OPTS@
65
66 CFLAGS_DEFAULT  = $(CFLAGS_@DFT_UPR_MODEL@)
67
68 REL_VERSION     = @cf_cv_rel_version@
69 ABI_VERSION     = @cf_cv_abi_version@
70 LOCAL_LIBDIR    = @top_builddir@/lib
71
72 LINK            = $(CC)
73 LDFLAGS         = @LDFLAGS@ @LD_MODEL@ @LIBS@
74
75 RANLIB          = @RANLIB@
76 ################################################################################
77 ada_srcdir=../src
78
79 LD_FLAGS     = @LD_MODEL@ $(LOCAL_LIBS) @LDFLAGS@ @LIBS@ @LOCAL_LDFLAGS2@ $(LDFLAGS)
80
81 ADA          = @cf_ada_compiler@
82 ADAFLAGS     = @ADAFLAGS@ -I$(srcdir)
83
84 ADAMAKE      = @cf_ada_make@
85 ADAMAKEFLAGS = -a -A$(srcdir) -A$(ada_srcdir) -A$(srcdir)/$(ada_srcdir)
86
87 ALIB         = @cf_ada_package@
88 ABASE        = $(ALIB)-curses
89
90 CARGS        =-cargs $(ADAFLAGS)
91 LARGS        =-largs @TEST_ARG2@ $(LD_FLAGS) -L../lib -lAdaCurses @TEST_LIBS2@
92
93 PROGS        = tour rain ncurses
94
95 all ::  tour$x rain$x ncurses$x
96         @echo made $@
97
98 sources :
99         @echo made $@
100
101 libs \
102 install \
103 install.libs ::
104         @echo made $@
105
106 uninstall \
107 uninstall.libs ::
108         @echo made $@
109
110 ncurses$x :
111         $(ADAMAKE) $(ADAMAKEFLAGS) ncurses $(CARGS) $(LARGS)
112
113 tour$x :
114         $(ADAMAKE) $(ADAMAKEFLAGS) tour $(CARGS) $(LARGS)
115
116 rain$x :
117         $(ADAMAKE) $(ADAMAKEFLAGS) rain $(CARGS) $(LARGS)
118
119 mostlyclean:
120         @echo made $@
121
122 clean :: mostlyclean
123         rm -f *.o *.ali b_t*.* *.s $(PROGS) a.out core b_*_test.c *.xr[bs] \
124         trace screendump b~*.ad[bs]
125
126 distclean :: clean
127         rm -f Makefile
128
129 realclean :: distclean
130         @echo made $@