Changeset 3999 for pjproject/trunk/third_party/build/resample/Makefile
- Timestamp:
- Mar 30, 2012 7:10:13 AM (13 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk
-
pjproject/trunk/third_party/build/resample/Makefile
r2183 r3999 6 6 RULES_MAK := $(PJDIR)/build/rules.mak 7 7 8 export RESAMPLE_LIB := ../../lib/libresample-$(TARGET_NAME)$(LIBEXT)9 8 10 9 ############################################################################### … … 23 22 export RESAMPLE_CFLAGS = $(_CFLAGS) 24 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) 25 27 26 28 export CC_OUT CC AR RANLIB HOST_MV HOST_RM HOST_RMDIR HOST_MKDIR OBJEXT LD LDOUT … … 30 32 # $(TARGET) is defined in os-$(OS_NAME).mak file in current directory. 31 33 # 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 else 39 SHLIB_OPT := 40 endif 41 export RESAMPLE_CFLAGS := -fPIC $(RESAMPLE_CFLAGS) 42 export RESAMPLE_LDFLAGS := -shared $(SHLIB_OPT) $(RESAMPLE_LDFLAGS) 43 else 32 44 TARGETS := libresample 45 endif 33 46 34 47 all: $(TARGETS) … … 45 58 $(MAKE) -f $(RULES_MAK) APP=RESAMPLE app=libresample $(RESAMPLE_LIB) 46 59 60 ../../lib/$(SHLIB_NAME): $(RESAMPLE_SHLIB) 61 ln -s $(SHLIB_NAME).$(PJ_VERSION_MAJOR) $@ 62 63 $(RESAMPLE_SHLIB): 64 $(MAKE) -f $(RULES_MAK) APP=RESAMPLE app=libresample $(RESAMPLE_SHLIB) 65 47 66 clean print_lib: 48 67 $(MAKE) -f $(RULES_MAK) APP=RESAMPLE app=libresample $@ 49 68 50 69 realclean: 51 $(subst @@,$(subst /,$(HOST_PSEP),. ilbc-$(TARGET_NAME).depend),$(HOST_RMR))52 70 $(subst @@,$(subst /,$(HOST_PSEP),../../lib/$(SHLIB_NAME)),$(HOST_RMR)) 71 $(subst @@,$(subst /,$(HOST_PSEP),$(RESAMPLE_SHLIB)),$(HOST_RMR)) 53 72 $(MAKE) -f $(RULES_MAK) APP=RESAMPLE app=libresample $@ 54 73
Note: See TracChangeset
for help on using the changeset viewer.