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