mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-22 03:04:18 +00:00
move all the in tree libs to use subst of the core configure, move all module builds to link with libtool to the .la, static when possible
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4548 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
5312a255a2
commit
ee3fc89f69
37 files changed
+216
-185
No files matched your search
@@ -1,22 +1,25 @@
|
||||
CFLAGS += -I.
|
||||
LDFLAGS += -lportaudio -L$(PREFIX)
|
||||
CFLAGS += -I. -I$(BASE)/libs/portaudio/include
|
||||
MYOBJS = pablio.o pa_ringbuffer.o
|
||||
ifeq ($(OSARCH),Darwin)
|
||||
LDFLAGS += -framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework Carbon
|
||||
endif
|
||||
|
||||
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
|
||||
|
||||
depends:
|
||||
MAKE=$(MAKE) $(BASE)/build/buildlib.sh $(BASE) install portaudio --prefix=$(PREFIX) --with-pic
|
||||
cd $(BASE)/libs/portaudio && $(MAKE)
|
||||
|
||||
%.o: %.c
|
||||
$(CC) -fPIC $(CFLAGS) -c -o $@ $<
|
||||
$(CC) $(CFLAGS) -c -o $@ $<
|
||||
|
||||
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c $(MYOBJS)
|
||||
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
|
||||
$(CC) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(MYOBJS) $(LDFLAGS)
|
||||
$(CC) $(CFLAGS) -c $(MODNAME).c -o $(MODNAME).o
|
||||
$(LINK) $(SOLINK) $(MODNAME).o -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MYOBJS) $(LDFLAGS) $(BASE)/libs/portaudio/lib/libportaudio.la
|
||||
|
||||
|
||||
|
||||
clean:
|
||||
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~
|
||||
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .libs
|
||||
|
||||
install:
|
||||
cp -f $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(PREFIX)/mod
|
||||
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod
|
||||
Reference in new issue
Block a user