]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - Ada95/samples/Makefile.in
ncurses 6.2 - patch 20210123
[ncurses.git] / Ada95 / samples / Makefile.in
index 2130e4a357dfee9a291f7eb4747a9a716496901c..3a0c272f409228fea5684263226284a6ab3255c8 100644 (file)
-#----------------------------------------------------------------------------
-#                                                                          --
-#                            GNAT ncurses Binding                          --
-#                              samples/Makefile                            --
-#                                                                          --
-#  Version 00.92                                                           --
-#                                                                          --
-#  The ncurses Ada95 binding is copyrighted 1996 by                        --
-#  Juergen Pfeifer, Email: Juergen.Pfeifer@T-Online.de                     --
-#                                                                          --
-#  Permission is hereby granted to reproduce and distribute this           --
-#  binding by any means and for any fee, whether alone or as part          --
-#  of a larger distribution, in source or in binary form, PROVIDED         --
-#  this notice is included with any such distribution, and is not          --
-#  removed from any of its header files. Mention of ncurses and the        --
-#  author of this binding in any applications linked with it is            --
-#  highly appreciated.                                                     --
-#                                                                          --
-#  This binding comes AS IS with no warranty, implied or expressed.        --
-#----------------------------------------------------------------------------
-#  Version Control
-#  $Revision: 1.7 $
+##############################################################################
+# Copyright 2018-2020,2021 Thomas E. Dickey                                  #
+# Copyright 1998-2015,2018 Free Software Foundation, Inc.                    #
+#                                                                            #
+# Permission is hereby granted, free of charge, to any person obtaining a    #
+# copy of this software and associated documentation files (the "Software"), #
+# to deal in the Software without restriction, including without limitation  #
+# the rights to use, copy, modify, merge, publish, distribute, distribute    #
+# with modifications, sublicense, and/or sell copies of the Software, and to #
+# permit persons to whom the Software is furnished to do so, subject to the  #
+# following conditions:                                                      #
+#                                                                            #
+# The above copyright notice and this permission notice shall be included in #
+# all copies or substantial portions of the Software.                        #
+#                                                                            #
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,   #
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL    #
+# THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER      #
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING    #
+# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER        #
+# DEALINGS IN THE SOFTWARE.                                                  #
+#                                                                            #
+# Except as contained in this notice, the name(s) of the above copyright     #
+# holders shall not be used in advertising or otherwise to promote the sale, #
+# use or other dealings in this Software without prior written               #
+# authorization.                                                             #
+##############################################################################
+#
+#  Author:  Juergen Pfeifer, 1996
+#
+#  $Id: Makefile.in,v 1.62 2021/01/23 20:42:08 tom Exp $
 #
 .SUFFIXES:
 
-SHELL          = /bin/sh
+SHELL          = @SHELL@
+VPATH          = @srcdir@
 THIS           = Makefile
 
-MODEL          = ../../@DFT_OBJ_SUBDIR@
+x              = @EXEEXT@
+
 srcdir         = @srcdir@
 prefix         = @prefix@
 exec_prefix    = @exec_prefix@
+bindir         = @bindir@
+datarootdir    = @datarootdir@
+datadir                = @datadir@
 libdir         = @libdir@
 includedir     = @includedir@
-datadir                = @datadir@
-ticdir         = $(datadir)/terminfo
 
-INSTALL                = @INSTALL@
+INSTALL                = @INSTALL@ @INSTALL_OPT_O@
 INSTALL_DATA   = @INSTALL_DATA@
 
 AWK            = @AWK@
 LN_S           = @LN_S@
 
 CC             = @CC@
-CFLAGS         = @CFLAGS@
+CFLAGS         = @CFLAGS@ @EXTRA_CFLAGS@
 
 CPPFLAGS       = @ACPPFLAGS@ \
                  -DHAVE_CONFIG_H -I$(srcdir)
 
 CCFLAGS                = $(CPPFLAGS) $(CFLAGS)
 
-CFLAGS_NORMAL  = $(CCFLAGS)
-CFLAGS_DEBUG   = $(CCFLAGS) @CC_G_OPT@ -DTRACE
-CFLAGS_PROFILE = $(CCFLAGS) -pg
+CFLAGS_NORMAL  = $(CCFLAGS) -DNCURSES_STATIC
+CFLAGS_DEBUG   = $(CCFLAGS) -DNCURSES_STATIC @CC_G_OPT@ -DTRACE
+CFLAGS_PROFILE = $(CCFLAGS) -DNCURSES_STATIC -pg
 CFLAGS_SHARED  = $(CCFLAGS) @CC_SHARED_OPTS@
 
 CFLAGS_DEFAULT = $(CFLAGS_@DFT_UPR_MODEL@)
 
+REL_VERSION    = @cf_cv_rel_version@
+ABI_VERSION    = @cf_cv_abi_version@
+LOCAL_LIBDIR   = @top_builddir@/lib
+
 LINK           = $(CC)
 LDFLAGS                = @LDFLAGS@ @LD_MODEL@ @LIBS@
 
 RANLIB         = @RANLIB@
 ################################################################################
