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

    r2183 r4656  
    66RULES_MAK := $(PJDIR)/build/rules.mak 
    77 
    8 export MILENAGE_LIB := ../../lib/libmilenage-$(TARGET_NAME)$(LIBEXT) 
     8export MILENAGE_LIB := libmilenage-$(TARGET_NAME)$(LIBEXT) 
     9 
     10ifeq ($(PJ_SHARED_LIBRARIES),) 
     11else 
     12export MILENAGE_SONAME := libmilenage.$(SHLIB_SUFFIX) 
     13export MILENAGE_SHLIB := $(MILENAGE_SONAME).$(PJ_VERSION_MAJOR) 
     14endif 
    915 
    1016############################################################################### 
     
    3036# $(TARGET) is defined in os-$(OS_NAME).mak file in current directory. 
    3137# 
    32 TARGETS := libmilenage 
     38TARGETS := $(MILENAGE_LIB) $(MILENAGE_SONAME) 
    3339 
    3440all: $(TARGETS) 
     
    4046distclean: realclean 
    4147 
    42 .PHONY: dep depend libmilenage clean realclean distclean 
     48.PHONY: all dep depend clean realclean distclean 
     49.PHONY: $(TARGETS) 
     50.PHONY: $(MILENAGE_LIB) $(MILENAGE_SONAME) 
    4351 
    44 libmilenage: 
    45         $(MAKE) -f $(RULES_MAK) APP=MILENAGE app=libmilenage $(MILENAGE_LIB) 
     52libmilenage: $(MILENAGE_LIB) 
     53$(MILENAGE_SONAME): $(MILENAGE_LIB) 
     54$(MILENAGE_LIB) $(MILENAGE_SONAME): 
     55        $(MAKE) -f $(RULES_MAK) APP=MILENAGE app=libmilenage $(subst /,$(HOST_PSEP),$(LIBDIR)/$@) 
    4656 
    4757clean print_lib: 
Note: See TracChangeset for help on using the changeset viewer.