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/speex/Makefile

    r2183 r4656  
    66RULES_MAK := $(PJDIR)/build/rules.mak 
    77 
    8 export SPEEX_LIB := ../../lib/libspeex-$(TARGET_NAME)$(LIBEXT) 
     8export SPEEX_LIB := libspeex-$(TARGET_NAME)$(LIBEXT) 
     9 
     10ifeq ($(PJ_SHARED_LIBRARIES),) 
     11else 
     12export SPEEX_SONAME := libspeex.$(SHLIB_SUFFIX) 
     13export SPEEX_SHLIB := $(SPEEX_SONAME).$(PJ_VERSION_MAJOR) 
     14endif 
    915 
    1016############################################################################### 
     
    4551# $(TARGET) is defined in os-$(OS_NAME).mak file in current directory. 
    4652# 
    47 TARGETS := libspeex 
     53TARGETS := $(SPEEX_LIB) $(SPEEX_SONAME) 
    4854 
    4955all: $(TARGETS) 
     
    5561distclean: realclean 
    5662 
    57 .PHONY: dep depend libspeex clean realclean distclean 
     63.PHONY: all dep depend clean realclean distclean 
     64.PHONY: $(TARGETS) 
     65.PHONY: $(SPEEX_LIB) $(SPEEX_SONAME) 
    5866 
    59 libspeex: 
    60         $(MAKE) -f $(RULES_MAK) APP=SPEEX app=libspeex $(SPEEX_LIB) 
     67libspeex: $(SPEEX_LIB) 
     68$(SPEEX_SONAME): $(SPEEX_LIB) 
     69$(SPEEX_LIB) $(SPEEX_SONAME): 
     70        $(MAKE) -f $(RULES_MAK) APP=SPEEX app=libspeex $(subst /,$(HOST_PSEP),$(LIBDIR)/$@) 
    6171 
    6272clean print_lib: 
Note: See TracChangeset for help on using the changeset viewer.