Ignore:
Timestamp:
Nov 23, 2013 7:13:40 AM (9 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/ilbc/Makefile

    r2183 r4656  
    66RULES_MAK := $(PJDIR)/build/rules.mak 
    77 
    8 export ILBC_LIB := ../../lib/libilbccodec-$(TARGET_NAME)$(LIBEXT) 
     8export ILBC_LIB := libilbccodec-$(TARGET_NAME)$(LIBEXT) 
     9 
     10ifeq ($(PJ_SHARED_LIBRARIES),) 
     11else 
     12export ILBC_SONAME := libilbccodec.$(SHLIB_SUFFIX) 
     13export ILBC_SHLIB := $(ILBC_SONAME).$(PJ_VERSION_MAJOR) 
     14endif 
    915 
    1016############################################################################### 
     
    3743# $(TARGET) is defined in os-$(OS_NAME).mak file in current directory. 
    3844# 
    39 TARGETS := libilbccodec 
     45TARGETS := $(ILBC_LIB) $(ILBC_SONAME) 
    4046 
    4147all: $(TARGETS) 
     
    4753distclean: realclean 
    4854 
    49 .PHONY: dep depend libilbccodec clean realclean distclean 
     55.PHONY: all dep depend clean realclean distclean 
     56.PHONY: $(TARGETS) 
     57.PHONY: $(ILBC_LIB) $(ILBC_SONAME) 
    5058 
    51 libilbccodec: 
    52         $(MAKE) -f $(RULES_MAK) APP=ILBC app=libilbccodec $(ILBC_LIB) 
     59libilbccodec: $(ILBC_LIB) 
     60$(ILBC_SONAME): $(ILBC_LIB) 
     61$(ILBC_LIB) $(ILBC_SONAME): 
     62        $(MAKE) -f $(RULES_MAK) APP=ILBC app=libilbccodec $(subst /,$(HOST_PSEP),$(LIBDIR)/$@) 
    5363 
    5464clean print_lib: 
Note: See TracChangeset for help on using the changeset viewer.