~ubuntu-branches/ubuntu/gutsy/audacity/gutsy-backports

« back to all changes in this revision

Viewing changes to lib-src/libsndfile/Win32/Makefile.mingw.in

  • Committer: Bazaar Package Importer
  • Author(s): John Dong
  • Date: 2008-02-18 21:58:19 UTC
  • mfrom: (13.1.2 hardy)
  • Revision ID: james.westby@ubuntu.com-20080218215819-tmbcf1rx238r8gdv
Tags: 1.3.4-1.1ubuntu1~gutsy1
Automated backport upload; no source changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# MinGW specific Makefile for libsndfile.
2
 
 
3
 
@SET_MAKE@
4
 
 
5
 
PROGRAMS = sndfile-info.exe sndfile-play.exe sndfile-convert.exe
6
 
TARGETS = libsndfile.dll $(PROGRAMS) sndfile.pc src/sndfile.h
7
 
 
8
 
AR = @AR@
9
 
CC = @CC@
10
 
CFLAGS = @CFLAGS@ -Isrc
11
 
COMPILER_IS_GCC = @COMPILER_IS_GCC@
12
 
CPP = @CPP@
13
 
CPPFLAGS = @CPPFLAGS@
14
 
CXX = @CXX@
15
 
DLLTOOL = @DLLTOOL@
16
 
DLLWRAP = @DLLWRAP@
17
 
INSTALL = @INSTALL@
18
 
INSTALL_DATA = ${INSTALL} -m 644
19
 
install_sh = @install_sh@
20
 
LDFLAGS = @LDFLAGS@
21
 
LN_S = @LN_S@
22
 
OS_SPECIFIC_CFLAGS = @OS_SPECIFIC_CFLAGS@
23
 
OS_SPECIFIC_LINKS = @OS_SPECIFIC_LINKS@
24
 
PEXPORTS = @PEXPORTS@
25
 
PACKAGE = @PACKAGE@
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@
31
 
RANLIB = @RANLIB@
32
 
STRIP = @STRIP@
33
 
 
34
 
#====================================================================
35
 
# Target directories.
36
 
 
37
 
bindir = @bindir@
38
 
exec_prefix = @exec_prefix@
39
 
htmldocdir = @htmldocdir@
40
 
includedir = @includedir@
41
 
libdir = @libdir@
42
 
pkgconfigdir = @libdir@/pkgconfig
43
 
prefix = @prefix@
44
 
 
45
 
#====================================================================
46
 
# Targets
47
 
 
48
 
all : $(TARGETS)
49
 
 
50
 
