]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
OSARCH isn't set right but this will build now.
authorBrian West <brian@freeswitch.org>
Mon, 12 Mar 2007 05:13:43 +0000 (05:13 +0000)
committerBrian West <brian@freeswitch.org>
Mon, 12 Mar 2007 05:13:43 +0000 (05:13 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4563 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/asr_tts/mod_cepstral/Makefile
src/mod/asr_tts/mod_cepstral/mod_cepstral.c
src/mod/endpoints/mod_portaudio/Makefile

index f80d618cd7b3e60ccd6f8591841f2b7c6577cefd..3dd720658c16d981da6ee3f9d4bcf5c1e60ed697 100644 (file)
@@ -1,10 +1,9 @@
 # define these targets in your makefile if you wish
 # local_all local_depend local_clean depend_install local_install local_distclean local_extraclean:
-
+OSARCH=$(shell uname -s)
 # and define these variables to imapact your build
 
 ifeq ($(OSARCH),Darwin)
-LOCAL_CFLAGS += -I/Library/Frameworks/swift.framework/Versions/4/Headers
 LOCAL_LDFLAGS += -framework swift
 else
 LOCAL_LDFLAGS += -L/opt/swift/lib -lswift -lceplex_us -lceplang_en -lm
index 6d21d665e0f06f5bd8ce352fa274f2673965658f..a873a7099cfc452d5a396df6da401b30ce9b8803 100644 (file)
 #ifdef __ICC
 #pragma warning (disable:188)
 #endif
-
+#ifdef MACOSX
+#include <swift/swift.h>
+#else
 #include <swift.h>
+#endif
 #include <switch.h>
 
 #define MY_BUF_LEN 1024 * 32
index 198010bbbb2912d0a4751bb356cc3ef03dcab8c4..91834fa81a9a401b5a3013676807323bd6c06d27 100644 (file)
@@ -1,6 +1,6 @@
 # define these targets in your makefile if you wish
 # local_all local_depend local_clean depend_install local_install local_distclean local_extraclean:
-
+OSARCH=$(shell uname -s)
 # and define these variables to imapact your build
 LOCAL_CFLAGS=-I. -I$(BASE)/libs/portaudio/include
 LOCAL_LDFLAGS=$(BASE)/libs/portaudio/lib/libportaudio.la