Tweaks to generation of Symbols files.

This commit is contained in:
Erik de Castro Lopo 2008-11-14 21:45:09 +11:00
parent 9b001f76bb
commit 878867e129
3 changed files with 16 additions and 20 deletions

View File

@ -1,3 +1,8 @@
2008-11-10 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
* configure.ac src/Makefile.am
Tweaks to generation of Symbols files.
2008-11-06 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
* programs/common.c

View File

@ -523,14 +523,7 @@ if test x$ac_cv_c_compiler_gnu = xyes ; then
mingw*)
# Linker flag '-Wl,--out-implib' does not work with mingw cross compiler
# so we don't use it here.
SHLIB_VERSION_ARG="-Wl,\$(srcdir)/libsndfile.def"
win32_target_dll=1
if test x"$enable_shared" = xno ; then
win32_target_dll=0
fi
;;
cygwin*)
SHLIB_VERSION_ARG="-Wl,\$(srcdir)/cygsndfile.def"
SHLIB_VERSION_ARG="-Wl,\$(srcdir)/libsndfile-1.def"
win32_target_dll=1
if test x"$enable_shared" = xno ; then
win32_target_dll=0

View File

@ -13,9 +13,10 @@ noinst_LTLIBRARIES = libcommon.la
OS_SPECIFIC_CFLAGS = @OS_SPECIFIC_CFLAGS@
OS_SPECIFIC_LINKS = @OS_SPECIFIC_LINKS@
SYMBOL_FILES = Symbols.linux Symbols.darwin libsndfile-1.def Symbols.os2
EXTRA_DIST = sndfile.h.in config.h.in test_endswap.tpl test_endswap.def \
Symbols.linux Symbols.darwin libsndfile.def cygsndfile.def \
create_symbols_file.py binheader_writef_check.py
$(SYMBOL_FILES) create_symbols_file.py binheader_writef_check.py
noinst_HEADERS = common.h sfconfig.h sfendian.h wav_w64.h sf_unistd.h
@ -47,7 +48,7 @@ test_main_LDADD = libcommon.la
test_endswap.c: test_endswap.def test_endswap.tpl
autogen --writable test_endswap.def
genfiles : test_endswap.c Symbols.linux Symbols.darwin libsndfile.def cygsndfile.def
genfiles : test_endswap.c $(SYMBOL_FILES)
# A single test programs.
# It is not possible to place these in the tests/ directory because they
@ -71,22 +72,19 @@ check: $(noinst_PROGRAMS)
# end user to create these files.
Symbols.linux: create_symbols_file.py
./create_symbols_file.py linux $(VERSION) > Symbols.linux
./create_symbols_file.py linux $(VERSION) > $@
Symbols.darwin: create_symbols_file.py
./create_symbols_file.py darwin $(VERSION) > Symbols.darwin
./create_symbols_file.py darwin $(VERSION) > $@
libsndfile.def: create_symbols_file.py
./create_symbols_file.py win32 $(VERSION) > libsndfile.def
cygsndfile.def: create_symbols_file.py
./create_symbols_file.py cygwin $(VERSION) > cygsndfile.def
libsndfile-1.def: create_symbols_file.py
./create_symbols_file.py win32 $(VERSION) > $@
Symbols.os2: create_symbols_file.py
./create_symbols_file.py os2 $(VERSION) > Symbols.os2
./create_symbols_file.py os2 $(VERSION) > $@
# Fake dependancy to force the creation of these files.
sndfile.o : Symbols.linux Symbols.darwin libsndfile.def cygsndfile.def Symbols.os2
sndfile.o : $(SYMBOL_FILES)
#======================================================================
# Disable autoheader.