clean :
51
 
        rm -f  $(TARGETS) *.del *.lib src/*.o src/G72x/*.o \
52
 
                src/GSM610/*.o tests/*.o tests/*.exe
53
 
 
54
 
install : $(TARGETS)
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) ; \
60
 
                done;
61
 
        $(install_sh) -c src/sndfile.h $(includedir)
62
 
 
63
 
uninstall :
64
 
        rm -f $(libdir)/libsndfile.dll
65
 
        rm -f $(pkgconfigdir)/sndfile.pc
66
 
        @for prog in $(PROGRAMS); do \
67
 
                rm -f $(bindir)/"$$prog" ; \
68
 
                done;
69
 
        rm -f $(includedir)/sndfile.h
70
 
 
71
 
#====================================================================
72
 
 
73
 
LINK_OBJS = \
74
 
        src/GSM610/add.o \
75
 
        src/GSM610/code.o \
76
 
        src/GSM610/decode.o \
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 \
83
 
        src/GSM610/lpc.o \
84
 
        src/GSM610/preprocess.o \
85
 
        src/GSM610/rpe.o \
86
 
        src/GSM610/short_term.o \
87
 
        src/GSM610/table.o \
88
 
        src/G72x/g721.o \
89
 
        src/G72x/g723_16.o \
90
 
        src/G72x/g723_24.o \
91
 
        src/G72x/g723_40.o \
92
 
        src/G72x/g72x.o \
93
 
        src/aiff.o \
94
 
        src/alaw.o \
95
 
        src/au.o \
96
 
        src/au_g72x.o \
97
 
        src/avr.o \
98
 
        src/common.o \
99
 
        src/double64.o \
100
 
        src/dwvw.o \
101
 
        src/file_io.o \
102
 
        src/dither.o \
103
 
        src/float32.o \
104
 
        src/command.o \
105
 
        src/strings.o \
106
 
        src/ima_adpcm.o \
107
 
        src/ms_adpcm.o \
108
 
        src/nist.o \
109
 
        src/ircam.o \
110
 
        src/paf.o \
111
 
        src/pcm.o \
112
 
        src/raw.o \
113
 
        src/rx2.o \
114
 
        src/sd2.o \
115
 
        src/sndfile.o \
116
 
        src/svx.o \
117
 
        src/txw.o \
118
 
        src/sds.o \
119
 
        src/ulaw.o \
120
 
        src/voc.o \
121
 
        src/w64.o \
122
 
        src/wav.o \
123
 
        src/gsm610.o \
124
 
        src/wav_w64.o \
125
 
        src/dwd.o \
126
 
        src/wve.o \
127
 
        src/mat4.o \
128
 
        src/mat5.o \
129
 
        src/vox_adpcm.o \
130
 
        src/ogg.o \
131
 
        src/pvf.o \
132
 
        src/xi.o \
133
 
        src/htk.o
134
 
 
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
138
 
 
139
 
sndfile-info.exe : examples/sndfile-info.o libsndfile.lib
140
 
        $(CC) $+ -o $@
141
 
 
142
 
sndfile-convert.exe : examples/sndfile-convert.o libsndfile.lib
143
 
        $(CC) $+ -o $@
144
 
 
145
 
sndfile-play.exe : examples/sndfile-play.o libsndfile.lib
146
 
        $(CC) $+ -lwinmm -o $@
147
 
 
148
 
generate.exe : examples/generate.o libsndfile.lib
149
 
        $(CC) $+ -o $@
150
 
 
151
 
sndfile.pc : sndfile.pc.in config.status
152
 
        @./config.status $@
153
 
 
154
 
config.status :
155
 
        ./configure
156
 
 
157
 
#====================================================================
158
 
# Testing programs.
159
 
 
160
 
TEST_PROGS = \
161
 
        src/test_file_io.exe \
162
 
        src/test_log_printf.exe \
163
 
        tests/sfversion.exe \
164
 
        tests/error_test.exe \
165
 
        tests/pcm_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 \
182
 
        tests/benchmark.exe
183
 
 
184
 
check : $(TEST_PROGS)
185
 
        @echo
186
 
        @echo
187
 
        @echo
188
 
        @echo "============================================================"
189
 
        src/test_file_io.exe
190
 
        src/test_log_printf.exe
191
 
        @echo "============================================================"
192
 
        @echo
193
 
        @echo
194
 
        @echo
195
 
        tests/error_test.exe
196
 
        tests/pcm_test.exe
197
 
        tests/ulaw_test.exe
198
 
        tests/alaw_test.exe
199
 
        tests/dwvw_test.exe
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 "----------------------------------------------------------------------"
206
 
        @tests/sfversion.exe
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
216
 
        tests/misc_test wav
217
 
        tests/string_test wav
218
 
        @echo "----------------------------------------------------------------------"
219
 
        @tests/sfversion.exe
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
226
 
        tests/misc_test aiff
227
 
        @echo "----------------------------------------------------------------------"
228
 
        @tests/sfversion.exe
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
236
 
        tests/misc_test au
237
 
        @echo "----------------------------------------------------------------------"
238
 
        @tests/sfversion.exe
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 "----------------------------------------------------------------------"
245
 
        @tests/sfversion.exe
246
 
        @echo " passed tests on RAW (header-less) files."
247
 
        @echo "----------------------------------------------------------------------"
248
 
        tests/write_read_test paf
249
 
        tests/misc_test paf
250
 
        @echo "----------------------------------------------------------------------"
251
 
        @tests/sfversion.exe
252
 
        @echo " passed tests on PAF files."
253
 
        @echo "----------------------------------------------------------------------"
254
 
        tests/write_read_test svx
255
 
        tests/misc_test svx
256
 
        @echo "----------------------------------------------------------------------"
257
 
        @tests/sfversion.exe
258
 
        @echo " passed tests on SVX files."
259
 
        @echo "----------------------------------------------------------------------"
260
 
        tests/write_read_test nist
261
 
        tests/misc_test nist
262
 
        @echo "----------------------------------------------------------------------"
263
 
        @tests/sfversion.exe
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 "----------------------------------------------------------------------"
271
 
        @tests/sfversion.exe
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
277
 
        tests/misc_test voc
278
 
        @echo "----------------------------------------------------------------------"
279
 
        @tests/sfversion.exe
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
288
 
        tests/misc_test w64
289
 
        @echo "----------------------------------------------------------------------"
290
 
        @tests/sfversion.exe
291
 
        @echo " passed tests on W64 files."
292
 
        @echo "----------------------------------------------------------------------"
293
 
        tests/write_read_test mat4
294
 
        tests/misc_test mat4
295
 
        @echo "----------------------------------------------------------------------"
296
 
        @tests/sfversion.exe
297
 
        @echo " passed tests on MAT4 files."
298
 
        @echo "----------------------------------------------------------------------"
299
 
        tests/write_read_test mat5
300
 
        tests/misc_test mat5
301
 
        @echo "----------------------------------------------------------------------"
302
 
        @tests/sfversion.exe
303
 
        @echo " passed tests on MAT5 files."
304
 
        @echo "----------------------------------------------------------------------"
305
 
        tests/write_read_test htk
306
 
        tests/misc_test htk
307
 
        @echo "----------------------------------------------------------------------"
308
 
        @tests/sfversion.exe
309
 
        @echo " passed tests on HTK files."
310
 
        @echo "----------------------------------------------------------------------"
311
 
        tests/write_read_test avr
312
 
        tests/misc_test avr
313
 
        @echo "----------------------------------------------------------------------"
314
 
        @tests/sfversion.exe
315
 
        @echo " passed tests on AVR files."
316
 
        @echo "----------------------------------------------------------------------"
317
 
        @tests/stdio_test.exe
318
 
        @tests/pipe_test.exe
319
 
        @echo "----------------------------------------------------------------------"
320
 
        @tests/sfversion.exe
321
 
        @echo " passed all tests."
322
 
        @echo "----------------------------------------------------------------------"
323
 
 
324
 
#====================================================================
325
 
# Test programs.
326
 
 
327
 
src/test_file_io.exe : src/file_io.o src/test_file_io.o libsndfile.lib
328
 
        $(CC) $+ -o $@
329
 
 
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 $@
334
 
 
335
 
tests/sfversion.exe : tests/sfversion.o libsndfile.lib
336
 
        $(CC) $+ -o $@
337
 
 
338
 
tests/error_test.exe : tests/error_test.o libsndfile.lib
339
 
        $(CC) $+ -o $@
340
 
 
341
 
tests/pcm_test.exe : tests/pcm_test.o tests/utils.o libsndfile.lib
342
 
        $(CC) $+ -o $@
343
 
 
344
 
tests/ulaw_test.exe : tests/ulaw_test.o tests/utils.o libsndfile.lib
345
 
        $(CC) $+ -o $@
346
 
 
347
 
tests/alaw_test.exe : tests/alaw_test.o tests/utils.o libsndfile.lib
348
 
        $(CC) $+ -o $@
349
 
 
350
 
tests/dwvw_test.exe : tests/dwvw_test.o tests/utils.o libsndfile.lib
351
 
        $(CC) $+ -o $@
352
 
 
353
 
tests/command_test.exe : tests/command_test.o tests/utils.o libsndfile.lib
354
 
        $(CC) $+ -o $@
355
 
 
356
 
tests/floating_point_test.exe : tests/floating_point_test.o tests/utils.o tests/dft_cmp.o libsndfile.lib
357
 
        $(CC) $+ -o $@
358
 
 
359
 
tests/headerless_test.exe : tests/headerless_test.o tests/utils.o libsndfile.lib
360
 
        $(CC) $+ -o $@
361
 
 
362
 
tests/write_read_test.exe : tests/write_read_test.o tests/utils.o libsndfile.lib
363
 
        $(CC) $+ -o $@
364
 
 
365
 
tests/lossy_comp_test.exe : tests/lossy_comp_test.o tests/utils.o libsndfile.lib
366
 
        $(CC) $+ -o $@
367
 
 
368
 
tests/peak_chunk_test.exe : tests/peak_chunk_test.o tests/utils.o libsndfile.lib
369
 
        $(CC) $+ -o $@
370
 
 
371
 
tests/misc_test.exe : tests/misc_test.o tests/utils.o libsndfile.lib
372
 
        $(CC) $+ -o $@
373
 
 
374
 
tests/string_test.exe : tests/string_test.o tests/utils.o libsndfile.lib
375
 
        $(CC) $+ -o $@
376
 
 
377
 
tests/win32_test.exe : tests/win32_test.o
378
 
        $(CC) $+ -o $@
379
 
 
380
 
tests/stdio_test.exe : tests/stdio_test.o tests/utils.o libsndfile.lib
381
 
        $(CC) $+ -o $@
382
 
 
383
 
tests/pipe_test.exe : tests/pipe_test.o tests/utils.o libsndfile.lib
384
 
        $(CC) $+ -o $@
385
 
 
386
 
tests/stdin_test.exe : tests/stdin_test.o tests/utils.o libsndfile.lib
387
 
        $(CC) $+ -o $@
388
 
 
389
 
tests/stdout_test.exe : tests/stdout_test.o tests/utils.o libsndfile.lib
390
 
        $(CC) $+ -o $@
391
 
 
392
 
tests/benchmark.exe : tests/benchmark.o libsndfile.lib
393
 
        $(CC) $+ -o $@
394
 
 
395
 
# End of Makefile
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.
400
 
#
401
 
# arch-tag: a588878f-6796-4a47-bbef-83a3aaac0983