mirror of
https://github.com/Aigor44/ncursesw-morphos.git
synced 2024-12-27 07:49:06 +08:00
2b635f090e
+ add special check in Ada95/configure script for ncurses6 reentrant code. + regen Ada html documentation. + build-fix for Ada shared libraries versus the varargs workaround. + add rpm and dpkg scripts for Ada95 and test directories, for test builds. + update test/configure macros CF_CURSES_LIBS, CF_XOPEN_SOURCE and CF_X_ATHENA_LIBS. + add configure check to determine if gnat's project feature supports libraries, i.e., collections of .ali files. + make all dereferences in Ada95 samples explicit. + fix typo in comment in lib_add_wch.c (patch by Petr Pavlu). + add configure check for, ifdef's for math.h which is in a separate package on Solaris and potentially not installed (report by Petr Pavlu). > fixes for Ada95 binding (Nicolas Boulenguez): + improve type-checking in Ada95 by eliminating a few warning-suppress pragmas. + suppress unreferenced warnings. + make all dereferences in binding explicit.
156 lines
4.6 KiB
Makefile
156 lines
4.6 KiB
Makefile
##############################################################################
|
|
# Copyright (c) 1998-2010,2011 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.44 2011/03/26 22:59:04 tom Exp $
|
|
#
|
|
.SUFFIXES:
|
|
|
|
SHELL = /bin/sh
|
|
VPATH = @srcdir@
|
|
THIS = Makefile
|
|
|
|
x = @PROG_EXT@
|
|
|
|
srcdir = @srcdir@
|
|
prefix = @prefix@
|
|
exec_prefix = @exec_prefix@
|
|
bindir = @bindir@
|
|
datadir = @datadir@
|
|
libdir = @libdir@
|
|
includedir = @includedir@
|
|
|
|
INSTALL = @INSTALL@
|
|
INSTALL_DATA = @INSTALL_DATA@
|
|
|
|
AWK = @AWK@
|
|
LN_S = @LN_S@
|
|
|
|
CC = @CC@
|
|
CFLAGS = @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_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@
|
|
################################################################################
|
|
BINDIR = $(DESTDIR)$(bindir)
|
|
DATADIR = $(DESTDIR)$(datadir)
|
|
LIBDIR = $(DESTDIR)$(libdir)
|
|
|
|
MY_DATADIR = $(DATADIR)/AdaCurses
|
|
|
|
################################################################################
|
|
ada_srcdir=../src
|
|
|
|
LD_FLAGS = @LD_MODEL@ $(LOCAL_LIBS) @LDFLAGS@ @LIBS@ @LOCAL_LDFLAGS2@ $(LDFLAGS)
|
|
|
|
ADA = @cf_ada_compiler@
|
|
ADAFLAGS = @ADAFLAGS@ -I$(srcdir)
|
|
|
|
ADAMAKE = @cf_ada_make@
|
|
ADAMAKEFLAGS = -a -A$(srcdir) -A$(ada_srcdir) -A$(srcdir)/$(ada_srcdir)
|
|
|
|
ALIB = @cf_ada_package@
|
|
ABASE = $(ALIB)-curses
|
|
|
|
CARGS =-cargs $(ADAFLAGS)
|
|
LARGS =-largs @TEST_ARG2@ $(LD_FLAGS) -L../lib -lAdaCurses @TEST_LIBS2@
|
|
|
|
PROGS = tour$x rain$x ncurses$x
|
|
|
|
all :: $(PROGS)
|
|
@echo made $@
|
|
|
|
sources :
|
|
@echo made $@
|
|
|
|
libs \
|
|
install \
|
|
install.libs ::
|
|
@echo made $@
|
|
|
|
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 $@
|
|
|
|
ncurses$x :
|
|
$(ADAMAKE) $(ADAMAKEFLAGS) ncurses $(CARGS) $(LARGS)
|
|
|
|
tour$x :
|
|
$(ADAMAKE) $(ADAMAKEFLAGS) tour $(CARGS) $(LARGS)
|
|
|
|
rain$x :
|
|
$(ADAMAKE) $(ADAMAKEFLAGS) rain $(CARGS) $(LARGS)
|
|
|
|
mostlyclean:
|
|
@echo made $@
|
|
|
|
clean :: mostlyclean
|
|
rm -f *.o *.ali b_t*.* *.s $(PROGS) a.out core b_*_test.c *.xr[bs] \
|
|
trace screendump b~*.ad[bs]
|
|
|
|
distclean :: clean
|
|
rm -f Makefile
|
|
|
|
realclean :: distclean
|
|
@echo made $@
|