mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-14 01:49:05 +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,16 +1,11 @@
|
||||
CFLAGS += -I$(BASE)/libs/codec/ilbc/src
|
||||
# define these targets in your makefile if you wish
|
||||
# local_all local_depend local_clean depend_install local_install local_distclean local_extraclean:
|
||||
|
||||
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
|
||||
# and define these variables to imapact your build
|
||||
LOCAL_CFLAGS=-I$(BASE)/libs/codec/ilbc/src
|
||||
LOCAL_LDFLAGS=$(BASE)/libs/codec/ilbc/libilbc.la
|
||||
LOCAL_OBJS=
|
||||
include $(BASE)/build/modmake.rules
|
||||
|
||||
depends:
|
||||
local_depend:
|
||||
cd $(BASE)/libs/codec/ilbc && $(MAKE)
|
||||
|
||||
$(MODNAME).$(DYNAMIC_LIB_EXTEN): $(MODNAME).c
|
||||
$(CC) $(CFLAGS) -c $(MODNAME).c -o $(MODNAME).o
|
||||
$(LINK) $(SOLINK) $(MODNAME).o -o $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(LDFLAGS) $(BASE)/libs/codec/ilbc/libilbc.la
|
||||
|
||||
clean:
|
||||
rm -fr *.$(DYNAMIC_LIB_EXTEN) *.o *~ .libs
|
||||
|
||||
install:
|
||||
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod
|
||||
|
Reference in New Issue
Block a user