mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-07 22:03:50 +00:00
a few modules now build with --srcdir (FSBUILD-211)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15709 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
7bfdd463b6
commit
b871302d45
@ -145,25 +145,25 @@ local_all local_depend local_clean depend_install local_install local_distclean
|
|||||||
|
|
||||||
.c.o:
|
.c.o:
|
||||||
@echo Compiling $<...
|
@echo Compiling $<...
|
||||||
@if test ! -z $(VERBOSE) ; then echo $(COMPILE) -c -o $@ $< ; fi
|
@if test ! -z $(VERBOSE) ; then echo $(COMPILE) -c -o $@ `test -f '$<' || echo '$(MODDIR)/'`$< ; fi
|
||||||
@$(COMPILE) -c -o $@ $< || exit 1
|
@$(COMPILE) -c -o $@ `test -f '$<' || echo '$(MODDIR)/'`$< || exit 1
|
||||||
|
|
||||||
.c.lo:
|
.c.lo:
|
||||||
@echo Compiling $<...
|
@echo Compiling $<...
|
||||||
@if test ! -z $(VERBOSE) ; then echo $(LTCOMPILE) -c -o $@ $< ; fi
|
@if test ! -z $(VERBOSE) ; then echo $(LTCOMPILE) -c -o $@ `test -f '$<' || echo '$(MODDIR)/'`$< ; fi
|
||||||
@$(LTCOMPILE) -c -o $@ $< || exit 1
|
@$(LTCOMPILE) -c -o $@ `test -f '$<' || echo '$(MODDIR)/'`$< || exit 1
|
||||||
|
|
||||||
.cpp.o:
|
.cpp.o:
|
||||||
@echo Compiling $<...
|
@echo Compiling $<...
|
||||||
@if test ! -z $(VERBOSE) ; then echo $(CXXCOMPILE) -c -o $@ $< ; fi
|
@if test ! -z $(VERBOSE) ; then echo $(CXXCOMPILE) -c -o $@ `test -f '$<' || echo '$(MODDIR)/'`$< ; fi
|
||||||
@$(CXXCOMPILE) -c -o $@ $< || exit 1
|
@$(CXXCOMPILE) -c -o $@ `test -f '$<' || echo '$(MODDIR)/'`$< || exit 1
|
||||||
|
|
||||||
.cpp.lo:
|
.cpp.lo:
|
||||||
@echo Compiling $<...
|
@echo Compiling $<...
|
||||||
@if test ! -z $(VERBOSE) ; then echo $(LTCXXCOMPILE) -c -o $@ $< ; fi
|
@if test ! -z $(VERBOSE) ; then echo $(LTCXXCOMPILE) -c -o $@ `test -f '$<' || echo '$(MODDIR)/'`$< ; fi
|
||||||
@$(LTCXXCOMPILE) -c -o $@ $< || exit 1
|
@$(LTCXXCOMPILE) -c -o $@ `test -f '$<' || echo '$(MODDIR)/'`$< || exit 1
|
||||||
|
|
||||||
$(MODNAME).o $(MODNAME).lo: $(SOURCEFILE) \
|
$(MODNAME).o: $(SOURCEFILE) \
|
||||||
$(switch_srcdir)/src/include/switch.h \
|
$(switch_srcdir)/src/include/switch.h \
|
||||||
$(switch_builddir)/src/include/switch_am_config.h \
|
$(switch_builddir)/src/include/switch_am_config.h \
|
||||||
$(switch_srcdir)/src/include/switch_types.h $(switch_srcdir)/src/include/switch_apr.h \
|
$(switch_srcdir)/src/include/switch_types.h $(switch_srcdir)/src/include/switch_apr.h \
|
||||||
@ -177,6 +177,37 @@ $(MODNAME).o $(MODNAME).lo: $(SOURCEFILE) \
|
|||||||
$(switch_srcdir)/src/include/switch_ivr.h $(switch_srcdir)/src/include/switch_rtp.h \
|
$(switch_srcdir)/src/include/switch_ivr.h $(switch_srcdir)/src/include/switch_rtp.h \
|
||||||
$(switch_srcdir)/src/include/switch_stun.h $(switch_srcdir)/src/include/switch_log.h \
|
$(switch_srcdir)/src/include/switch_stun.h $(switch_srcdir)/src/include/switch_log.h \
|
||||||
$(switch_srcdir)/src/include/switch_xml.h
|
$(switch_srcdir)/src/include/switch_xml.h
|
||||||
|
@echo Compiling $<...
|
||||||
|
if test -f "$(CSOURCEFILE)"; then \
|
||||||
|
if test ! -z $(VERBOSE) ; then echo $(COMPILE) -c -o $@ `test -f '$<' || echo '$(MODDIR)/'`$< ; fi ;\
|
||||||
|
$(COMPILE) -c -o $@ `test -f '$<' || echo '$(MODDIR)/'`$< ; \
|
||||||
|
else \
|
||||||
|
if test ! -z $(VERBOSE) ; then echo $(CXXCOMPILE) -c -o $@ `test -f '$<' || echo '$(MODDIR)/'`$< ; fi ;\
|
||||||
|
$(CXXCOMPILE) -c -o $@ `test -f '$<' || echo '$(MODDIR)/'`$< ; \
|
||||||
|
fi;
|
||||||
|
|
||||||
|
$(MODNAME).lo: $(SOURCEFILE) \
|
||||||
|
$(switch_srcdir)/src/include/switch.h \
|
||||||
|
$(switch_builddir)/src/include/switch_am_config.h \
|
||||||
|
$(switch_srcdir)/src/include/switch_types.h $(switch_srcdir)/src/include/switch_apr.h \
|
||||||
|
$(switch_srcdir)/src/include/switch_core_db.h $(switch_srcdir)/src/include/switch_regex.h \
|
||||||
|
$(switch_srcdir)/src/include/switch_core.h $(switch_srcdir)/src/include/switch_loadable_module.h \
|
||||||
|
$(switch_srcdir)/src/include/switch_console.h $(switch_srcdir)/src/include/switch_utils.h \
|
||||||
|
$(switch_srcdir)/src/include/switch_caller.h $(switch_srcdir)/src/include/switch_config.h \
|
||||||
|
$(switch_srcdir)/src/include/switch_frame.h $(switch_srcdir)/src/include/switch_module_interfaces.h \
|
||||||
|
$(switch_srcdir)/src/include/switch_channel.h $(switch_srcdir)/src/include/switch_buffer.h \
|
||||||
|
$(switch_srcdir)/src/include/switch_event.h $(switch_srcdir)/src/include/switch_resample.h \
|
||||||
|
$(switch_srcdir)/src/include/switch_ivr.h $(switch_srcdir)/src/include/switch_rtp.h \
|
||||||
|
$(switch_srcdir)/src/include/switch_stun.h $(switch_srcdir)/src/include/switch_log.h \
|
||||||
|
$(switch_srcdir)/src/include/switch_xml.h
|
||||||
|
@echo Compiling $<...
|
||||||
|
if test -f "$(CSOURCEFILE)"; then \
|
||||||
|
if test ! -z $(VERBOSE) ; then echo $(LTCOMPILE) -c -o $@ `test -f '$<' || echo '$(MODDIR)/'`$< ; fi ;\
|
||||||
|
$(LTCOMPILE) -c -o $@ `test -f '$<' || echo '$(MODDIR)/'`$< ; \
|
||||||
|
else \
|
||||||
|
if test ! -z $(VERBOSE) ; then echo $(LTCXXCOMPILE) -c -o $@ `test -f '$<' || echo '$(MODDIR)/'`$< ; fi ;\
|
||||||
|
$(LTCXXCOMPILE) -c -o $@ `test -f '$<' || echo '$(MODDIR)/'`$< ; \
|
||||||
|
fi;
|
||||||
|
|
||||||
$(switch_srcdir)/src/include/switch.h:
|
$(switch_srcdir)/src/include/switch.h:
|
||||||
|
|
||||||
|
@ -1,11 +1,12 @@
|
|||||||
BASE=../../../..
|
BASE=../../../..
|
||||||
BV_DIR=$(BASE)/libs/broadvoice
|
BV_DIR=$(BASE)/libs/broadvoice
|
||||||
LOCAL_CFLAGS=-I$(BV_DIR)/src
|
BV_SRCDIR=$(MODDIR)/../../../../libs/broadvoice
|
||||||
|
LOCAL_CFLAGS=-I$(BV_SRCDIR)/src -I$(BV_DIR)/src
|
||||||
BV_LA=$(BV_DIR)/src/.libs/libbroadvoice.la
|
BV_LA=$(BV_DIR)/src/.libs/libbroadvoice.la
|
||||||
LOCAL_LIBADD=$(BV_LA)
|
LOCAL_LIBADD=$(BV_LA)
|
||||||
include $(BASE)/build/modmake.rules
|
include $(BASE)/build/modmake.rules
|
||||||
|
|
||||||
$(BV_LA): $(BV_DIR)/.update
|
$(BV_LA): $(BV_SRCDIR)/.update
|
||||||
cd $(BV_DIR) && $(MAKE)
|
cd $(BV_DIR) && $(MAKE)
|
||||||
$(TOUCH_TARGET)
|
$(TOUCH_TARGET)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user