mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-14 15:24:13 +00:00
an attempt to simplify the module make files. More changes to come on the modules building soon
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4562 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
52b40252ef
commit
514bde18c7
45 files changed
+461
-634
No files matched your search
@@ -1,24 +1,12 @@
|
||||
ifeq ($(shell ls -d $(BASE)/libs/amr),$(BASE)/libs/amr)
|
||||
|
||||
CFLAGS += -I$(PREFIX)/include/amr
|
||||
LDFLAGS +=-lamr
|
||||
LOCAL_CFLAGS += -I$(PREFIX)/include/amr
|
||||
LOCAL_LDFLAGS +=-lamr
|
||||
|
||||
else
|
||||
|
||||
CFLAGS += -DAMR_PASSTHROUGH
|
||||
LOCAL_CFLAGS += -DAMR_PASSTHROUGH
|
||||
|
||||
endif
|
||||
|
||||
all: $(MODNAME).$(DYNAMIC_LIB_EXTEN)
|
||||
|
||||
depends:
|
||||
|
||||
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
|
||||
$(CC) $(CFLAGS) -fPIC -c $(MODNAME).c -o $(MODNAME).o
|
||||
$(LINK) $(SOLINK) -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(MODNAME).o $(LDFLAGS)
|
||||
|
||||
clean:
|
||||
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .libs
|
||||
|
||||
install:
|
||||
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod
|
||||
include $(BASE)/build/modmake.rules
|
||||
Reference in new issue
Block a user