Commit 4144c941 authored by dmazzoni's avatar dmazzoni

Added Bill Eldridge's changes to get it to work on MingW.


git-svn-id: https://subversion.assembla.com/svn/portaudio/portaudio/trunk@328 0f58301d-fd10-0410-b4af-bbb618454e57
parent b74e0752
......@@ -12,6 +12,7 @@ AR = @AR@
RANLIB = @RANLIB@
INSTALL = @INSTALL@
SHARED_FLAGS = @SHARED_FLAGS@
DLL_LIBS = @DLL_LIBS@
OTHER_OBJS = @OTHER_OBJS@
......@@ -60,7 +61,7 @@ lib/$(PALIB): lib/ $(OBJS) Makefile $(PAINC)
$(RANLIB) lib/$(PALIB)
lib/$(PADLLV): lib/ $(OBJS) Makefile $(PAINC)
$(CC) $(SHARED_FLAGS) -o lib/$(PADLLV) $(OBJS)
$(CC) $(SHARED_FLAGS) -o lib/$(PADLLV) $(OBJS) $(DLL_LIBS)
$(TESTS): bin/%: lib/$(PALIB) Makefile $(PAINC) pa_tests/%.c
$(CC) -o $@ $(CFLAGS) pa_tests/$*.c lib/$(PALIB) $(LIBS)
......
This diff is collapsed.
......@@ -24,6 +24,7 @@ dnl Extra variables we want to substitute
AC_SUBST(OTHER_OBJS)
AC_SUBST(PADLL)
AC_SUBST(SHARED_FLAGS)
AC_SUBST(DLL_LIBS)
dnl Determine the host operating system / platform
AC_CANONICAL_HOST
......@@ -38,6 +39,16 @@ case "${host_os}" in
SHARED_FLAGS="-framework CoreAudio -dynamiclib";
;;
mingw* )
dnl MingW configuration
OTHER_OBJS="pa_win_wmme/pa_win_wmme.o";
LIBS="-lwinmm -lm";
PADLL="portaudio.dll";
SHARED_FLAGS="-shared -mthreads";
DLL_LIBS="-lwinmm";
;;
*)
dnl Unix OSS configuration
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment