git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@148 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2005-12-14 16:41:20 +00:00
parent 6b2a156651
commit 905d424939
1 changed files with 9 additions and 1 deletions

View File

@ -1,9 +1,17 @@
#CFLAGS += -I/usr/src/common/src
LDFLAGS += -leXosip2 -ljrtp4c
OSARCH=$(shell uname -s)
ifeq ($(OSARCH),Darwin)
LINKER=g++
else
LINKER=$(CC)
endif
$(MOD).so: $(MOD).c
$(CC) $(CFLAGS) -fPIC -c $(MOD).c -o $(MOD).o
$(CC) $(SOLINK) -o $(MOD).so $(MOD).o $(LDFLAGS)
$(LINKER) $(SOLINK) -o $(MOD).so $(MOD).o $(LDFLAGS)
all: $(MOD).so