]> ncurses.scripts.mit.edu Git - ncurses.git/blob - Ada95/samples/Makefile.in
ncurses 5.3
[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, 1996
30 #  Contact: http://www.familiepfeifer.de/Contact.aspx?Lang=en
31 #
32 #  Version Control
33 #  $Revision: 1.29 $
34 #
35 .SUFFIXES:
36
37 SHELL           = /bin/sh
38 THIS            = Makefile
39
40 x               = @PROG_EXT@
41
42 srcdir          = @srcdir@
43 prefix          = @prefix@
44 exec_prefix     = @exec_prefix@
45 libdir          = @libdir@
46 includedir      = @includedir@
47
48 INSTALL         = @INSTALL@
49 INSTALL_DATA    = @INSTALL_DATA@
50
51 AWK             = @AWK@
52 LN_S            = @LN_S@
53
54 CC              = @CC@
55 CFLAGS          = @CFLAGS@
56
57 CPPFLAGS        = @ACPPFLAGS@ \
58                   -DHAVE_CONFIG_H -I$(srcdir)
59
60 CCFLAGS         = $(CPPFLAGS) $(CFLAGS)
61
62 CFLAGS_NORMAL   = $(CCFLAGS)
63 CFLAGS_DEBUG    = $(CCFLAGS) @CC_G_OPT@ -DTRACE
64 CFLAGS_PROFILE  = $(CCFLAGS) -pg
65 CFLAGS_SHARED   = $(CCFLAGS) @CC_SHARED_OPTS@
66
67 CFLAGS_DEFAULT  = $(CFLAGS_@DFT_UPR_MODEL@)
68
69 LINK            = $(CC)
70 LDFLAGS         = @LDFLAGS@ @LD_MODEL@ @LIBS@
71
72 RANLIB          = @RANLIB@
73 ################################################################################
74 ada_srcdir=../src
75
76 LD_FLAGS     = @LD_MODEL@ $(LOCAL_LIBS) @LDFLAGS@ @LIBS@ @LOCAL_LDFLAGS2@ $(LDFLAGS)
77
78 ADA          = @cf_ada_compiler@
79 ADAFLAGS     = @ADAFLAGS@ -I$(srcdir)
80
81 ADAMAKE      = @cf_ada_make@
82 ADAMAKEFLAGS = -a -A$(srcdir) -A$(ada_srcdir) -A$(srcdir)/$(ada_srcdir)
83
84 ALIB         = @cf_ada_package@
85 ABASE        = $(ALIB)-curses
86
87 CARGS        =-cargs $(ADAFLAGS)
88 LARGS        =-largs -L../../lib @TEST_ARGS@ $(LD_FLAGS) -lAdaCurses @EXTRA_LIBS@
89  
90 PROGS        = tour rain ncurses 
91
92 TOUR_OBJS    =  tour.o sample.o sample-curses_demo.o sample-explanation.o       \
93                 sample-form_demo.o sample-function_key_setting.o                \
94                 sample-header_handler.o sample-helpers.o                        \
95                 sample-keyboard_handler.o sample-manifest.o sample-menu_demo.o  \
96                 sample-menu_demo-aux.o sample-text_io_demo.o                    \
97                 sample-curses_demo-attributes.o sample-curses_demo-mouse.o      \
98                 sample-form_demo-aux.o sample-my_field_type.o
99
100 RAIN_OBJS    =  rain.o status.o
101
102 NCURSES_OBJS = ncurses.o                ncurses2-getch_test.o \
103         ncurses2-acs_and_scroll.o       ncurses2-m.o \
104         ncurses2-acs_display.o          ncurses2-menu_test.o \
105         ncurses2-attr_test.o            ncurses2-overlap_test.o \
106         ncurses2-color_edit.o           ncurses2-slk_test.o \
107         ncurses2-color_test.o           ncurses2-test_sgr_attributes.o \
108         ncurses2-demo_forms.o           ncurses2-trace_set.o \
109         ncurses2-demo_pad.o             ncurses2-util.o \
110         ncurses2-demo_panels.o          ncurses2.o \
111         ncurses2-flushinp_test.o
112
113
114 all ::  tour$x rain$x ncurses$x
115         @
116
117 sources :
118         @
119
120 libs \
121 install \
122 install.libs ::
123         @
124
125 uninstall \
126 uninstall.libs ::
127         @
128
129 ncurses$x :
130         $(ADAMAKE) $(ADAMAKEFLAGS) ncurses $(CARGS) $(LARGS)
131
132 tour$x :        explain.msg
133         $(ADAMAKE) $(ADAMAKEFLAGS) tour $(CARGS) $(LARGS)
134
135 explain.msg:    $(srcdir)/explain.txt
136         cp $(srcdir)/explain.txt $@
137
138 rain$x :
139         $(ADAMAKE) $(ADAMAKEFLAGS) rain $(CARGS) $(LARGS)
140
141 mostlyclean:
142         @
143
144 clean :: mostlyclean
145         rm -f *.o *.ali b_t*.* *.s $(PROGS) a.out core b_*_test.c *.xr[bs] \
146         explain.msg trace screendump 
147
148 distclean :: clean
149         rm -f Makefile
150
151 realclean :: distclean
152         @
153
154