mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-11 20:49:02 +00:00
101 lines
3.5 KiB
Makefile
101 lines
3.5 KiB
Makefile
## Process this file with automake to produce Makefile.in
|
|
|
|
SUBDIRS = GSM610 G72x
|
|
|
|
INCLUDES = @EXTERNAL_CFLAGS@
|
|
|
|
lib_LTLIBRARIES = libsndfile.la
|
|
include_HEADERS = sndfile.hh
|
|
nodist_include_HEADERS = sndfile.h
|
|
|
|
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 \
|
|
$(SYMBOL_FILES) create_symbols_file.py binheader_writef_check.py
|
|
|
|
noinst_HEADERS = common.h sfconfig.h sfendian.h wav_w64.h sf_unistd.h
|
|
|
|
noinst_PROGRAMS =
|
|
|
|
COMMON = common.c file_io.c command.c pcm.c ulaw.c alaw.c float32.c \
|
|
double64.c ima_adpcm.c ms_adpcm.c gsm610.c dwvw.c vox_adpcm.c \
|
|
interleave.c strings.c dither.c broadcast.c audio_detect.c \
|
|
ima_oki_adpcm.c ima_oki_adpcm.h chunk.c
|
|
|
|
FILESPECIFIC = sndfile.c aiff.c au.c avr.c caf.c dwd.c flac.c g72x.c htk.c ircam.c \
|
|
macbinary3.c macos.c mat4.c mat5.c nist.c ogg.c paf.c pvf.c raw.c rx2.c sd2.c \
|
|
sds.c svx.c txw.c voc.c wve.c w64.c wav_w64.c wav.c xi.c mpc2k.c rf64.c
|
|
|
|
# MinGW requires -no-undefined if a DLL is to be built.
|
|
libsndfile_la_LDFLAGS = -no-undefined -version-info @SHARED_VERSION_INFO@ @SHLIB_VERSION_ARG@
|
|
libsndfile_la_SOURCES = $(FILESPECIFIC) $(noinst_HEADERS)
|
|
nodist_libsndfile_la_SOURCES = $(nodist_include_HEADERS)
|
|
libsndfile_la_LIBADD = libcommon.la GSM610/libgsm.la G72x/libg72x.la \
|
|
@EXTERNAL_LIBS@ -lm
|
|
|
|
libcommon_la_SOURCES = $(COMMON)
|
|
|
|
#test_main_SOURCES = test_main.c test_main.h test_conversions.c test_float.c test_endswap.c \
|
|
# test_audio_detect.c test_log_printf.c test_file_io.c test_ima_oki_adpcm.c
|
|
#test_main_LDADD = libcommon.la
|
|
#
|
|
#
|
|
#test_endswap.c: test_endswap.def test_endswap.tpl
|
|
# autogen --writable test_endswap.def
|
|
|
|
genfiles : $(SYMBOL_FILES)
|
|
|
|
# A single test programs.
|
|
# It is not possible to place these in the tests/ directory because they
|
|
# need access to the internals of the SF_PRIVATE struct.
|
|
|
|
check: $(noinst_PROGRAMS)
|
|
@echo
|
|
@echo
|
|
@echo
|
|
@echo "============================================================"
|
|
@if [ -x /usr/bin/python2.5 ]; then $(srcdir)/binheader_writef_check.py $(srcdir)/*.c ; fi
|
|
./test_main$(EXEEXT)
|
|
@echo "============================================================"
|
|
@echo
|
|
@echo
|
|
@echo
|
|
|
|
#======================================================================
|
|
# Generate an OS specific Symbols files. This is done when the author
|
|
# builds the distribution tarball. There should be not need for the
|
|
# end user to create these files.
|
|
|
|
Symbols.linux: create_symbols_file.py
|
|
./create_symbols_file.py linux $(VERSION) > $@
|
|
|
|
Symbols.darwin: create_symbols_file.py
|
|
./create_symbols_file.py darwin $(VERSION) > $@
|
|
|
|
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) > $@
|
|
|
|
# Fake dependancy to force the creation of these files.
|
|
sndfile.o : $(SYMBOL_FILES)
|
|
|
|
#======================================================================
|
|
# Disable autoheader.
|
|
AUTOHEADER=echo
|
|
|
|
# Dependancies.
|
|
|
|
aiff.c au.c g72x.c ircam.c mat4.c mat5.c nist.c paf.c pvf.c : sndfile.h common.h
|
|
raw.c svx.c voc.c w64.c wav.c wav_w64.c htk.c sd2.c rx2.c txw.c : sndfile.h common.h
|
|
sds.c wve.c dwd.c ogg.c xi.c sndfile.c common.c file_io.c : sndfile.h common.h
|
|
command.c pcm.c ulaw.c alaw.c float32.c double64.c ima_adpcm.c : sndfile.h common.h
|
|
ms_adpcm.c gsm610.c dwvw.c vox_adpcm.c interleave.c strings.c : sndfile.h common.h
|
|
dither.c : sndfile.h common.h
|