]> ncurses.scripts.mit.edu Git - ncurses.git/blob - Ada95/samples/Makefile.in
ncurses 5.1
[ncurses.git] / Ada95 / samples / Makefile.in
1 ##############################################################################
2 # Copyright (c) 1998 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 <juergen.pfeifer@gmx.net> 1996
30 #
31 #  Version Control
32 #  $Revision: 1.24 $
33 #
34 .SUFFIXES:
35
36 SHELL           = /bin/sh
37 THIS            = Makefile
38
39 srcdir          = @srcdir@
40 prefix          = @prefix@
41 exec_prefix     = @exec_prefix@
42 libdir          = @libdir@
43 includedir      = @includedir@
44
45 INSTALL         = @INSTALL@
46 INSTALL_DATA    = @INSTALL_DATA@
47
48 AWK             = @AWK@
49 LN_S            = @LN_S@
50
51 CC              = @CC@
52 CFLAGS          = @CFLAGS@
53
54 CPPFLAGS        = @ACPPFLAGS@ \
55                   -DHAVE_CONFIG_H -I$(srcdir)
56
57 CCFLAGS         = $(CPPFLAGS) $(CFLAGS)
58
59 CFLAGS_NORMAL   = $(CCFLAGS)
60 CFLAGS_DEBUG    = $(CCFLAGS) @CC_G_OPT@ -DTRACE
61 CFLAGS_PROFILE  = $(CCFLAGS) -pg
62 CFLAGS_SHARED   = $(CCFLAGS) @CC_SHARED_OPTS@
63
64 CFLAGS_DEFAULT  = $(CFLAGS_@DFT_UPR_MODEL@)
65
66 LINK            = $(CC)
67 LDFLAGS         = @LDFLAGS@ @LD_MODEL@ @LIBS@
68
69 RANLIB          = @RANLIB@
70 ################################################################################
71 ada_srcdir=../src
72
73 LD_FLAGS     = @LD_MODEL@ $(LOCAL_LIBS) @LDFLAGS@ @LIBS@ @LOCAL_LDFLAGS2@ $(LDFLAGS)
74
75 ADA          = @cf_ada_compiler@
76 ADAFLAGS     = @ADAFLAGS@ -I$(srcdir)
77
78 ADAMAKE      = @cf_ada_make@
79 ADAMAKEFLAGS = -a -A$(srcdir) -A$(ada_srcdir) -A$(srcdir)/$(ada_srcdir)
80
81 ALIB         = @cf_ada_package@
82 ABASE        = $(ALIB)-curses
83
84 CARGS        =-cargs $(ADAFLAGS)
85 LARGS        =-largs -L../../lib $(LD_FLAGS) -lAdaCurses -lncurses@LIB_SUFFIX@
86
87 PROGS        = tour rain
88
89 TOUR_OBJS    =  tour.o sample.o sample-curses_demo.o sample-explanation.o       \
90                 sample-form_demo.o sample-function_key_setting.o                \
91                 sample-header_handler.o sample-helpers.o                        \
92                 sample-keyboard_handler.o sample-manifest.o sample-menu_demo.o  \
93                 sample-menu_demo-aux.o sample-text_io_demo.o                    \
94                 sample-curses_demo-attributes.o sample-curses_demo-mouse.o      \
95                 sample-form_demo-aux.o sample-my_field_type.o
96
97 RAIN_OBJS    =  rain.o status.o
98
99 all ::  demo1 rainy_day
100         @
101
102 sources :
103         @
104
105 libs \
106 install \
107 install.libs ::
108         @
109
110 uninstall \
111 uninstall.libs ::
112         @
113
114 demo1:  explain.msg
115         $(ADAMAKE) $(ADAMAKEFLAGS) tour $(CARGS) $(LARGS)
116
117 explain.msg:    $(srcdir)/explain.txt
118         cp $(srcdir)/explain.txt $@
119
120 rainy_day:
121         $(ADAMAKE) $(ADAMAKEFLAGS) rain $(CARGS) $(LARGS)
122
123 mostlyclean:
124         @
125
126 clean :: mostlyclean
127         rm -f *.o *.ali b_t*.* *.s $(PROGS) a.out core b_*_test.c *.xr[bs] explain.msg
128
129 distclean :: clean
130         rm -f Makefile
131
132 realclean :: distclean
133         @
134
135