libtool/tests/Makefile.am

127 lines
4.1 KiB
Makefile
Raw Normal View History

## Process this file with automake to produce Makefile.in
1997-04-02 02:29:23 +08:00
AUTOMAKE_OPTIONS = gnits
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
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
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 \
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 \
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 \
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 \
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 \
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 \
pdemo-inst.test \
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 \
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 \
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 \
mdemo-shared.test mdemo-make.test mdemo-exec.test \
2003-10-15 05:46:13 +08:00
mdemo-inst.test mdemo-unst.test
if HAVE_CXX
if HAVE_F77
TESTS = $(COMMON_TESTS) $(CXX_TESTS) $(F77_TESTS)
else
TESTS = $(COMMON_TESTS) $(CXX_TESTS)
endif
else
if HAVE_F77
TESTS = $(COMMON_TESTS) $(F77_TESTS)
else
TESTS = $(COMMON_TESTS)
endif
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.
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
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