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:
Michael Jerris committed 2007-03-12 04:21:54 +00:00
1 parent 52b40252ef
commit 514bde18c7
45 files changed
+461 -634

No files matched your search

+11 -14
View File
@@ -1,20 +1,17 @@
LDFLAGS += $(BASE)/libs/libdingaling/libdingaling.la
CFLAGS += -I$(BASE)/libs/libdingaling/src
all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN)
# define these targets in your makefile if you wish
# local_all local_depend local_clean depend_install local_install local_distclean local_extraclean:
depends:
# and define these variables to imapact your build
LOCAL_CFLAGS=-I$(BASE)/libs/libdingaling/src
LOCAL_LDFLAGS=$(BASE)/libs/libdingaling/libdingaling.la
LOCAL_OBJS=
include $(BASE)/build/modmake.rules
local_depend:
cd $(BASE)/libs/iksemel && $(MAKE)
cd $(BASE)/libs/libdingaling && $(MAKE)
$(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:
depend_install:
cd $(BASE)/libs/iksemel && $(MAKE) install
cd $(BASE)/libs/libdingaling && $(MAKE) install
$(LTINSTALL) $(MODNAME).$(DYNAMIC_LIB_EXTEN) $(DESTDIR)$(PREFIX)/mod