git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@150 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2005-12-14 18:11:49 +00:00
parent c01ecc8f20
commit 645e48cb82
4 changed files with 10 additions and 5 deletions

View File

@ -21,7 +21,7 @@ SOLINK=-shared -Xlinker -x
endif endif
AM_LDFLAGS += -L$(PREFIX)/lib #AM_LDFLAGS += -L$(PREFIX)/lib
AM_CFLAGS += -fPIC -Wall AM_CFLAGS += -fPIC -Wall

View File

@ -226,13 +226,14 @@ MAKE = gmake
NAME = freeswitch NAME = freeswitch
PREFIX = $(prefix)/${NAME} PREFIX = $(prefix)/${NAME}
APR_CONFIG = $(prefix)/bin/apr-1-config APR_CONFIG = $(prefix)/bin/apr-1-config
#AM_LDFLAGS += -L$(PREFIX)/lib
AM_CFLAGS = $(shell $(APR_CONFIG) --cflags --cppflags --includes) \ AM_CFLAGS = $(shell $(APR_CONFIG) --cflags --cppflags --includes) \
$(am__append_2) -fPIC -Wall -I$(PWD) -I$(PWD)/src/include \ $(am__append_2) -fPIC -Wall -I$(PWD) -I$(PWD)/src/include \
-I$(PREFIX)/include -DSWITCH_MOD_DIR=\"$(PREFIX)/mod\" \ -I$(PREFIX)/include -DSWITCH_MOD_DIR=\"$(PREFIX)/mod\" \
-DSWITCH_PREFIX_DIR=\"$(PREFIX)\" \ -DSWITCH_PREFIX_DIR=\"$(PREFIX)\" \
-DSWITCH_CONF_DIR=\"$(PREFIX)/conf\" -DSWITCH_CONF_DIR=\"$(PREFIX)/conf\"
AM_LDFLAGS = $(shell $(APR_CONFIG) --link-ld --libs ) $(am__append_1) \ AM_LDFLAGS = $(shell $(APR_CONFIG) --link-ld --libs ) $(am__append_1)
-L$(PREFIX)/lib
OSARCH = $(shell uname -s) OSARCH = $(shell uname -s)
@ISMAC_FALSE@SOLINK = -shared -Xlinker -x @ISMAC_FALSE@SOLINK = -shared -Xlinker -x
@ISMAC_TRUE@SOLINK = -dynamic -bundle -undefined suppress -force_flat_namespace @ISMAC_TRUE@SOLINK = -dynamic -bundle -undefined suppress -force_flat_namespace

View File

@ -1,8 +1,11 @@
LDFLAGS += -lportaudio -L/usr/local/lib LDFLAGS += -lportaudio -L/usr/local/lib
MYOBJS = pablio.o ringbuffer.o
%.o: %.c
$(CC) -fPIC $(CFLAGS) -c -o $@ $<
$(MOD).so: $(MOD).c $(MOD).so: $(MOD).c $(MYOBJS)
$(CC) $(CFLAGS) -fPIC -c $(MOD).c -o $(MOD).o $(CC) $(CFLAGS) -fPIC -c $(MOD).c -o $(MOD).o
$(CC) $(SOLINK) -o $(MOD).so $(MOD).o $(LDFLAGS) $(CC) $(SOLINK) -o $(MOD).so $(MOD).o $(MYOBJS) $(LDFLAGS)
all: $(MOD).so all: $(MOD).so

View File

@ -40,6 +40,7 @@ extern "C"
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* *
*/ */
#define PortAudioStream PaStream
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <math.h> #include <math.h>