2002-05-21 05:30:25 +00:00
|
|
|
# $Id: Makefile.in,v 1.63 2002/02/03 00:54:10 china Exp $
|
1999-08-24 01:06:48 +00:00
|
|
|
##############################################################################
|
2001-05-17 08:21:06 +00:00
|
|
|
# Copyright (c) 1998,1999,2000,2001 Free Software Foundation, Inc. #
|
1999-08-24 01:06:48 +00: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. #
|
|
|
|
##############################################################################
|
|
|
|
#
|
|
|
|
# Author: Thomas E. Dickey <dickey@clark.net> 1996,1997,1998
|
|
|
|
#
|
|
|
|
# Makefile for ncurses tests.
|
|
|
|
|
|
|
|
# turn off _all_ suffix rules; we'll generate our own
|
|
|
|
.SUFFIXES:
|
|
|
|
|
|
|
|
SHELL = /bin/sh
|
|
|
|
|
|
|
|
x = @PROG_EXT@
|
|
|
|
|
|
|
|
MODEL = ../@DFT_OBJ_SUBDIR@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
prefix = @prefix@
|
|
|
|
exec_prefix = @exec_prefix@
|
|
|
|
libdir = @libdir@
|
|
|
|
includedir = @includedir@
|
|
|
|
|
2001-05-17 08:21:06 +00:00
|
|
|
LIBTOOL = @LIBTOOL@
|
|
|
|
|
1999-08-24 01:06:48 +00:00
|
|
|
CC = @CC@
|
2000-07-03 09:24:12 +00:00
|
|
|
CPP = @CPP@
|
1999-08-24 01:06:48 +00:00
|
|
|
|
|
|
|
CFLAGS = @CFLAGS@
|
|
|
|
CPPFLAGS = -I../test -I$(srcdir) @CPPFLAGS@ -DHAVE_CONFIG_H
|
|
|
|
|
|
|
|
CCFLAGS = $(CPPFLAGS) $(CFLAGS)
|
|
|
|
|
2001-05-17 08:21:06 +00:00
|
|
|
CFLAGS_LIBTOOL = $(CCFLAGS)
|
1999-08-24 01:06:48 +00:00
|
|
|
CFLAGS_NORMAL = $(CCFLAGS)
|
|
|
|
CFLAGS_DEBUG = $(CCFLAGS) @CC_G_OPT@ -DTRACE
|
|
|
|
CFLAGS_PROFILE = $(CCFLAGS) -pg
|
2000-01-26 16:43:25 +00:00
|
|
|
CFLAGS_SHARED = $(CCFLAGS) @CC_SHARED_OPTS@
|
1999-08-24 01:06:48 +00:00
|
|
|
|
|
|
|
CFLAGS_DEFAULT = $(CFLAGS_@DFT_UPR_MODEL@)
|
|
|
|
|
|
|
|
REL_VERSION = @cf_cv_rel_version@
|
|
|
|
ABI_VERSION = @cf_cv_abi_version@
|
|
|
|
LOCAL_LIBS = @TEST_DEPS@
|
|
|
|
MATH_LIB = @MATH_LIB@
|
|
|
|
|
|
|
|
LD = @LD@
|
2002-05-21 05:30:25 +00:00
|
|
|
LINK = @LINK_TESTS@ $(LIBTOOL) $(CC) $(CFLAGS)
|
1999-08-24 01:06:48 +00:00
|
|
|
|
|
|
|
LDFLAGS = @LD_MODEL@ @TEST_ARGS@ @LIBS@ @EXTRA_LIBS@ @LOCAL_LDFLAGS@ @LDFLAGS@
|
|
|
|
|
2001-05-17 08:21:06 +00:00
|
|
|
LDFLAGS_LIBTOOL = $(LDFLAGS)
|
1999-08-24 01:06:48 +00:00
|
|
|
LDFLAGS_NORMAL = $(LDFLAGS)
|
|
|
|
LDFLAGS_DEBUG = $(LDFLAGS) @CC_G_OPT@
|
|
|
|
LDFLAGS_PROFILE = $(LDFLAGS) -pg
|
|
|
|
LDFLAGS_SHARED = $(LDFLAGS) @LD_SHARED_OPTS@
|
|
|
|
|
|
|
|
LDFLAGS_DEFAULT = $(LDFLAGS_@DFT_UPR_MODEL@)
|
|
|
|
|
|
|
|
LINT = @LINT@
|
|
|
|
LINT_OPTS = @LINT_OPTS@
|
|
|
|
LINT_LIBS = -lform -lmenu -lpanel -lncurses @LIBS@
|
|
|
|
|
|
|
|
TESTS = \
|
|
|
|
blue$x \
|
|
|
|
bs$x \
|
|
|
|
cardfile$x \
|
|
|
|
ditto$x \
|
2000-01-26 16:43:25 +00:00
|
|
|
dots$x \
|
1999-08-24 01:06:48 +00:00
|
|
|
filter$x \
|
|
|
|
firework$x \
|
|
|
|
firstlast$x \
|
|
|
|
gdc$x \
|
|
|
|
hanoi$x \
|
|
|
|
hashtest$x \
|
|
|
|
keynames$x \
|
|
|
|
knight$x \
|
|
|
|
lrtest$x \
|
|
|
|
ncurses$x \
|
|
|
|
newdemo$x \
|
|
|
|
rain$x \
|
2000-07-03 09:24:12 +00:00
|
|
|
railroad$x \
|
1999-08-24 01:06:48 +00:00
|
|
|
tclock$x \
|
|
|
|
testaddch$x \
|
|
|
|
testcurs$x \
|
|
|
|
testscanw$x \
|
|
|
|
view$x \
|
|
|
|
worm$x \
|
|
|
|
xmas$x
|
|
|
|
|
|
|
|
all: $(TESTS)
|
|
|
|
|
|
|
|
sources:
|
|
|
|
|
|
|
|
blue$x: $(MODEL)/blue.o $(LOCAL_LIBS)
|
|
|
|
@ECHO_LINK@ $(LINK) -o $@ $(MODEL)/blue.o $(LDFLAGS_DEFAULT)
|
|
|
|
|
|
|
|
bs$x: $(MODEL)/bs.o $(LOCAL_LIBS)
|
|
|
|
@ECHO_LINK@ $(LINK) -o $@ $(MODEL)/bs.o $(LDFLAGS_DEFAULT)
|
|
|
|
|
|
|
|
cardfile$x: $(MODEL)/cardfile.o $(LOCAL_LIBS)
|
|
|
|
@ECHO_LINK@ $(LINK) -o $@ $(MODEL)/cardfile.o $(LDFLAGS_DEFAULT)
|
|
|
|
|
|
|
|
ditto$x: $(MODEL)/ditto.o $(LOCAL_LIBS)
|
|
|
|
@ECHO_LINK@ $(LINK) -o $@ $(MODEL)/ditto.o $(LDFLAGS_DEFAULT)
|
|
|
|
|
2000-01-26 16:43:25 +00:00
|
|
|
dots$x: $(MODEL)/dots.o $(LOCAL_LIBS)
|
|
|
|
@ECHO_LINK@ $(LINK) -o $@ $(MODEL)/dots.o $(LDFLAGS_DEFAULT)
|
|
|
|
|
1999-08-24 01:06:48 +00:00
|
|
|
filter$x: $(MODEL)/filter.o $(LOCAL_LIBS)
|
|
|
|
@ECHO_LINK@ $(LINK) -o $@ $(MODEL)/filter.o $(LDFLAGS_DEFAULT)
|
|
|
|
|
|
|
|
firework$x: $(MODEL)/firework.o $(LOCAL_LIBS)
|
|
|
|
@ECHO_LINK@ $(LINK) -o $@ $(MODEL)/firework.o $(LDFLAGS_DEFAULT)
|
|
|
|
|
|
|
|
firstlast$x: $(MODEL)/firstlast.o $(LOCAL_LIBS)
|
|
|
|
@ECHO_LINK@ $(LINK) -o $@ $(MODEL)/firstlast.o $(LDFLAGS_DEFAULT)
|
|
|
|
|
|
|
|
gdc$x: $(MODEL)/gdc.o $(LOCAL_LIBS)
|
|
|
|
@ECHO_LINK@ $(LINK) -o $@ $(MODEL)/gdc.o $(LDFLAGS_DEFAULT)
|
|
|
|
|
|
|
|
hanoi$x: $(MODEL)/hanoi.o $(LOCAL_LIBS)
|
|
|
|
@ECHO_LINK@ $(LINK) -o $@ $(MODEL)/hanoi.o $(LDFLAGS_DEFAULT)
|
|
|
|
|
|
|
|
hashtest$x: $(MODEL)/hashtest.o $(LOCAL_LIBS)
|
|
|
|
@ECHO_LINK@ $(LINK) -o $@ $(MODEL)/hashtest.o $(LDFLAGS_DEFAULT)
|
|
|
|
|
|
|
|
keynames$x: $(MODEL)/keynames.o $(LOCAL_LIBS)
|
|
|
|
@ECHO_LINK@ $(LINK) -o $@ $(MODEL)/keynames.o $(LDFLAGS_DEFAULT)
|
|
|
|
|
|
|
|
knight$x: $(MODEL)/knight.o $(LOCAL_LIBS)
|
|
|
|
@ECHO_LINK@ $(LINK) -o $@ $(MODEL)/knight.o $(LDFLAGS_DEFAULT)
|
|
|
|
|
|
|
|
lrtest$x: $(MODEL)/lrtest.o $(LOCAL_LIBS)
|
|
|
|
@ECHO_LINK@ $(LINK) -o $@ $(MODEL)/lrtest.o $(LDFLAGS_DEFAULT)
|
|
|
|
|
|
|
|
ncurses$x: $(MODEL)/ncurses.o $(LOCAL_LIBS)
|
|
|
|
@ECHO_LINK@ $(LINK) -o $@ $(MODEL)/ncurses.o $(LDFLAGS_DEFAULT)
|
|
|
|
|
|
|
|
newdemo$x: $(MODEL)/newdemo.o $(LOCAL_LIBS)
|
|
|
|
@ECHO_LINK@ $(LINK) -o $@ $(MODEL)/newdemo.o $(LDFLAGS_DEFAULT)
|
|
|
|
|
|
|
|
rain$x: $(MODEL)/rain.o $(LOCAL_LIBS)
|
|
|
|
@ECHO_LINK@ $(LINK) -o $@ $(MODEL)/rain.o $(LDFLAGS_DEFAULT)
|
|
|
|
|
2000-07-03 09:24:12 +00:00
|
|
|
railroad$x: $(MODEL)/railroad.o $(LOCAL_LIBS)
|
|
|
|
@ECHO_LINK@ $(LINK) -o $@ $(MODEL)/railroad.o $(LDFLAGS_DEFAULT)
|
|
|
|
|
1999-08-24 01:06:48 +00:00
|
|
|
tclock$x: $(MODEL)/tclock.o $(LOCAL_LIBS)
|
|
|
|
@ECHO_LINK@ $(LINK) -o $@ $(MODEL)/tclock.o $(LDFLAGS_DEFAULT) $(MATH_LIB)
|
|
|
|
|
|
|
|
testaddch$x: $(MODEL)/testaddch.o $(LOCAL_LIBS)
|
|
|
|
@ECHO_LINK@ $(LINK) -o $@ $(MODEL)/testaddch.o $(LDFLAGS_DEFAULT)
|
|
|
|
|
|
|
|
testcurs$x: $(MODEL)/testcurs.o $(LOCAL_LIBS)
|
|
|
|
@ECHO_LINK@ $(LINK) -o $@ $(MODEL)/testcurs.o $(LDFLAGS_DEFAULT)
|
|
|
|
|
|
|
|
testscanw$x: $(MODEL)/testscanw.o $(LOCAL_LIBS)
|
|
|
|
@ECHO_LINK@ $(LINK) -o $@ $(MODEL)/testscanw.o $(LDFLAGS_DEFAULT)
|
|
|
|
|
|
|
|
view$x: $(MODEL)/view.o $(LOCAL_LIBS)
|
|
|
|
@ECHO_LINK@ $(LINK) -o $@ $(MODEL)/view.o $(LDFLAGS_DEFAULT)
|
|
|
|
|
|
|
|
worm$x: $(MODEL)/worm.o $(LOCAL_LIBS)
|
|
|
|
@ECHO_LINK@ $(LINK) -o $@ $(MODEL)/worm.o $(LDFLAGS_DEFAULT)
|
|
|
|
|
|
|
|
xmas$x: $(MODEL)/xmas.o $(LOCAL_LIBS)
|
|
|
|
@ECHO_LINK@ $(LINK) -o $@ $(MODEL)/xmas.o $(LDFLAGS_DEFAULT)
|
|
|
|
|
2000-07-03 09:24:12 +00:00
|
|
|
libs \
|
|
|
|
install \
|
|
|
|
install.libs \
|
1999-08-24 01:06:48 +00:00
|
|
|
install.test:
|
|
|
|
|
|
|
|
uninstall:
|
|
|
|
uninstall.libs:
|
|
|
|
uninstall.test:
|
|
|
|
|
|
|
|
mostlyclean ::
|
2002-05-21 05:30:25 +00:00
|
|
|
-rm -f core tags TAGS *~ *.bak *.i *.ln *.atac trace
|
1999-08-24 01:06:48 +00:00
|
|
|
|
|
|
|
clean :: mostlyclean
|
2001-05-17 08:21:06 +00:00
|
|
|
-rm -rf *.o screendump *.lis $(TESTS) .libs
|
1999-08-24 01:06:48 +00:00
|
|
|
|
|
|
|
distclean :: clean
|
|
|
|
-rm -f Makefile ncurses_cfg.h config.*
|
|
|
|
|
|
|
|
realclean :: distclean
|
|
|
|
|
|
|
|
lint:
|
|
|
|
sh -c 'for N in $(TESTS); do echo LINT:$$N; $(LINT) $(LINT_OPTS) $(CPPFLAGS) $(srcdir)/$$N.c $(LINT_LIBS); done'
|
|
|
|
|
|
|
|
# Use this to get a list of test-programs for the standalone configure script.
|
|
|
|
echo_tests :
|
|
|
|
@echo "$(TESTS)"
|
|
|
|
echo_suffix :
|
|
|
|
@echo "$x"
|