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

    r2183 r4656  
    66RULES_MAK := $(PJDIR)/build/rules.mak 
    77 
    8 export GSM_CODEC_LIB := ../../lib/libgsmcodec-$(TARGET_NAME)$(LIBEXT) 
     8export GSM_CODEC_LIB := libgsmcodec-$(TARGET_NAME)$(LIBEXT) 
     9 
     10ifeq ($(PJ_SHARED_LIBRARIES),) 
     11else 
     12export GSM_CODEC_SONAME := libgsmcodec.$(SHLIB_SUFFIX) 
     13export GSM_CODEC_SHLIB := $(GSM_CODEC_SONAME).$(PJ_VERSION_MAJOR) 
     14endif 
    915 
    1016############################################################################### 
     
    3642# $(TARGET) is defined in os-$(OS_NAME).mak file in current directory. 
    3743# 
    38 TARGETS := libgsmcodec 
     44TARGETS := $(GSM_CODEC_LIB) $(GSM_CODEC_SONAME) 
    3945 
    4046all: $(TARGETS) 
     
    4652distclean: realclean 
    4753 
    48 .PHONY: dep depend libgsmcodec clean realclean distclean 
     54.PHONY: all dep depend clean realclean distclean 
     55.PHONY: $(TARGETS) 
     56.PHONE: $(GSM_CODEC_LIB) $(GSM_CODEC_SONAME) 
    4957 
    50 libgsmcodec: 
    51         $(MAKE) -f $(RULES_MAK) APP=GSM_CODEC app=libgsmcodec $(GSM_CODEC_LIB) 
     58libgsmcodec: $(GSM_CODEC_LIB) 
     59$(GSM_CODEC_SONAME): $(GSM_CODEC_LIB) 
     60$(GSM_CODEC_LIB) $(GSM_CODEC_SONAME): 
     61        $(MAKE) -f $(RULES_MAK) APP=GSM_CODEC app=libgsmcodec $(subst /,$(HOST_PSEP),$(LIBDIR)/$@) 
    5262 
    5363clean print_lib: 
Note: See TracChangeset for help on using the changeset viewer.