summaryrefslogtreecommitdiff
path: root/third_party/build/portaudio/Makefile
diff options
context:
space:
mode:
authorJason Parker <jparker@digium.com>2013-03-11 15:49:45 -0500
committerJason Parker <jparker@digium.com>2013-03-11 15:49:45 -0500
commit09114052f74fe74bbf652189cedefe41b7141b86 (patch)
tree6814977399b53176a53efc7ef5dffda1643b9d27 /third_party/build/portaudio/Makefile
parent1873b7a03a08b00140610d531bb6c0bb71e0e91a (diff)
parent1ab0bfe2d710db21587a9bf6c01b2392d5bd8ac7 (diff)
Merge branch 'patch/shared-libraries' of github.com:asterisk/pjproject
Conflicts: aconfigure build/rules.mak
Diffstat (limited to 'third_party/build/portaudio/Makefile')
-rw-r--r--third_party/build/portaudio/Makefile20
1 files changed, 15 insertions, 5 deletions
diff --git a/third_party/build/portaudio/Makefile b/third_party/build/portaudio/Makefile
index ad81571..a5c2449 100644
--- a/third_party/build/portaudio/Makefile
+++ b/third_party/build/portaudio/Makefile
@@ -6,7 +6,13 @@ export LIBDIR := ../../lib
RULES_MAK := $(PJDIR)/build/rules.mak
-export PORTAUDIO_LIB:=../../lib/libportaudio-$(TARGET_NAME)$(LIBEXT)
+export PORTAUDIO_LIB:=libportaudio-$(TARGET_NAME)$(LIBEXT)
+
+ifeq ($(PJ_SHARED_LIBRARIES),)
+else
+export PORTAUDIO_SONAME := libportaudio.$(SHLIB_SUFFIX)
+export PORTAUDIO_SHLIB := $(PORTAUDIO_SONAME).$(PJ_VERSION_MAJOR)
+endif
PORTAUDIO_OBJS += pa_allocation.o \
pa_converters.o \
@@ -43,17 +49,21 @@ export CC_OUT CC AR RANLIB HOST_MV HOST_RM HOST_RMDIR HOST_MKDIR OBJEXT LD LDOUT
#
# $(TARGET) is defined in os-$(OS_NAME).mak file in current directory.
#
-TARGETS := libportaudio
+TARGETS := $(PORTAUDIO_LIB) $(PORTAUDIO_SONAME)
all: $(TARGETS)
dep: depend
distclean: realclean
-.PHONY: dep depend libportaudio clean realclean distclean
+.PHONY: all dep depend clean realclean distclean
+.PHONY: $(TARGETS)
+.PHONY: $(PORTAUDIO_LIB) $(PORTAUDIO_SONAME)
-libportaudio:
- $(MAKE) -f $(RULES_MAK) APP=PORTAUDIO app=libportaudio $(PORTAUDIO_LIB)
+libportaudio: $(PORTAUDIO_LIB)
+$(PORTAUDIO_SONAME): $(PORTAUDIO_LIB)
+$(PORTAUDIO_LIB) $(PORTAUDIO_SONAME):
+ $(MAKE) -f $(RULES_MAK) APP=PORTAUDIO app=libportaudio $(subst /,$(HOST_PSEP),$(LIBDIR)/$@)
clean:
$(MAKE) -f $(RULES_MAK) APP=PORTAUDIO app=libportaudio $@