autotools work fine now.
Unified · Split
| @@ -1,160 +0,0 @@ | ||
| 1 | −# MinGW specific Makefile for libsamplerate. | |
| 2 | − | |
| 3 | −@SET_MAKE@ | |
| 4 | − | |
| 5 | −PROGRAMS = sndfile-resample.exe | |
| 6 | −TARGETS = libsamplerate.dll $(PROGRAMS) varispeed-play.exe samplerate.pc | |
| 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 | −FFTW3_CFLAGS = @FFTW3_CFLAGS@ | |
| 18 | −FFTW3_LIBS = @FFTW3_LIBS@ | |
| 19 | −INSTALL = @INSTALL@ | |
| 20 | −INSTALL_DATA = ${INSTALL} -m 644 | |
| 21 | −install_sh = @install_sh@ | |
| 22 | −LDFLAGS = @LDFLAGS@ | |
| 23 | −LN_S = @LN_S@ | |
| 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 | −SNDFILE_CFLAGS = -std=c99 @SNDFILE_CFLAGS@ | |
| 33 | −SNDFILE_LIBS = @SNDFILE_LIBS@ | |
| 34 | −STRIP = @STRIP@ | |
| 35 | − | |
| 36 | −#==================================================================== | |
| 37 | −# Target directories. | |
| 38 | − | |
| 39 | −bindir = @bindir@ | |
| 40 | −exec_prefix = @exec_prefix@ | |
| 41 | −htmldocdir = @htmldocdir@ | |
| 42 | −includedir = @includedir@ | |
| 43 | −libdir = @libdir@ | |
| 44 | −pkgconfigdir = @libdir@/pkgconfig | |
| 45 | −prefix = @prefix@ | |
| 46 | − | |
| 47 | −#==================================================================== | |
| 48 | −# Targets | |
| 49 | − | |
| 50 | −all : $(TARGETS) | |
| 51 | − | |
| 52 | −clean : | |
| 53 | − rm -f $(TARGETS) *.del *.lib src/*.o tests/*.o tests/*.exe | |
| 54 | − | |
| 55 | −install : $(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 | − | |
| 64 | −uninstall : | |
| 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 | − | |
| 75 | −LINK_OBJS = \ | |
| 76 | − src/src_linear.o \ | |
| 77 | − src/src_sinc.o \ | |
| 78 | − src/src_zoh.o \ | |
| 79 | − src/samplerate.o | |
| 80 | − | |
| 81 | −libsamplerate.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 | − | |
| 85 | −sndfile-resample.exe : examples/sndfile-resample.c libsamplerate.lib | |
| 86 | − $(CC) $(CFLAGS) $(SNDFILE_CFLAGS) $+ $(SNDFILE_LIBS) -o $@ | |
| 87 | − | |
| 88 | −varispeed-play.exe : examples/varispeed-play.c examples/audio_out.o libsamplerate.lib | |
| 89 | − $(CC) $(CFLAGS) $(SNDFILE_CFLAGS) $+ $(SNDFILE_LIBS) -lwinmm -o $@ | |
| 90 | − | |
| 91 | −examples/audio_out.o : examples/audio_out.c | |
| 92 | − $(CC) $(CFLAGS) $(SNDFILE_CFLAGS) -c $+ -o $@ | |
| 93 | − | |
| 94 | −samplerate.pc : samplerate.pc.in config.status | |
| 95 | − @./config.status $@ | |
| 96 | − | |
| 97 | −config.status : | |
| 98 | − ./configure | |
| 99 | − | |
| 100 | −#==================================================================== | |
| 101 | −# Testing programs. | |
| 102 | − | |
| 103 | −TEST_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/clone_test.exe \ | |
| 110 | − tests/multi_channel_test.exe \ | |
| 111 | − tests/float_short_test.exe \ | |
| 112 | − tests/snr_bw_test.exe | |
| 113 | − | |
| 114 | − | |
| 115 | −check : $(TEST_PROGS) | |
| 116 | − tests/misc_test.exe | |
| 117 | − tests/termination_test.exe | |
| 118 | − tests/simple_test.exe | |
| 119 | − tests/callback_test.exe | |
| 120 | − tests/reset_test.exe | |
| 121 | − tests/clone_test.exe | |
| 122 | − tests/multi_channel_test.exe | |
| 123 | − tests/float_short_test.exe | |
| 124 | − tests/snr_bw_test.exe | |
| 125 | − @echo ---------------------------------------------------------------------- | |
| 126 | − @echo libsamplerate passed all tests | |
| 127 | − @echo ---------------------------------------------------------------------- | |
| 128 | − | |
| 129 | −#==================================================================== | |
| 130 | −# Test programs. | |
| 131 | − | |
| 132 | −tests/misc_test.exe : tests/misc_test.c tests/util.c libsamplerate.lib | |
| 133 | − $(CC) $(CFLAGS) $+ -o $@ | |
| 134 | − | |
| 135 | −tests/termination_test.exe : tests/termination_test.c tests/util.c libsamplerate.lib | |
| 136 | − $(CC) $(CFLAGS) $+ -o $@ | |
| 137 | − | |
| 138 | −tests/simple_test.exe : tests/simple_test.c tests/util.c libsamplerate.lib | |
| 139 | − $(CC) $(CFLAGS) $+ -o $@ | |
| 140 | − | |
| 141 | −tests/callback_test.exe : tests/callback_test.c tests/util.c libsamplerate.lib | |
| 142 | − $(CC) $(CFLAGS) $+ -o $@ | |
| 143 | − | |
| 144 | −tests/reset_test.exe : tests/reset_test.c tests/util.c libsamplerate.lib | |
| 145 | − $(CC) $(CFLAGS) $+ -o $@ | |
| 146 | − | |
| 147 | −tests/clone_test.exe : tests/clone_test.c tests/util.c libsamplerate.lib | |
| 148 | − $(CC) $(CFLAGS) $+ -o $@ | |
| 149 | − | |
| 150 | −tests/float_short_test.exe : tests/float_short_test.c tests/util.c libsamplerate.lib | |
| 151 | − $(CC) $(CFLAGS) $+ -o $@ | |
| 152 | − | |
| 153 | −tests/multi_channel_test.exe : tests/multi_channel_test.c tests/util.c tests/calc_snr.c libsamplerate.lib | |
| 154 | − $(CC) $(CFLAGS) $(FFTW3_CFLAGS) $+ $(FFTW3_LIBS) -o $@ | |
| 155 | − | |
| 156 | −tests/snr_bw_test.exe : tests/snr_bw_test.c tests/util.c tests/calc_snr.c libsamplerate.lib | |
| 157 | − $(CC) $(CFLAGS) $(FFTW3_CFLAGS) $+ $(FFTW3_LIBS) -o $@ | |
| 158 | − | |
| 159 | −# End of Makefile | |
| 160 | −#==================================================================== | |
| @@ -290,7 +290,6 @@ AC_SUBST(OS_SPECIFIC_LINKS) · 289 unmodified lines | ||
| 290 | 290 | AC_CONFIG_FILES([ |
| 291 | 291 | Makefile |
| 292 | 292 | src/Version_script |
| 293 | − Win32/Makefile.mingw | |
| 294 | 293 | libsamplerate.spec |
| 295 | 294 | samplerate.pc |
| 296 | 295 | ]) |