lame
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@150 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
c01ecc8f20
commit
645e48cb82
|
@ -21,7 +21,7 @@ SOLINK=-shared -Xlinker -x
|
|||
endif
|
||||
|
||||
|
||||
AM_LDFLAGS += -L$(PREFIX)/lib
|
||||
#AM_LDFLAGS += -L$(PREFIX)/lib
|
||||
|
||||
|
||||
AM_CFLAGS += -fPIC -Wall
|
||||
|
|
|
@ -226,13 +226,14 @@ MAKE = gmake
|
|||
NAME = freeswitch
|
||||
PREFIX = $(prefix)/${NAME}
|
||||
APR_CONFIG = $(prefix)/bin/apr-1-config
|
||||
|
||||
#AM_LDFLAGS += -L$(PREFIX)/lib
|
||||
AM_CFLAGS = $(shell $(APR_CONFIG) --cflags --cppflags --includes) \
|
||||
$(am__append_2) -fPIC -Wall -I$(PWD) -I$(PWD)/src/include \
|
||||
-I$(PREFIX)/include -DSWITCH_MOD_DIR=\"$(PREFIX)/mod\" \
|
||||
-DSWITCH_PREFIX_DIR=\"$(PREFIX)\" \
|
||||
-DSWITCH_CONF_DIR=\"$(PREFIX)/conf\"
|
||||
AM_LDFLAGS = $(shell $(APR_CONFIG) --link-ld --libs ) $(am__append_1) \
|
||||
-L$(PREFIX)/lib
|
||||
AM_LDFLAGS = $(shell $(APR_CONFIG) --link-ld --libs ) $(am__append_1)
|
||||
OSARCH = $(shell uname -s)
|
||||
@ISMAC_FALSE@SOLINK = -shared -Xlinker -x
|
||||
@ISMAC_TRUE@SOLINK = -dynamic -bundle -undefined suppress -force_flat_namespace
|
||||
|
|
|
@ -1,8 +1,11 @@
|
|||
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) $(SOLINK) -o $(MOD).so $(MOD).o $(LDFLAGS)
|
||||
$(CC) $(SOLINK) -o $(MOD).so $(MOD).o $(MYOBJS) $(LDFLAGS)
|
||||
|
||||
all: $(MOD).so
|
||||
|
||||
|
|
|
@ -40,6 +40,7 @@ extern "C"
|
|||
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*
|
||||
*/
|
||||
#define PortAudioStream PaStream
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <math.h>
|
||||
|
|
Loading…
Reference in New Issue