-ada_srcdir=../ada_include
-ada_objdir=../ada_objects
+BINDIR         = $(DESTDIR)$(bindir)
+DATADIR                = $(DESTDIR)$(datadir)
+LIBDIR         = $(DESTDIR)$(libdir)
+
+MY_DATADIR     = $(DATADIR)/@ADA_LIBNAME@
+THIS_DATADIR   = $(datadir)/@ADA_LIBNAME@
+
+################################################################################
+ada_srcdir     = ../src
+
+LD_FLAGS       = @LD_MODEL@ $(LOCAL_LIBS) @LDFLAGS@ @LIBS@ @LOCAL_LDFLAGS2@ $(LDFLAGS)
 
-LD_FLAGS     = @LD_MODEL@ $(LOCAL_LIBS) @LDFLAGS@ @LIBS@ @LOCAL_LDFLAGS2@ $(LDFLAGS)
+ADA            = @cf_ada_compiler@
+ADAPREP                = gnatprep
+ADAFLAGS       = @ADAFLAGS@ -I$(srcdir)
 
-ADA          = @nc_ada_compiler@
-ADAFLAGS     = @ADAFLAGS@ -I$(srcdir)
+ADAMAKE                = @cf_ada_make@
+ADAMAKEFLAGS   = -a \
+       -A$(srcdir) \
+       -A$(ada_srcdir) \
+       -A$(srcdir)/$(ada_srcdir)
 
-ADAMAKE      = @nc_ada_make@
-ADAMAKEFLAGS = -aI$(srcdir) -aI$(ada_srcdir) -aI$(srcdir)/$(ada_srcdir) -aO$(ada_objdir)
+ALIB           = @cf_ada_package@
+ABASE          = $(ALIB)-curses
+THISLIB                = sample
 
-ALIB         = @nc_ada_package@
-ABASE        = $(ALIB)-curses
+CARGS          = -cargs $(ADAFLAGS)
+LARGS          = -largs -L../lib -l@ADA_LIBNAME@ @TEST_ARG2@ $(LD_FLAGS) @TEST_LIBS2@
 
-CARGS        =-cargs $(ADAFLAGS)
-LARGS        =-largs -L../../lib $(LD_FLAGS)
+PROGS          = tour$x ncurses$x @USE_GNAT_SIGINT@ rain$x 
 
-PROGS        = tour
+all ::  $(PROGS)
+       @echo made $@
 
-TOUR_OBJS    = tour.o sample.o sample-curses_demo.o sample-explanation.o       \
-               sample-form_demo.o sample-function_key_setting.o                \
-               sample-header_handler.o sample-helpers.o                        \
-               sample-keyboard_handler.o sample-manifest.o sample-menu_demo.o  \
-               sample-menu_demo-aux.o sample-text_io_demo.o                    \
-               sample-curses_demo-attributes.o sample-curses_demo-mouse.o      \
-               sample-form_demo-aux.o sample-my_field_type.o
+sources :
+       @echo made $@
 
-all ::  demo1
-       @
+libs \
+install \
+install.libs ::
+       @echo made $@
 
-demo1: explain.msg
+uninstall \
+uninstall.libs ::
+       @echo made $@
+
+install.examples :: $(BINDIR) $(PROGS)
+       $(INSTALL) $(PROGS) $(BINDIR)
+
+install.examples :: $(MY_DATADIR)
+       $(INSTALL_DATA) explain.txt $(MY_DATADIR)
+
+uninstall.examples ::
+       -( cd $(BINDIR) && rm -f $(PROGS) )
+       -rmdir $(BINDIR)
+       -rm -f $(MY_DATADIR)/explain.txt
+       -rmdir $(MY_DATADIR)
+
+$(BINDIR) \
+$(MY_DATADIR) :
+       mkdir -p $@
+
+AUTO_SRC = $(THISLIB)-explanation.adb
+
+ncurses$x : $(AUTO_SRC)
+       $(ADAMAKE) $(ADAMAKEFLAGS) ncurses $(CARGS) $(LARGS)
+
+tour$x : $(AUTO_SRC)
        $(ADAMAKE) $(ADAMAKEFLAGS) tour $(CARGS) $(LARGS)
 
-explain.msg:   $(srcdir)/explain.txt
-       cp $(srcdir)/explain.txt $@
+rain$x : $(AUTO_SRC)
+       $(ADAMAKE) $(ADAMAKEFLAGS) rain $(CARGS) $(LARGS)
+
+mostlyclean:
+       @echo made $@
 
-clean ::
-       rm -f *.o *.ali b_t*.* *.s $(PROGS) a.out core b_*_test.c *.xr[bs] explain.msg
+clean :: mostlyclean
+       rm -f *.o *.ali b_t*.* *.s $(PROGS) a.out core b_*_test.c *.xr[bs] \
+       rm -f $(AUTO_SRC)
+       rm -f trace screendump b~*.ad[bs]
 
 distclean :: clean
        rm -f Makefile
 
-mostlyclean :: clean
-       @
-
 realclean :: distclean
-       @
-
+       @echo made $@
 
+$(THISLIB)-explanation.adb : $(srcdir)/$(THISLIB)-explanation.adb_p
+       rm -f $@
+       $(AWK) -v this_datadir=$(THIS_DATADIR) -f $(srcdir)/split-path.awk < $(srcdir)/$(THISLIB)-explanation.adb_p  >$@