1
# MinGW specific Makefile for libsndfile.
5
PROGRAMS = sndfile-info.exe sndfile-play.exe sndfile-convert.exe
6
TARGETS = libsndfile.dll $(PROGRAMS) sndfile.pc src/sndfile.h
10
CFLAGS = @CFLAGS@ -Isrc
11
COMPILER_IS_GCC = @COMPILER_IS_GCC@
18
INSTALL_DATA = ${INSTALL} -m 644
19
install_sh = @install_sh@
22
OS_SPECIFIC_CFLAGS = @OS_SPECIFIC_CFLAGS@
23
OS_SPECIFIC_LINKS = @OS_SPECIFIC_LINKS@
26
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
27
PACKAGE_NAME = @PACKAGE_NAME@
28
PACKAGE_STRING = @PACKAGE_STRING@
29
PACKAGE_TARNAME = @PACKAGE_TARNAME@
30
PACKAGE_VERSION = @PACKAGE_VERSION@
34
#====================================================================
38
exec_prefix = @exec_prefix@
39
htmldocdir = @htmldocdir@
40
includedir = @includedir@
42
pkgconfigdir = @libdir@/pkgconfig
45
#====================================================================
51
rm -f $(TARGETS) *.del *.lib src/*.o src/G72x/*.o \
52
src/GSM610/*.o tests/*.o tests/*.exe
55
$(install_sh) -c libsndfile.dll $(libdir)
56
$(install_sh) -c sndfile.pc $(pkgconfigdir)
57
@for prog in $(PROGRAMS); do \
58
echo "installing ... $$prog" ; \
59
$(install_sh) -c "$$prog" $(bindir) ; \
61
$(install_sh) -c src/sndfile.h $(includedir)
64
rm -f $(libdir)/libsndfile.dll
65
rm -f $(pkgconfigdir)/sndfile.pc
66
@for prog in $(PROGRAMS); do \
67
rm -f $(bindir)/"$$prog" ; \
69
rm -f $(includedir)/sndfile.h
71
#====================================================================
77
src/GSM610/gsm_create.o \
78
src/GSM610/gsm_decode.o \
79
src/GSM610/gsm_destroy.o \
80
src/GSM610/gsm_encode.o \
81
src/GSM610/gsm_option.o \
82
src/GSM610/long_term.o \
84
src/GSM610/preprocess.o \
86
src/GSM610/short_term.o \
135
libsndfile.dll libsndfile.lib : $(LINK_OBJS)
136
$(DLLWRAP) --def src/libsndfile.def $(LINK_OBJS) --output-lib libsndfile.lib -o libsndfile.dll
137
$(STRIP) libsndfile.dll
139
sndfile-info.exe : examples/sndfile-info.o libsndfile.lib
142
sndfile-convert.exe : examples/sndfile-convert.o libsndfile.lib
145
sndfile-play.exe : examples/sndfile-play.o libsndfile.lib
146
$(CC) $+ -lwinmm -o $@
148
generate.exe : examples/generate.o libsndfile.lib
151
sndfile.pc : sndfile.pc.in config.status
157
#====================================================================
161
src/test_file_io.exe \
162
src/test_log_printf.exe \
163
tests/sfversion.exe \
164
tests/error_test.exe \
166
tests/ulaw_test.exe \
167
tests/alaw_test.exe \
168
tests/dwvw_test.exe \
169
tests/command_test.exe \
170
tests/floating_point_test.exe \
171
tests/headerless_test.exe \
172
tests/write_read_test.exe \
173
tests/lossy_comp_test.exe \
174
tests/peak_chunk_test.exe \
175
tests/misc_test.exe \
176
tests/string_test.exe \
177
tests/win32_test.exe \
178
tests/stdio_test.exe \
179
tests/stdin_test.exe \
180
tests/stdout_test.exe \
181
tests/pipe_test.exe \
184
check : $(TEST_PROGS)
188
@echo "============================================================"
190
src/test_log_printf.exe
191
@echo "============================================================"
200
tests/command_test.exe ver
201
tests/command_test.exe norm
202
tests/command_test.exe format
203
tests/floating_point_test.exe
204
tests/headerless_test.exe
205
@echo "----------------------------------------------------------------------"
207
@echo "passed common tests"
208
@echo "----------------------------------------------------------------------"
209
tests/write_read_test wav
210
tests/lossy_comp_test wav_ima
211
tests/lossy_comp_test wav_msadpcm
212
tests/lossy_comp_test wav_ulaw
213
tests/lossy_comp_test wav_alaw
214
tests/lossy_comp_test wav_gsm610
215
tests/peak_chunk_test wav
217
tests/string_test wav
218
@echo "----------------------------------------------------------------------"
220
@echo "passed tests on WAV files."
221
@echo "----------------------------------------------------------------------"
222
tests/write_read_test aiff
223
tests/lossy_comp_test aiff_ulaw
224
tests/lossy_comp_test aiff_alaw
225
tests/peak_chunk_test aiff
227
@echo "----------------------------------------------------------------------"
229
@echo " passed tests on AIFF files."
230
@echo "----------------------------------------------------------------------"
231
tests/write_read_test au
232
tests/lossy_comp_test au_ulaw
233
tests/lossy_comp_test au_alaw
234
tests/lossy_comp_test au_g721
235
tests/lossy_comp_test au_g723
237
@echo "----------------------------------------------------------------------"
239
@echo " passed tests on AU files."
240
@echo "----------------------------------------------------------------------"
241
tests/write_read_test raw
242
tests/lossy_comp_test raw_ulaw
243
tests/lossy_comp_test raw_alaw
244
@echo "----------------------------------------------------------------------"
246
@echo " passed tests on RAW (header-less) files."
247
@echo "----------------------------------------------------------------------"
248
tests/write_read_test paf
250
@echo "----------------------------------------------------------------------"
252
@echo " passed tests on PAF files."
253
@echo "----------------------------------------------------------------------"
254
tests/write_read_test svx
256
@echo "----------------------------------------------------------------------"
258
@echo " passed tests on SVX files."
259
@echo "----------------------------------------------------------------------"
260
tests/write_read_test nist
262
@echo "----------------------------------------------------------------------"
264
@echo " passed tests on NIST files."
265
@echo "----------------------------------------------------------------------"
266
tests/write_read_test ircam
267
tests/lossy_comp_test ircam_ulaw
268
tests/lossy_comp_test ircam_alaw
269
tests/misc_test ircam
270
@echo "----------------------------------------------------------------------"
272
@echo " passed tests on IRCAM files."
273
@echo "----------------------------------------------------------------------"
274
tests/write_read_test voc
275
tests/lossy_comp_test voc_ulaw
276
tests/lossy_comp_test voc_alaw
278
@echo "----------------------------------------------------------------------"
280
@echo " passed tests on VOC files."
281
@echo "----------------------------------------------------------------------"
282
tests/write_read_test w64
283
tests/lossy_comp_test w64_ima
284
tests/lossy_comp_test w64_msadpcm
285
tests/lossy_comp_test w64_ulaw
286
tests/lossy_comp_test w64_alaw
287
tests/lossy_comp_test w64_gsm610
289
@echo "----------------------------------------------------------------------"
291
@echo " passed tests on W64 files."
292
@echo "----------------------------------------------------------------------"
293
tests/write_read_test mat4
295
@echo "----------------------------------------------------------------------"
297
@echo " passed tests on MAT4 files."
298
@echo "----------------------------------------------------------------------"
299
tests/write_read_test mat5
301
@echo "----------------------------------------------------------------------"
303
@echo " passed tests on MAT5 files."
304
@echo "----------------------------------------------------------------------"
305
tests/write_read_test htk
307
@echo "----------------------------------------------------------------------"
309
@echo " passed tests on HTK files."
310
@echo "----------------------------------------------------------------------"
311
tests/write_read_test avr
313
@echo "----------------------------------------------------------------------"
315
@echo " passed tests on AVR files."
316
@echo "----------------------------------------------------------------------"
317
@tests/stdio_test.exe
319
@echo "----------------------------------------------------------------------"
321
@echo " passed all tests."
322
@echo "----------------------------------------------------------------------"
324
#====================================================================
327
src/test_file_io.exe : src/file_io.o src/test_file_io.o libsndfile.lib
330
# Special case : test_log_printf.c #includes common.c
331
src/test_log_printf.exe : src/test_log_printf.c src/common.c libsndfile.lib
332
$(CC) $(CFLAGS) -c src/test_log_printf.c -o src/test_log_printf.o
333
$(CC) src/test_log_printf.o libsndfile.lib -o $@
335
tests/sfversion.exe : tests/sfversion.o libsndfile.lib
338
tests/error_test.exe : tests/error_test.o libsndfile.lib
341
tests/pcm_test.exe : tests/pcm_test.o tests/utils.o libsndfile.lib
344
tests/ulaw_test.exe : tests/ulaw_test.o tests/utils.o libsndfile.lib
347
tests/alaw_test.exe : tests/alaw_test.o tests/utils.o libsndfile.lib
350
tests/dwvw_test.exe : tests/dwvw_test.o tests/utils.o libsndfile.lib
353
tests/command_test.exe : tests/command_test.o tests/utils.o libsndfile.lib
356
tests/floating_point_test.exe : tests/floating_point_test.o tests/utils.o tests/dft_cmp.o libsndfile.lib
359
tests/headerless_test.exe : tests/headerless_test.o tests/utils.o libsndfile.lib
362
tests/write_read_test.exe : tests/write_read_test.o tests/utils.o libsndfile.lib
365
tests/lossy_comp_test.exe : tests/lossy_comp_test.o tests/utils.o libsndfile.lib
368
tests/peak_chunk_test.exe : tests/peak_chunk_test.o tests/utils.o libsndfile.lib
371
tests/misc_test.exe : tests/misc_test.o tests/utils.o libsndfile.lib
374
tests/string_test.exe : tests/string_test.o tests/utils.o libsndfile.lib
377
tests/win32_test.exe : tests/win32_test.o
380
tests/stdio_test.exe : tests/stdio_test.o tests/utils.o libsndfile.lib
383
tests/pipe_test.exe : tests/pipe_test.o tests/utils.o libsndfile.lib
386
tests/stdin_test.exe : tests/stdin_test.o tests/utils.o libsndfile.lib
389
tests/stdout_test.exe : tests/stdout_test.o tests/utils.o libsndfile.lib
392
tests/benchmark.exe : tests/benchmark.o libsndfile.lib
396
#====================================================================
397
# Do not edit or modify anything in this comment block.
398
# The arch-tag line is a file identity tag for the GNU Arch
399
# revision control system.
401
# arch-tag: a588878f-6796-4a47-bbef-83a3aaac0983