]> iEval git - audio-libsamplerate.git/blame_incremental - libsamplerate/Win32/Makefile.mingw.in
Bump version and update Changes
[audio-libsamplerate.git] / libsamplerate / Win32 / Makefile.mingw.in
... / ...
CommitLineData
1# MinGW specific Makefile for libsamplerate.
2
3@SET_MAKE@
4
5PROGRAMS = sndfile-resample.exe
6TARGETS = libsamplerate.dll $(PROGRAMS) varispeed-play.exe samplerate.pc
7
8AR = @AR@
9CC = @CC@
10CFLAGS = @CFLAGS@ -Isrc
11COMPILER_IS_GCC = @COMPILER_IS_GCC@
12CPP = @CPP@
13CPPFLAGS = @CPPFLAGS@
14CXX = @CXX@
15DLLTOOL = @DLLTOOL@
16DLLWRAP = @DLLWRAP@
17FFTW3_CFLAGS = @FFTW3_CFLAGS@
18FFTW3_LIBS = @FFTW3_LIBS@
19INSTALL = @INSTALL@
20INSTALL_DATA = ${INSTALL} -m 644
21install_sh = @install_sh@
22LDFLAGS = @LDFLAGS@
23LN_S = @LN_S@
24PEXPORTS = @PEXPORTS@
25PACKAGE = @PACKAGE@
26PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
27PACKAGE_NAME = @PACKAGE_NAME@
28PACKAGE_STRING = @PACKAGE_STRING@
29PACKAGE_TARNAME = @PACKAGE_TARNAME@
30PACKAGE_VERSION = @PACKAGE_VERSION@
31RANLIB = @RANLIB@
32SNDFILE_CFLAGS = -std=c99 @SNDFILE_CFLAGS@
33SNDFILE_LIBS = @SNDFILE_LIBS@
34STRIP = @STRIP@
35
36#====================================================================
37# Target directories.
38
39bindir = @bindir@
40exec_prefix = @exec_prefix@
41htmldocdir = @htmldocdir@
42includedir = @includedir@
43libdir = @libdir@
44pkgconfigdir = @libdir@/pkgconfig
45prefix = @prefix@
46
47#====================================================================
48# Targets
49
50all : $(TARGETS)
51
52clean :
53 rm -f $(TARGETS) *.del *.lib src/*.o tests/*.o tests/*.exe
54
55install : $(TARGETS)
56 $(install_sh) -c libsamplerate.dll $(libdir)
57 $(install_sh) -c samplerate.pc $(pkgconfigdir)
58 @for prog in $(PROGRAMS); do \
59 echo "installing ... $$prog" ; \
60 $(install_sh) -c "$$prog" $(bindir) ; \
61 done;
62 $(install_sh) -c src/samplerate.h $(includedir)
63
64uninstall :
65 rm -f $(libdir)/libsamplerate.dll
66 rm -f $(pkgconfigdir)/samplerate.pc
67 @for prog in $(PROGRAMS); do \
68 echo "removing ... $(bindir)/$$prog" ; \
69 rm -f $(bindir)/"$$prog" ; \
70 done;
71 rm -f $(includedir)/samplerate.h
72
73#====================================================================
74
75LINK_OBJS = \
76 src/src_linear.o \
77 src/src_sinc.o \
78 src/src_zoh.o \
79 src/samplerate.o
80
81libsamplerate.dll libsamplerate.lib : $(LINK_OBJS)
82 $(DLLWRAP) --def Win32/libsamplerate.def $(LINK_OBJS) --output-lib libsamplerate.lib -o libsamplerate.dll
83 $(STRIP) libsamplerate.dll
84
85sndfile-resample.exe : examples/sndfile-resample.c libsamplerate.lib
86 $(CC) $(CFLAGS) $(SNDFILE_CFLAGS) $+ $(SNDFILE_LIBS) -o $@
87
88varispeed-play.exe : examples/varispeed-play.c examples/audio_out.o libsamplerate.lib
89 $(CC) $(CFLAGS) $(SNDFILE_CFLAGS) $+ $(SNDFILE_LIBS) -lwinmm -o $@
90
91examples/audio_out.o : examples/audio_out.c
92 $(CC) $(CFLAGS) $(SNDFILE_CFLAGS) -c $+ -o $@
93
94samplerate.pc : samplerate.pc.in config.status
95 @./config.status $@
96
97config.status :
98 ./configure
99
100#====================================================================
101# Testing programs.
102
103TEST_PROGS = \
104 tests/misc_test.exe \
105 tests/termination_test.exe \
106 tests/simple_test.exe \
107 tests/callback_test.exe \
108 tests/reset_test.exe \
109 tests/multi_channel_test.exe \
110 tests/float_short_test.exe \
111 tests/snr_bw_test.exe
112
113
114check : $(TEST_PROGS)
115 tests/misc_test.exe
116 tests/termination_test.exe
117 tests/simple_test.exe
118 tests/callback_test.exe
119 tests/reset_test.exe
120 tests/multi_channel_test.exe
121 tests/float_short_test.exe
122 tests/snr_bw_test.exe
123 @echo ----------------------------------------------------------------------
124 @echo libsamplerate passed all tests
125 @echo ----------------------------------------------------------------------
126
127#====================================================================
128# Test programs.
129
130tests/misc_test.exe : tests/misc_test.c tests/util.c libsamplerate.lib
131 $(CC) $(CFLAGS) $+ -o $@
132
133tests/termination_test.exe : tests/termination_test.c tests/util.c libsamplerate.lib
134 $(CC) $(CFLAGS) $+ -o $@
135
136tests/simple_test.exe : tests/simple_test.c tests/util.c libsamplerate.lib
137 $(CC) $(CFLAGS) $+ -o $@
138
139tests/callback_test.exe : tests/callback_test.c tests/util.c libsamplerate.lib
140 $(CC) $(CFLAGS) $+ -o $@
141
142tests/reset_test.exe : tests/reset_test.c tests/util.c libsamplerate.lib
143 $(CC) $(CFLAGS) $+ -o $@
144
145tests/float_short_test.exe : tests/float_short_test.c tests/util.c libsamplerate.lib
146 $(CC) $(CFLAGS) $+ -o $@
147
148tests/multi_channel_test.exe : tests/multi_channel_test.c tests/util.c tests/calc_snr.c libsamplerate.lib
149 $(CC) $(CFLAGS) $(FFTW3_CFLAGS) $+ $(FFTW3_LIBS) -o $@
150
151tests/snr_bw_test.exe : tests/snr_bw_test.c tests/util.c tests/calc_snr.c libsamplerate.lib
152 $(CC) $(CFLAGS) $(FFTW3_CFLAGS) $+ $(FFTW3_LIBS) -o $@
153
154# End of Makefile
155#====================================================================
This page took 0.021445 seconds and 4 git commands to generate.