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

    r2623 r4656  
    66RULES_MAK := $(PJDIR)/build/rules.mak 
    77 
    8 export G7221_CODEC_LIB := ../../lib/libg7221codec-$(TARGET_NAME)$(LIBEXT) 
     8export G7221_CODEC_LIB := libg7221codec-$(TARGET_NAME)$(LIBEXT) 
     9 
     10ifeq ($(PJ_SHARED_LIBRARIES),) 
     11else 
     12export G7221_CODEC_SONAME := libg7221codec.$(SHLIB_SUFFIX) 
     13export G7221_CODEC_SHLIB := $(G7221_CODEC_SONAME).$(PJ_VERSION_MAJOR) 
     14endif 
    915 
    1016############################################################################### 
     
    3541# $(TARGET) is defined in os-$(OS_NAME).mak file in current directory. 
    3642# 
    37 TARGETS := libg7221codec 
     43TARGETS := $(G7221_CODEC_LIB) $(G7221_CODEC_SONAME) 
    3844 
    3945all: $(TARGETS) 
     
    4551distclean: realclean 
    4652 
    47 .PHONY: dep depend libg7221codec clean realclean distclean 
     53.PHONY: all dep depend clean realclean distclean 
     54.PHONY: $(TARGETS) 
     55.PHONY: $(G7221_CODEC_LIB) $(G7221_CODEC_SONAME) 
    4856 
    49 libg7221codec: 
    50         $(MAKE) -f $(RULES_MAK) APP=G7221_CODEC app=libg7221codec $(G7221_CODEC_LIB) 
     57libg7221codec: $(G7221_CODEC_LIB) 
     58$(G7221_CODEC_SONAME): $(G7221_CODEC_LIB) 
     59$(G7221_CODEC_LIB) $(G7221_CODEC_SONAME): 
     60        $(MAKE) -f $(RULES_MAK) APP=G7221_CODEC app=libg7221codec $(subst /,$(HOST_PSEP),$(LIBDIR)/$@) 
    5161 
    5262clean print_lib: 
Note: See TracChangeset for help on using the changeset viewer.