Changeset 4656 for pjproject/trunk/third_party/build/resample/Makefile
- Timestamp:
- Nov 23, 2013 7:13:40 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/third_party/build/resample/Makefile
r3999 r4656 22 22 export RESAMPLE_CFLAGS = $(_CFLAGS) 23 23 24 SHLIB_NAME := libresample.$(SHLIB_SUFFIX) 25 export RESAMPLE_SHLIB := ../../lib/$(SHLIB_NAME).$(PJ_VERSION_MAJOR) 26 export RESAMPLE_LIB := ../../lib/libresample-$(TARGET_NAME)$(LIBEXT) 24 export RESAMPLE_LIB := libresample-$(TARGET_NAME)$(LIBEXT) 25 26 ifeq ($(PJ_SHARED_LIBRARIES),) 27 else 28 export RESAMPLE_SONAME := libresample.$(SHLIB_SUFFIX) 29 export RESAMPLE_SHLIB := $(RESAMPLE_SONAME).$(PJ_VERSION_MAJOR) 30 endif 27 31 28 32 export CC_OUT CC AR RANLIB HOST_MV HOST_RM HOST_RMDIR HOST_MKDIR OBJEXT LD LDOUT … … 32 36 # $(TARGET) is defined in os-$(OS_NAME).mak file in current directory. 33 37 # 34 ifeq ($(PJ_RESAMPLE_DLL),1) 35 TARGETS := ../../lib/$(SHLIB_NAME) 36 ifeq ($(SHLIB_SUFFIX),so) 37 SHLIB_OPT := -Wl,-soname,$(SHLIB_NAME).$(PJ_VERSION_MAJOR) 38 TARGETS := $(RESAMPLE_LIB) $(RESAMPLE_SONAME) 39 ifneq ($(PJ_SHARED_LIBRARIES),) 38 40 else 39 SHLIB_OPT := 41 ifneq ($(PJ_RESAMPLE_DLL),) 42 export RESAMPLE_CFLAGS := -fPIC $(RESAMPLE_CFLAGS) 40 43 endif 41 export RESAMPLE_CFLAGS := -fPIC $(RESAMPLE_CFLAGS)42 export RESAMPLE_LDFLAGS := -shared $(SHLIB_OPT) $(RESAMPLE_LDFLAGS)43 else44 TARGETS := libresample45 44 endif 46 45 … … 53 52 distclean: realclean 54 53 55 .PHONY: dep depend libresample clean realclean distclean 54 .PHONY: all dep depend clean realclean distclean 55 .PHONY: $(TARGETS) 56 .PHONY: $(RESAMPLE_LIB) $(RESAMPLE_SONAME) 56 57 57 libresample: 58 $(MAKE) -f $(RULES_MAK) APP=RESAMPLE app=libresample $(RESAMPLE_LIB) 58 dep: depend 59 59 60 ../../lib/$(SHLIB_NAME): $(RESAMPLE_SHLIB) 61 ln -s $(SHLIB_NAME).$(PJ_VERSION_MAJOR) $@ 60 libresample: $(RESAMPLE_LIB) 61 $(RESAMPLE_SONAME): $(RESAMPLE_LIB) 62 $(RESAMPLE_LIB) $(RESAMPLE_SONAME): 63 $(MAKE) -f $(RULES_MAK) APP=RESAMPLE app=libresample $(subst /,$(HOST_PSEP),$(LIBDIR)/$@) 62 64 63 $(RESAMPLE_SHLIB):64 $(MAKE) -f $(RULES_MAK) APP=RESAMPLE app=libresample $(RESAMPLE_SHLIB)65 66 65 clean print_lib: 67 66 $(MAKE) -f $(RULES_MAK) APP=RESAMPLE app=libresample $@ 68 67 69 68 realclean: 70 $(subst @@,$(subst /,$(HOST_PSEP),../../lib/$(SHLIB_NAME)),$(HOST_RMR))71 $(subst @@,$(subst /,$(HOST_PSEP),$(RESAMPLE_SHLIB)),$(HOST_RMR))72 69 $(MAKE) -f $(RULES_MAK) APP=RESAMPLE app=libresample $@ 73 70
Note: See TracChangeset
for help on using the changeset viewer.