Ignore:
Timestamp:
Nov 23, 2013 7:13:40 AM (11 years ago)
Author:
bennylp
Message:

Fixed #1713: Enable building the libraries as shared libraries/DLLs for GNU targets

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/third_party/build/portaudio/Makefile

    r2183 r4656  
    77RULES_MAK := $(PJDIR)/build/rules.mak 
    88 
    9 export PORTAUDIO_LIB:=../../lib/libportaudio-$(TARGET_NAME)$(LIBEXT) 
     9export PORTAUDIO_LIB:=libportaudio-$(TARGET_NAME)$(LIBEXT) 
     10 
     11ifeq ($(PJ_SHARED_LIBRARIES),) 
     12else 
     13export PORTAUDIO_SONAME := libportaudio.$(SHLIB_SUFFIX) 
     14export PORTAUDIO_SHLIB := $(PORTAUDIO_SONAME).$(PJ_VERSION_MAJOR) 
     15endif 
    1016 
    1117PORTAUDIO_OBJS += pa_allocation.o \ 
     
    4450# $(TARGET) is defined in os-$(OS_NAME).mak file in current directory. 
    4551# 
    46 TARGETS := libportaudio 
     52TARGETS := $(PORTAUDIO_LIB) $(PORTAUDIO_SONAME) 
    4753 
    4854all: $(TARGETS) 
     
    5157distclean: realclean 
    5258 
    53 .PHONY: dep depend libportaudio clean realclean distclean 
     59.PHONY: all dep depend clean realclean distclean 
     60.PHONY: $(TARGETS) 
     61.PHONY: $(PORTAUDIO_LIB) $(PORTAUDIO_SONAME) 
    5462 
    55 libportaudio: 
    56         $(MAKE) -f $(RULES_MAK) APP=PORTAUDIO app=libportaudio $(PORTAUDIO_LIB) 
     63libportaudio: $(PORTAUDIO_LIB) 
     64$(PORTAUDIO_SONAME): $(PORTAUDIO_LIB) 
     65$(PORTAUDIO_LIB) $(PORTAUDIO_SONAME): 
     66        $(MAKE) -f $(RULES_MAK) APP=PORTAUDIO app=libportaudio $(subst /,$(HOST_PSEP),$(LIBDIR)/$@) 
    5767 
    5868clean: 
Note: See TracChangeset for help on using the changeset viewer.