1999-03-20 08:27:33 +08:00
|
|
|
## Process this file with automake to produce Makefile.in
|
1997-04-02 02:29:23 +08:00
|
|
|
|
|
|
|
AUTOMAKE_OPTIONS = gnits
|
|
|
|
|
2001-06-06 22:53:29 +08:00
|
|
|
CXX_TESTS = \
|
|
|
|
tagdemo-static.test tagdemo-make.test tagdemo-exec.test \
|
|
|
|
tagdemo-conf.test tagdemo-make.test tagdemo-exec.test \
|
|
|
|
tagdemo-shared.test tagdemo-make.test tagdemo-exec.test
|
|
|
|
|
2002-08-01 04:15:28 +08:00
|
|
|
F77_TESTS = \
|
|
|
|
f77demo-static.test f77demo-make.test f77demo-exec.test \
|
|
|
|
f77demo-conf.test f77demo-make.test f77demo-exec.test \
|
2003-10-15 05:46:13 +08:00
|
|
|
f77demo-shared.test f77demo-make.test f77demo-exec.test
|
2002-08-01 04:15:28 +08:00
|
|
|
|
2001-06-06 22:53:29 +08:00
|
|
|
COMMON_TESTS = \
|
2003-10-15 05:46:13 +08:00
|
|
|
assign.test link.test link-2.test nomode.test \
|
|
|
|
quote.test sh.test suffix.test \
|
2001-06-06 22:53:29 +08:00
|
|
|
cdemo-static.test cdemo-make.test cdemo-exec.test \
|
1999-03-17 00:54:48 +08:00
|
|
|
demo-static.test demo-make.test demo-exec.test \
|
1999-03-08 07:28:05 +08:00
|
|
|
demo-inst.test demo-unst.test \
|
2003-10-15 05:46:13 +08:00
|
|
|
depdemo-static.test depdemo-make.test depdemo-exec.test \
|
|
|
|
depdemo-inst.test depdemo-unst.test \
|
1999-01-21 11:50:07 +08:00
|
|
|
mdemo-static.test mdemo-make.test mdemo-exec.test \
|
|
|
|
mdemo-inst.test mdemo-unst.test \
|
1999-03-17 00:54:48 +08:00
|
|
|
cdemo-conf.test cdemo-make.test cdemo-exec.test \
|
1999-01-21 11:50:07 +08:00
|
|
|
demo-conf.test demo-make.test demo-exec.test \
|
2003-10-15 05:46:13 +08:00
|
|
|
demo-inst.test demo-unst.test demo-deplibs.test \
|
|
|
|
depdemo-conf.test depdemo-make.test depdemo-exec.test \
|
|
|
|
depdemo-inst.test depdemo-unst.test \
|
1998-11-18 15:29:36 +08:00
|
|
|
mdemo-conf.test mdemo-make.test mdemo-exec.test \
|
2003-10-15 05:46:13 +08:00
|
|
|
mdemo-inst.test mdemo-unst.test mdemo-dryrun.test \
|
|
|
|
mdemo2-conf.test mdemo2-make.test mdemo2-exec.test \
|
|
|
|
pdemo-conf.test pdemo-make.test pdemo-exec.test \
|
2003-10-15 19:01:12 +08:00
|
|
|
pdemo-inst.test \
|
1999-03-11 02:28:49 +08:00
|
|
|
demo-nofast.test demo-make.test demo-exec.test \
|
|
|
|
demo-inst.test demo-unst.test \
|
2003-10-15 05:46:13 +08:00
|
|
|
depdemo-nofast.test depdemo-make.test depdemo-exec.test \
|
|
|
|
depdemo-inst.test depdemo-unst.test \
|
1999-07-17 17:00:53 +08:00
|
|
|
demo-pic.test demo-make.test demo-exec.test \
|
|
|
|
demo-nopic.test demo-make.test demo-exec.test \
|
1999-03-17 00:54:48 +08:00
|
|
|
cdemo-shared.test cdemo-make.test cdemo-exec.test \
|
1999-03-11 02:28:49 +08:00
|
|
|
demo-shared.test demo-make.test demo-exec.test demo-inst.test \
|
2003-10-15 05:46:13 +08:00
|
|
|
demo-hardcode.test demo-relink.test demo-noinst-link.test \
|
|
|
|
demo-unst.test \
|
|
|
|
depdemo-shared.test depdemo-make.test depdemo-exec.test \
|
|
|
|
depdemo-inst.test depdemo-relink.test depdemo-unst.test \
|
1999-01-21 11:50:07 +08:00
|
|
|
mdemo-shared.test mdemo-make.test mdemo-exec.test \
|
2003-10-15 05:46:13 +08:00
|
|
|
mdemo-inst.test mdemo-unst.test
|
2001-06-06 22:53:29 +08:00
|
|
|
|
|
|
|
if HAVE_CXX
|
2002-08-01 04:15:28 +08:00
|
|
|
if HAVE_F77
|
|
|
|
TESTS = $(COMMON_TESTS) $(CXX_TESTS) $(F77_TESTS)
|
|
|
|
else
|
2001-06-06 22:53:29 +08:00
|
|
|
TESTS = $(COMMON_TESTS) $(CXX_TESTS)
|
2002-08-01 04:15:28 +08:00
|
|
|
endif
|
|
|
|
else
|
|
|
|
if HAVE_F77
|
|
|
|
TESTS = $(COMMON_TESTS) $(F77_TESTS)
|
2001-06-06 22:53:29 +08:00
|
|
|
else
|
|
|
|
TESTS = $(COMMON_TESTS)
|
|
|
|
endif
|
2002-08-01 04:15:28 +08:00
|
|
|
endif
|
1997-04-02 02:29:23 +08:00
|
|
|
|
* merged my inter-library dependencies code from the ILD branch:
* NEWS: inter-library dependencies are now supported
* configure.in: add the depdemo subdirectory
* depdemo/*: new demo to demonstrate inter-library dependencies
* tests/depdemo*: new tests for depdemo
* ltconfig.in: added hardcode_into_libs (whether library paths
should be hardcoded into the libraries),
it currently defaults to 'no'
* ltmain.in: new internal 'relink' mode to relink libraries
on platforms with hardcode_into_libs=yes, save command line
arguments in libtool_args, accept relative -L directories,
ignore -lm on BeOS and Cygwin, always ignore -lc,
handle -l, -L and .la arguments later, always make the library
installation directory (-rpath) absolute, in relink mode don't
delete the not-relinked library and exit immediately after relinking,
try to find already-installed libtool libraries that were specified
using -l, support hardcoding of library paths into libraries too,
export shlibpath before linking libraries, and a lot of other
big changes that I don't want to describe here... please read
the source.
* merged Gary's Win32 code from the ILD branch:
* NEWS: Win32 DLLs are now supported
* TODO: removed .a library namespace clash for win32. It is
now resolved.
* ltconfig.in (cygwin, library_names_spec): removed $libname.a.
Creating a dll with libtool no longer creates an import library.
* ltconfig.in (extract_expsyms_cmds): Create $objdir if it does
not exist -- i.e. we need to generate import an import library
in a directory which has no libs of its own.
* doc/libtool.texi (old_archive_from_expsyms_cmds,
extract_expsyms_cmds): documented these new variables.
* ltconfig.in (extract_expsyms_cmds): New variable. Commands to
extract the exported symbol list from a dll.
(old_archive_from_expsyms_cmds): New variable. Commands to build
an old archive from the extracted expsyms list.
* ltmain.in: run the cmds in extract_expsyms_cmds and
old_archive_from_expsyms_cmds as necessary.
* ltconfig.in (cygwin, old_archive_from_new_cmds): no longer
required.
* ltconfig.in (cygwin, shlibpath_overrides_runpath): I'm not even
sure whether win32 honours the runpath at all when searching for
a dll to load! Anyway, when set to yes this prevents a gratuitous
warning.
* ltmain.in (deplib): The cygwin environment doesn't actually have
-lm, and although the linker fakes having one, specifiying it to
libtool will break ILD, so we ignore it when generating
dependencies.
1999-03-19 05:57:08 +08:00
|
|
|
demo-conf.test: $(top_builddir)/libtool
|
1999-01-06 02:15:22 +08:00
|
|
|
|
|
|
|
$(top_builddir)/libtool:
|
|
|
|
cd $(top_builddir) && $(MAKE) all
|
|
|
|
|
1998-01-26 03:35:11 +08:00
|
|
|
# Be sure to reexport important environment variables.
|
2001-04-25 01:13:01 +08:00
|
|
|
TESTS_ENVIRONMENT = MAKE="$(MAKE)" CC="$(CC)" CFLAGS="$(CFLAGS)" \
|
|
|
|
CPPFLAGS="$(CPPFLAGS)" LD="$(LD)" LDFLAGS="$(LDFLAGS)" \
|
|
|
|
LIBS="$(LIBS)" LN_S="$(LN_S)" NM="$(NM)" RANLIB="$(RANLIB)" \
|
2003-10-15 05:46:13 +08:00
|
|
|
OBJEXT="$(OBJEXT)" EXEEXT="$(EXEEXT)" FFLAGS="$(FFLAGS)"
|
1998-01-26 03:35:11 +08:00
|
|
|
|
2002-08-01 04:15:28 +08:00
|
|
|
EXTRA_DIST = defs $(COMMON_TESTS) $(CXX_TESTS) $(F77_TESTS)
|
1997-04-02 03:02:08 +08:00
|
|
|
|
|
|
|
# We need to remove any files that the above tests created.
|
1997-04-02 03:19:30 +08:00
|
|
|
clean-local:
|
2003-10-15 05:46:13 +08:00
|
|
|
-for dir in cdemo demo depdemo f77demo mdemo mdemo2 pdemo tagdemo; \
|
|
|
|
do \
|
|
|
|
test -f $$dir/Makefile && ( cd $$dir && $(MAKE) distclean; ); \
|
|
|
|
done
|
1997-10-15 02:33:24 +08:00
|
|
|
rm -rf _inst
|
2003-10-15 05:46:13 +08:00
|
|
|
|
|
|
|
## ------------ ##
|
|
|
|
## package.m4. ##
|
|
|
|
## ------------ ##
|
|
|
|
|
|
|
|
$(srcdir)/package.m4: $(top_srcdir)/configure.ac
|
|
|
|
{ \
|
|
|
|
echo '# Signature of the current package.'; \
|
|
|
|
echo 'm4_define([AT_PACKAGE_NAME], [@PACKAGE_NAME@])'; \
|
|
|
|
echo 'm4_define([AT_PACKAGE_TARNAME], [@PACKAGE_TARNAME@])'; \
|
|
|
|
echo 'm4_define([AT_PACKAGE_VERSION], [@PACKAGE_VERSION@])'; \
|
|
|
|
echo 'm4_define([AT_PACKAGE_STRING], [@PACKAGE_STRING@])'; \
|
|
|
|
echo 'm4_define([AT_PACKAGE_BUGREPORT], [@PACKAGE_BUGREPORT@])'; \
|
|
|
|
} >$(srcdir)/package.m4
|
|
|
|
|
|
|
|
## ------------ ##
|
|
|
|
## Test suite. ##
|
|
|
|
## ------------ ##
|
|
|
|
|
|
|
|
TESTSUITE_AT = \
|
|
|
|
testsuite.at \
|
|
|
|
demo.at fortran.at tools.at
|
|
|
|
TESTSUITE = testsuite
|
|
|
|
|
|
|
|
#EXTRA_DIST = $(TESTSUITE_AT) local.at atlocal.in package.m4
|
|
|
|
|
|
|
|
#check-local: atconfig $(TESTSUITE)
|
|
|
|
# $(SHELL) $(srcdir)/$(TESTSUITE)
|
|
|
|
|
|
|
|
#clean-local:
|
|
|
|
# $(srcdir)/testsuite --clean
|
|
|
|
|
|
|
|
AUTOM4TE = autom4te
|
|
|
|
AUTOTEST = $(AUTOM4TE) --language=autotest
|
|
|
|
$(srcdir)/$(TESTSUITE): $(srcdir)/package.m4 local.at $(TESTSUITE_AT)
|
|
|
|
$(AUTOTEST) -I $(srcdir) testsuite.at -o $@
|
|
|
|
|
|
|
|
atconfig: $(top_builddir)/config.status
|
|
|
|
cd $(top_builddir) && ./config.status tests/$@
|
|
|
|
|
|
|
|
# Run the test suite on the *installed* tree.
|
|
|
|
#installcheck-local:
|
|
|
|
$(SHELL) $(srcdir)/$(TESTSUITE) AUTOTEST_PATH=$(exec_prefix)/bin
|