]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
bsd make tweak
authorMichael Jerris <mike@jerris.com>
Sun, 18 Mar 2007 17:15:00 +0000 (17:15 +0000)
committerMichael Jerris <mike@jerris.com>
Sun, 18 Mar 2007 17:15:00 +0000 (17:15 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4643 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_portaudio/Makefile

index 18752c669e7b570c4884efb25342fca748a2d837..95e57910ebf100787383fb40c8973983756b2713 100644 (file)
@@ -3,12 +3,13 @@ BASE=../../../..
 PA_DIR=$(BASE)/libs/portaudio
 
 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_LIBADD=$(PALA)
 LOCAL_OBJS=pablio.o pa_ringbuffer.o
+LOCAL_SOURCES=pablio.c pa_ringbuffer.c
 
 include $(BASE)/build/modmake.rules
 
@@ -16,7 +17,4 @@ $(PALA): $(PA_DIR) $(PA_DIR)/.update
        cd $(PA_DIR) && $(MAKE)
        $(TOUCH_TARGET)
 
-pa_ringbuffer.o: pa_ringbuffer.c
-       $(COMPILE) -D__EXTENSION__=1  -c -o $@ $<
-
-pablio.o: pablio.c
+$(LOCAL_OBJS): $(LOCAL_SOURCES)