summaryrefslogtreecommitdiff
path: root/third_party/build/resample
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2007-04-09 17:13:10 +0000
committerBenny Prijono <bennylp@teluu.com>2007-04-09 17:13:10 +0000
commit032f5c4def19123a1c52d54691579dd6167543b9 (patch)
treef1e07e9da3da02ba832e8e4b3fb846d1dcb3733c /third_party/build/resample
parent174c05e4ea8add3a5536d8818f3f78ddf7842d15 (diff)
Initial Makefiles for the third_party components
git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/split-3rd-party@1180 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'third_party/build/resample')
-rw-r--r--third_party/build/resample/Makefile59
1 files changed, 59 insertions, 0 deletions
diff --git a/third_party/build/resample/Makefile b/third_party/build/resample/Makefile
new file mode 100644
index 00000000..6d444053
--- /dev/null
+++ b/third_party/build/resample/Makefile
@@ -0,0 +1,59 @@
+include ../../../build.mak
+include ../../../build/common.mak
+
+export LIBDIR := ../../lib
+
+RULES_MAK := $(PJDIR)/build/rules.mak
+
+export RESAMPLE_LIB := ../../lib/libresample-$(TARGET_NAME)$(LIBEXT)
+
+###############################################################################
+# Gather all flags.
+#
+export _CFLAGS := $(CC_CFLAGS) $(OS_CFLAGS) $(HOST_CFLAGS) $(M_CFLAGS) \
+ $(CFLAGS) $(CC_INC). $(CC_INC)../../resample/include \
+ $(CC_INC)../../../pjlib/include
+export _CXXFLAGS:= $(_CFLAGS) $(CC_CXXFLAGS) $(OS_CXXFLAGS) $(M_CXXFLAGS) \
+ $(HOST_CXXFLAGS) $(CXXFLAGS)
+export _LDFLAGS := $(CC_LDFLAGS) $(OS_LDFLAGS) $(M_LDFLAGS) $(HOST_LDFLAGS) \
+ $(LDFLAGS)
+
+export RESAMPLE_SRCDIR = ../../resample/src
+export RESAMPLE_OBJS = resamplesubs.o
+export RESAMPLE_CFLAGS = $(_CFLAGS)
+
+
+export CC_OUT CC AR RANLIB HOST_MV HOST_RM HOST_RMDIR HOST_MKDIR OBJEXT LD LDOUT
+###############################################################################
+# Main entry
+#
+# $(TARGET) is defined in os-$(OS_NAME).mak file in current directory.
+#
+TARGETS := libresample
+
+all: $(TARGETS)
+
+doc:
+ cd .. && doxygen docs/doxygen.cfg
+
+dep: depend
+distclean: realclean
+
+.PHONY: dep depend libresample clean realclean distclean
+
+libresample:
+ $(MAKE) -f $(RULES_MAK) APP=RESAMPLE app=libresample $(RESAMPLE_LIB)
+
+clean print_lib:
+ $(MAKE) -f $(RULES_MAK) APP=RESAMPLE app=libresample $@
+
+realclean:
+ $(subst @@,$(subst /,$(HOST_PSEP),.ilbc-$(TARGET_NAME).depend),$(HOST_RMR))
+
+ $(MAKE) -f $(RULES_MAK) APP=RESAMPLE app=libresample $@
+
+depend:
+ $(MAKE) -f $(RULES_MAK) APP=RESAMPLE app=libresample $@
+ echo '$(RESAMPLE_LIB): .libresample-$(TARGET_NAME).depend' >> .libresample-$(TARGET_NAME).depend; \
+
+