1 ## Process this file with automake to produce Makefile.in
5 AM_CPPFLAGS = -DLADSPA_PATH="\"@LADSPA_PATH@\""
6 AM_CFLAGS = @WARN_CFLAGS@ #-Werror
9 # This is being used as a short cut to turn off versioning of ALL dynamic
10 # fmt libraries. If any fmt ever needs to add a specific LDFLAGS
11 # then it will need to also add -avoid-version because AM_LDFLAGS
12 # is ignored when you specify a more specific one.
13 # We want to version libsox and we are OK because they
14 # have a more specific LDFLAGS that includes -version-info.
15 AM_LDFLAGS = -avoid-version -module
16 AM_CPPFLAGS += -DPKGLIBDIR="\"$(pkglibdir)\""
19 # Must match line above.
20 AM_LDFLAGS = -avoid-version -module
21 AM_CPPFLAGS += -DPKGLIBDIR="\"$(pkglibdir)\""
24 # Pass flags from --enable-silent-libtool
25 LIBTOOL = @LIBTOOL@ @LIBTOOLFLAGS@
28 AM_CPPFLAGS += -DDISTRO="\"@DISTRO@\""
33 #########################
34 # SoX - the application #
35 #########################
38 EXTRA_PROGRAMS = example0 example1 example2 example3 example4 example5 example6 sox_sample_test
39 lib_LTLIBRARIES = libsox.la
40 include_HEADERS = sox.h
43 sox_SOURCES += win32-glob.c win32-glob.h
46 example0_SOURCES = example0.c
47 example1_SOURCES = example1.c
48 example2_SOURCES = example2.c
49 example3_SOURCES = example3.c
50 example4_SOURCES = example4.c
51 example5_SOURCES = example5.c
52 example6_SOURCES = example6.c
53 sox_sample_test_SOURCES = sox_sample_test.c sox_sample_test.h
57 ######################################################
58 # libsox - file format, effects, and utility library #
59 ######################################################
61 # Format handlers and utils source
62 libsox_la_SOURCES = adpcms.c adpcms.h aiff.c aiff.h cvsd.c cvsd.h cvsdfilt.h \
63 g711.c g711.h g721.c g723_24.c g723_40.c g72x.c g72x.h vox.c vox.h \
64 raw.c raw.h formats.c formats.h formats_i.c sox_i.h skelform.c \
65 xmalloc.c xmalloc.h getopt.c \
66 util.c util.h libsox.c libsox_i.c sox-fmt.c soxomp.h
69 libsox_la_SOURCES += \
70 band.h bend.c biquad.c biquad.h biquads.c chorus.c compand.c \
71 compandt.c compandt.h contrast.c dcshift.c delay.c dft_filter.c \
72 dft_filter.h dither.c dither.h divide.c downsample.c earwax.c \
73 echo.c echos.c effects.c effects.h effects_i.c effects_i_dsp.c \
74 fade.c fft4g.c fft4g.h fifo.h fir.c firfit.c flanger.c gain.c \
75 hilbert.c input.c ladspa.h ladspa.c loudness.c mcompand.c \
76 mcompand_xover.h noiseprof.c noisered.c \
77 noisered.h output.c overdrive.c pad.c phaser.c rate.c \
78 rate_filters.h rate_half_fir.h rate_poly_fir0.h rate_poly_fir.h \
79 remix.c repeat.c reverb.c reverse.c silence.c sinc.c skeleff.c \
80 speed.c splice.c stat.c stats.c stretch.c swap.c \
81 synth.c tempo.c tremolo.c trim.c upsample.c vad.c vol.c \
84 libsox_la_SOURCES += spectrogram.c
87 # Libraries required by libsox for file handlers, effects, or utils;
88 # regardless if libltdl is used or not.
89 libsox_la_LIBADD = @PNG_LIBS@
91 libsox_la_LIBADD += @MAGIC_LIBS@
94 libsox_la_LIBADD += @GOMP_LIBS@
96 libsox_la_CFLAGS = @WARN_CFLAGS@
97 libsox_la_LDFLAGS = @APP_LDFLAGS@ -version-info @SHLIB_VERSION@ \
98 -export-symbols-regex '^(sox_.*|lsx_(check_read_params|(close|open)_dllibrary|(debug(_more|_most)?|fail|report|warn)_impl|eof|fail_errno|filelength|find_(enum_(text|value)|file_extension)|getopt(_init)?|lpc10_(create_(de|en)coder_state|(de|en)code)|raw(read|write)|read(_b_buf|buf|chars)|realloc|rewind|seeki|sigfigs3p?|strcasecmp|tell|unreadb|write(b|_b_buf|buf|s)))$$'
101 libsox_la_SOURCES += win32-ltdl.c win32-ltdl.h
105 libsox_la_CFLAGS += $(LTDLINCL)
106 libsox_la_LDFLAGS += $(LIBLTDL)
111 #########################
112 # libsox - File Formats #
113 #########################
115 # Uncomment for bit-rot detection on linux
116 #libsox_la_SOURCES += coreaudio.c sndio.c sunaudio.c
117 #libsox_la_CFLAGS += -Ibit-rot
119 libsox_la_SOURCES += raw-fmt.c s1-fmt.c s2-fmt.c s3-fmt.c \
120 s4-fmt.c u1-fmt.c u2-fmt.c u3-fmt.c u4-fmt.c al-fmt.c la-fmt.c ul-fmt.c \
121 lu-fmt.c 8svx.c aiff-fmt.c aifc-fmt.c au.c avr.c cdr.c cvsd-fmt.c \
122 dvms-fmt.c dat.c hcom.c htk.c maud.c prc.c sf.c smp.c \
123 sounder.c soundtool.c sphere.c tx16w.c voc.c vox-fmt.c ima-fmt.c adpcm.c adpcm.h \
124 ima_rw.c ima_rw.h wav.c wve.c xa.c nulfile.c f4-fmt.c f8-fmt.c gsrt.c
126 libsox_la_LIBADD += @GSM_LIBS@ @LIBGSM_LIBADD@
127 libsox_la_LIBADD += @LPC10_LIBS@ @LIBLPC10_LIBADD@
131 include optional-fmts.am
135 # example programs will need same link options as sox does.
136 example0_LDADD = ${sox_LDADD}
137 example1_LDADD = ${sox_LDADD}
138 example2_LDADD = ${sox_LDADD}
139 example3_LDADD = ${sox_LDADD}
140 example4_LDADD = ${sox_LDADD}
141 example5_LDADD = ${sox_LDADD}
142 example6_LDADD = ${sox_LDADD}
144 EXTRA_DIST = monkey.wav optional-fmts.am \
145 CMakeLists.txt soxconfig.h.cmake \
146 tests.sh testall.sh tests.bat testall.bat test-comments
148 all: sox$(EXEEXT) play$(EXEEXT) rec$(EXEEXT) soxi$(EXEEXT) sox_sample_test$(EXEEXT) example0$(EXEEXT) example1$(EXEEXT) example2$(EXEEXT) example3$(EXEEXT) example4$(EXEEXT) example5$(EXEEXT) example6$(EXEEXT)
150 play$(EXEEXT) rec$(EXEEXT) soxi$(EXEEXT): sox$(EXEEXT)
151 if test "$(PLAYRECLINKS)" = "yes"; then \
152 test -f sox$(EXEEXT) && ( $(RM) $@ && $(LN_S) sox$(EXEEXT) $@ ) || $(LN_S) sox $@; \
156 if test "$(PLAYRECLINKS)" = "yes"; then \
157 cd $(DESTDIR)$(bindir); $(RM) play$(EXEEXT) rec$(EXEEXT); $(LN_S) sox$(EXEEXT) play$(EXEEXT); $(LN_S) sox$(EXEEXT) rec$(EXEEXT); \
159 if test "$(SYMLINKS)" = "yes"; then \
160 cd $(DESTDIR)$(bindir); $(RM) soxi$(EXEEXT); $(LN_S) sox$(EXEEXT) soxi$(EXEEXT); \
164 if test "$(PLAYRECLINKS)" = "yes"; then \
165 cd $(DESTDIR)$(bindir); $(RM) play$(EXTEXT) rec$(EXEEXT); \
167 if test "$(SYMLINKS)" = "yes"; then \
168 cd $(DESTDIR)$(bindir); $(RM) soxi$(EXEEXT); \
172 $(RM) play$(EXEEXT) rec$(EXEEXT) soxi$(EXEEXT)
173 $(RM) sox_sample_test$(EXEEXT)
174 $(RM) example0$(EXEEXT) example1$(EXEEXT) example2$(EXEEXT) example3$(EXEEXT) example4$(EXEEXT) example5$(EXEEXT) example6$(EXEEXT)
182 $(example0_SOURCES) \
183 $(example1_SOURCES) \
184 $(example2_SOURCES) \
185 $(example3_SOURCES) \
186 $(example4_SOURCES) \
187 $(example5_SOURCES) \
188 $(example6_SOURCES) \
189 $(sox_sample_test_SOURCES) \
193 # Ideally we would use the "check" target so that "make distcheck"
194 # would run the test suite, but an uninstalled libltdl build cannot
195 # currently load its formats and effects, so the checks would fail.
197 $(srcdir)/tests.sh --bindir=${bindir} --builddir=${builddir} --srcdir=${srcdir}
198 $(srcdir)/testall.sh --bindir=${bindir} --srcdir=${srcdir}