2007-01-28 08:56:00 +08:00
|
|
|
# $Id: Makefile.in,v 1.95 2007/01/27 22:56:17 tom Exp $
|
1998-03-01 12:21:12 +08:00
|
|
|
##############################################################################
|
2007-01-28 08:56:00 +08:00
|
|
|
# Copyright (c) 1998-2006,2007 Free Software Foundation, Inc. #
|
1998-03-01 12:21:12 +08:00
|
|
|
# #
|
|
|
|
# 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. #
|
|
|
|
##############################################################################
|
|
|
|
#
|
2006-12-18 12:32:42 +08:00
|
|
|
# Author: Thomas E. Dickey 1996-on
|
1998-03-01 12:21:12 +08:00
|
|
|
#
|
1997-05-15 12:00:00 +08:00
|
|
|
# Makefile for ncurses tests.
|
|
|
|
|
1998-03-01 12:21:12 +08:00
|
|
|
# turn off _all_ suffix rules; we'll generate our own
|
|
|
|
.SUFFIXES:
|
|
|
|
|
1997-05-15 12:00:00 +08:00
|
|
|
SHELL = /bin/sh
|
|
|
|
|
2004-02-09 10:15:26 +08:00
|
|
|
@SET_MAKE@
|
|
|
|
|
2006-12-18 12:32:42 +08:00
|
|
|
destdir =
|
2004-02-09 10:15:26 +08:00
|
|
|
x = @EXEEXT@
|
|
|
|
o = .@OBJEXT@
|
1998-03-01 12:21:12 +08:00
|
|
|
|
1997-05-15 12:00:00 +08:00
|
|
|
MODEL = ../@DFT_OBJ_SUBDIR@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
prefix = @prefix@
|
|
|
|
exec_prefix = @exec_prefix@
|
|
|
|
libdir = @libdir@
|
|
|
|
includedir = @includedir@
|
|
|
|
|
2000-10-21 12:42:11 +08:00
|
|
|
LIBTOOL = @LIBTOOL@
|
2004-02-09 10:15:26 +08:00
|
|
|
LIBTOOL_CLEAN = @LIB_CLEAN@
|
|
|
|
LIBTOOL_COMPILE = @LIB_COMPILE@
|
|
|
|
LIBTOOL_LINK = @LIB_LINK@
|
2000-10-21 12:42:11 +08:00
|
|
|
|
1997-05-15 12:00:00 +08:00
|
|
|
CC = @CC@
|
2000-07-09 10:46:08 +08:00
|
|
|
CPP = @CPP@
|
1997-05-15 12:00:00 +08:00
|
|
|
|
2006-12-18 12:32:42 +08:00
|
|
|
CFLAGS = @CFLAGS@ @EXTRA_CFLAGS@
|
2004-02-09 10:15:26 +08:00
|
|
|
CPPFLAGS = -I../test -I$(srcdir) -DHAVE_CONFIG_H @CPPFLAGS@
|
1997-05-15 12:00:00 +08:00
|
|
|
|
|
|
|
CCFLAGS = $(CPPFLAGS) $(CFLAGS)
|
|
|
|
|
2000-10-21 12:42:11 +08:00
|
|
|
CFLAGS_LIBTOOL = $(CCFLAGS)
|
1997-05-15 12:00:00 +08:00
|
|
|
CFLAGS_NORMAL = $(CCFLAGS)
|
|
|
|
CFLAGS_DEBUG = $(CCFLAGS) @CC_G_OPT@ -DTRACE
|
|
|
|
CFLAGS_PROFILE = $(CCFLAGS) -pg
|
1999-10-24 12:32:42 +08:00
|
|
|
CFLAGS_SHARED = $(CCFLAGS) @CC_SHARED_OPTS@
|
1997-05-15 12:00:00 +08:00
|
|
|
|
|
|
|
CFLAGS_DEFAULT = $(CFLAGS_@DFT_UPR_MODEL@)
|
|
|
|
|
1998-03-01 12:21:12 +08:00
|
|
|
REL_VERSION = @cf_cv_rel_version@
|
|
|
|
ABI_VERSION = @cf_cv_abi_version@
|
2006-12-18 12:32:42 +08:00
|
|
|
LOCAL_LIBDIR = @top_builddir@/lib
|
1997-05-15 12:00:00 +08:00
|
|
|
LOCAL_LIBS = @TEST_DEPS@
|
1998-03-01 12:21:12 +08:00
|
|
|
MATH_LIB = @MATH_LIB@
|
1997-05-15 12:00:00 +08:00
|
|
|
|
|
|
|
LD = @LD@
|
2004-02-09 10:15:26 +08:00
|
|
|
LINK = @LINK_TESTS@ $(LIBTOOL_LINK) $(CC) $(CFLAGS)
|
1997-05-15 12:00:00 +08:00
|
|
|
|
2005-10-10 02:41:57 +08:00
|
|
|
LDFLAGS = @LD_MODEL@ @LOCAL_LDFLAGS@ @LDFLAGS@
|
1997-05-15 12:00:00 +08:00
|
|
|
|
2004-02-09 10:15:26 +08:00
|
|
|
LDFLAGS_LIBTOOL = $(LDFLAGS) $(CFLAGS_LIBTOOL)
|
|
|
|
LDFLAGS_NORMAL = $(LDFLAGS) $(CFLAGS_NORMAL)
|
|
|
|
LDFLAGS_DEBUG = $(LDFLAGS) $(CFLAGS_DEBUG)
|
|
|
|
LDFLAGS_PROFILE = $(LDFLAGS) $(CFLAGS_PROFILE)
|
|
|
|
LDFLAGS_SHARED = $(LDFLAGS) $(CFLAGS_SHARED) @LD_SHARED_OPTS@
|
1997-05-15 12:00:00 +08:00
|
|
|
|
2005-10-10 02:41:57 +08:00
|
|
|
# use these for linking with all of the libraries
|
2006-12-18 12:32:42 +08:00
|
|
|
LIBS_DEFAULT = @TEST_ARGS@ @LIBS@ $(MATH_LIB)
|
2005-10-10 02:41:57 +08:00
|
|
|
LDFLAGS_DEFAULT = $(LDFLAGS_@DFT_UPR_MODEL@) $(LIBS_DEFAULT)
|
|
|
|
|
|
|
|
# use these for linking with the (n)curses library
|
2006-12-18 12:32:42 +08:00
|
|
|
LIBS_CURSES = `echo "@TEST_ARGS@ @LIBS@" | sed -e 's/-lform.*-lpanel[^ ]*//'` $(MATH_LIB)
|
2005-10-10 02:41:57 +08:00
|
|
|
LDFLAGS_CURSES = $(LDFLAGS_@DFT_UPR_MODEL@) $(LIBS_CURSES)
|
|
|
|
|
|
|
|
# use these for linking with the tinfo library if we have it, or curses library if not
|
2007-01-28 08:56:00 +08:00
|
|
|
LIBS_TINFO = @TINFO_ARGS@ @LIBS@ $(MATH_LIB)
|
2005-10-10 02:41:57 +08:00
|
|
|
LDFLAGS_TINFO = $(LDFLAGS_@DFT_UPR_MODEL@) $(LIBS_TINFO)
|
1997-05-15 12:00:00 +08:00
|
|
|
|
|
|
|
LINT = @LINT@
|
|
|
|
LINT_OPTS = @LINT_OPTS@
|
|
|
|
LINT_LIBS = -lform -lmenu -lpanel -lncurses @LIBS@
|
|
|
|
|
2005-10-10 02:41:57 +08:00
|
|
|
HEADER_DEPS = \
|
|
|
|
../include/curses.h \
|
|
|
|
../include/term.h
|
|
|
|
|
2006-12-18 12:32:42 +08:00
|
|
|
# The rest is generated from the "programs" and "modules" files...
|