From d60866b9bc32a8ce52e7a4123175d4bc1e179dc1 Mon Sep 17 00:00:00 2001 From: Brian West Date: Mon, 12 Mar 2007 05:13:43 +0000 Subject: [PATCH] OSARCH isn't set right but this will build now. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4563 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/asr_tts/mod_cepstral/Makefile | 3 +-- src/mod/asr_tts/mod_cepstral/mod_cepstral.c | 5 ++++- src/mod/endpoints/mod_portaudio/Makefile | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/mod/asr_tts/mod_cepstral/Makefile b/src/mod/asr_tts/mod_cepstral/Makefile index f80d618cd7..3dd720658c 100644 --- a/src/mod/asr_tts/mod_cepstral/Makefile +++ b/src/mod/asr_tts/mod_cepstral/Makefile @@ -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 diff --git a/src/mod/asr_tts/mod_cepstral/mod_cepstral.c b/src/mod/asr_tts/mod_cepstral/mod_cepstral.c index 6d21d665e0..a873a7099c 100644 --- a/src/mod/asr_tts/mod_cepstral/mod_cepstral.c +++ b/src/mod/asr_tts/mod_cepstral/mod_cepstral.c @@ -38,8 +38,11 @@ #ifdef __ICC #pragma warning (disable:188) #endif - +#ifdef MACOSX +#include +#else #include +#endif #include #define MY_BUF_LEN 1024 * 32 diff --git a/src/mod/endpoints/mod_portaudio/Makefile b/src/mod/endpoints/mod_portaudio/Makefile index 198010bbbb..91834fa81a 100644 --- a/src/mod/endpoints/mod_portaudio/Makefile +++ b/src/mod/endpoints/mod_portaudio/Makefile @@ -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