ncurses 5.5
[ncurses.git] / Ada95 / samples / Makefile.in
1 ##############################################################################
2 # Copyright (c) 1998-2004,2005 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.33 2005/05/28 16:11:01 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 LINK            = $(CC)
68 LDFLAGS         = @LDFLAGS@ @LD_MODEL@ @LIBS@
69
70 RANLIB          = @RANLIB@
71 ################################################################################
72 ada_srcdir=../src
73
74 LD_FLAGS     = @LD_MODEL@ $(LOCAL_LIBS) @LDFLAGS@ @LIBS@ @LOCAL_LDFLAGS2@ $(LDFLAGS)
75
76 ADA          = @cf_ada_compiler@
77 ADAFLAGS     = @ADAFLAGS@ -I$(srcdir)
78
79 ADAMAKE      = @cf_ada_make@
80 ADAMAKEFLAGS = -a -A$(srcdir) -A$(ada_srcdir) -A$(srcdir)/$(ada_srcdir)
81
82 ALIB         = @cf_ada_package@
83 ABASE        = $(ALIB)-curses
84
85 CARGS        =-cargs $(ADAFLAGS)
86 LARGS        =-largs @TEST_ARG2@ $(LD_FLAGS) -lAdaCurses
87  
88 PROGS        = tour rain ncurses 
89
90 TOUR_OBJS    =  tour.o sample.o sample-curses_demo.o sample-explanation.o       \
91                 sample-form_demo.o sample-function_key_setting.o                \
92                 sample-header_handler.o sample-helpers.o                        \
93                 sample-keyboard_handler.o sample-manifest.o sample-menu_demo.o  \
94                 sample-menu_demo-aux.o sample-text_io_demo.o                    \
95                 sample-curses_demo-attributes.o sample-curses_demo-mouse.o      \
96                 sample-form_demo-aux.o sample-my_field_type.o
97
98 RAIN_OBJS    =  rain.o status.o
99
100 NCURSES_OBJS = ncurses.o                ncurses2-getch_test.o \
101         ncurses2-acs_and_scroll.o       ncurses2-m.o \
102         ncurses2-acs_display.o          ncurses2-menu_test.o \
103         ncurses2-attr_test.o            ncurses2-overlap_test.o \
104         ncurses2-color_edit.o           ncurses2-slk_test.o \
105         ncurses2-color_test.o           ncurses2-test_sgr_attributes.o \
106         ncurses2-demo_forms.o           ncurses2-trace_set.o \
107         ncurses2-demo_pad.o             ncurses2-util.o \
108         ncurses2-demo_panels.o          ncurses2.o \
109         ncurses2-flushinp_test.o
110
111
112 all ::  tour$x rain$x ncurses$x
113         @echo made $@
114
115 sources :
116         @echo made $@
117
118 libs \
119 install \
120 install.libs ::
121         @echo made $@
122
123 uninstall \
124 uninstall.libs ::
125         @echo made $@
126
127 ncurses$x :
128         $(ADAMAKE) $(ADAMAKEFLAGS) ncurses $(CARGS) $(LARGS)
129
130 tour$x :        explain.msg
131         $(ADAMAKE) $(ADAMAKEFLAGS) tour $(CARGS) $(LARGS)
132
133 explain.msg:    $(srcdir)/explain.txt
134         cp $(srcdir)/explain.txt $@
135
136 rain$x :
137         $(ADAMAKE) $(ADAMAKEFLAGS) rain $(CARGS) $(LARGS)
138
139 mostlyclean:
140         @echo made $@
141
142 clean :: mostlyclean
143         rm -f *.o *.ali b_t*.* *.s $(PROGS) a.out core b_*_test.c *.xr[bs] \
144         explain.msg trace screendump 
145
146 distclean :: clean
147         rm -f Makefile
148
149 realclean :: distclean
150         @echo made $@