Commit b74e0752 authored by dmazzoni's avatar dmazzoni

Fixed the configure/make scripts to work on Mac OS X


git-svn-id: https://subversion.assembla.com/svn/portaudio/portaudio/trunk@327 0f58301d-fd10-0410-b4af-bbb618454e57
parent e034b4bb
......@@ -4,19 +4,20 @@
# Dominic Mazzoni
#
PREFIX = @prefix@
CC = @CC@
CFLAGS = @CFLAGS@ -Ipa_common
LIBS = @LIBS@
AR = @AR@
RANLIB = @RANLIB@
INSTALL = @INSTALL@
PREFIX = @prefix@
SHARED_FLAGS = @SHARED_FLAGS@
OTHER_OBJS = @OTHER_OBJS@
PALIB = libportaudio.a
PADLL = libportaudio.so
PADLLV = libportaudio.so.0.0.18
PADLL = @PADLL@
PADLLV = $(PADLL).0.0.18
PAINC = pa_common/portaudio.h
COMMON_OBJS = \
......@@ -59,7 +60,7 @@ lib/$(PALIB): lib/ $(OBJS) Makefile $(PAINC)
$(RANLIB) lib/$(PALIB)
lib/$(PADLLV): lib/ $(OBJS) Makefile $(PAINC)
$(CC) -shared -o lib/$(PADLLV) $(OBJS)
$(CC) $(SHARED_FLAGS) -o lib/$(PADLLV) $(OBJS)
$(TESTS): bin/%: lib/$(PALIB) Makefile $(PAINC) pa_tests/%.c
$(CC) -o $@ $(CFLAGS) pa_tests/$*.c lib/$(PALIB) $(LIBS)
......
This diff is collapsed.
......@@ -22,7 +22,8 @@ fi
dnl Extra variables we want to substitute
AC_SUBST(OTHER_OBJS)
TARGETS="tests"
AC_SUBST(PADLL)
AC_SUBST(SHARED_FLAGS)
dnl Determine the host operating system / platform
AC_CANONICAL_HOST
......@@ -32,7 +33,9 @@ case "${host_os}" in
dnl Mac OS X configuration
OTHER_OBJS="pa_mac_core/pa_mac_core.o";
LIBS="-lm";
LIBS="-framework CoreAudio -lm";
PADLL="libportaudio.dylib";
SHARED_FLAGS="-framework CoreAudio -dynamiclib";
;;
*)
......@@ -44,6 +47,8 @@ case "${host_os}" in
OTHER_OBJS="pa_unix_oss/pa_unix_oss.o";
LIBS="-lm -lpthread";
PADLL="libportaudio.so";
SHARED_FLAGS="-shared";
esac
AC_OUTPUT([Makefile])
......
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