bsd make tweak

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4643 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2007-03-18 17:15:00 +00:00
parent d1436a4b33
commit 6258af952e
1 changed files with 3 additions and 5 deletions

View File

@ -3,12 +3,13 @@ BASE=../../../..
PA_DIR=$(BASE)/libs/portaudio PA_DIR=$(BASE)/libs/portaudio
PALA=$(PA_DIR)/lib/libportaudio.la PALA=$(PA_DIR)/lib/libportaudio.la
LOCAL_CFLAGS=-I. -I$(PA_DIR)/include LOCAL_CFLAGS=-I. -I$(PA_DIR)/include -D__EXTENSION__=1
LOCAL_INSERT_LDFLAGS=if test $$osarch = "Darwin" ; then echo "-framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework Carbon" ; fi ; LOCAL_INSERT_LDFLAGS=if test $$osarch = "Darwin" ; then echo "-framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework Carbon" ; fi ;
LOCAL_LIBADD=$(PALA) LOCAL_LIBADD=$(PALA)
LOCAL_OBJS=pablio.o pa_ringbuffer.o LOCAL_OBJS=pablio.o pa_ringbuffer.o
LOCAL_SOURCES=pablio.c pa_ringbuffer.c
include $(BASE)/build/modmake.rules include $(BASE)/build/modmake.rules
@ -16,7 +17,4 @@ $(PALA): $(PA_DIR) $(PA_DIR)/.update
cd $(PA_DIR) && $(MAKE) cd $(PA_DIR) && $(MAKE)
$(TOUCH_TARGET) $(TOUCH_TARGET)
pa_ringbuffer.o: pa_ringbuffer.c $(LOCAL_OBJS): $(LOCAL_SOURCES)
$(COMPILE) -D__EXTENSION__=1 -c -o $@ $<
pablio.o: pablio.c