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

    r2183 r4656  
    66RULES_MAK := $(PJDIR)/build/rules.mak 
    77 
    8 export SRTP_LIB := ../../lib/libsrtp-$(TARGET_NAME)$(LIBEXT) 
     8export SRTP_LIB := libsrtp-$(TARGET_NAME)$(LIBEXT) 
     9 
     10ifeq ($(PJ_SHARED_LIBRARIES),) 
     11else 
     12export SRTP_SONAME := libsrtp.$(SHLIB_SUFFIX) 
     13export SRTP_SHLIB := $(SRTP_SONAME).$(PJ_VERSION_MAJOR) 
     14endif 
    915 
    1016############################################################################### 
     
    5864# $(TARGET) is defined in os-$(OS_NAME).mak file in current directory. 
    5965# 
    60 TARGETS := libsrtp 
     66TARGETS := $(SRTP_LIB) $(SRTP_SONAME) 
    6167 
    6268all: $(TARGETS) 
     
    6874distclean: realclean 
    6975 
    70 .PHONY: dep depend libsrtp clean realclean distclean 
     76.PHONY: all dep depend clean realclean distclean 
     77.PHONY: $(TARGETS) 
     78.PHONY: $(SRTP_LIB) $(SRTP_SONAME) 
    7179 
    72 libsrtp: 
    73         $(MAKE) -f $(RULES_MAK) APP=SRTP app=libsrtp $(SRTP_LIB) 
     80libsrtp: $(SRTP_LIB) 
     81$(SRTP_SONAME): $(SRTP_LIB) 
     82$(SRTP_LIB) $(SRTP_SONAME): 
     83        $(MAKE) -f $(RULES_MAK) APP=SRTP app=libsrtp $(subst /,$(HOST_PSEP),$(LIBDIR)/$@) 
    7484 
    7585clean print_lib: 
Note: See TracChangeset for help on using the changeset viewer.