mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
Conflicts: Classes/LinphoneManager.h Classes/LinphoneManager.m linphone.xcodeproj/project.pbxproj submodules/build/Makefile submodules/build/builder-iphone-os.mk + Made modifications to the tunnel compilation so that it builds without openssl.
40 lines
1.5 KiB
Makefile
40 lines
1.5 KiB
Makefile
openssl_version=1.0.1c
|
|
OPENSSL_BUILD_DIR?=$(BUILDER_BUILD_DIR)/externals/openssl
|
|
|
|
ifneq (,$(findstring mingw,$(host)))
|
|
CONFIGURE_OPTION := mingw
|
|
MAKE_PARAMS:= CC=i586-mingw32msvc-gcc RANLIB=i586-mingw32msvc-ranlib
|
|
endif
|
|
|
|
$(OPENSSL_BUILD_DIR)/Configure:
|
|
mkdir -p $(BUILDER_BUILD_DIR)/externals \
|
|
&& cd $(BUILDER_BUILD_DIR)/externals \
|
|
&& rm -rf openssl \
|
|
&& wget ftp://sunsite.cnlab-switch.ch/mirror/openssl/source/openssl-$(openssl_version).tar.gz \
|
|
&& tar xvzf openssl-$(openssl_version).tar.gz \
|
|
&& rm -f openssl-$(openssl_version).tar.gz \
|
|
&& mv openssl-$(openssl_version) openssl \
|
|
&& cd openssl && patch -p0 < $(BUILDER_SRC_DIR)/build/builders.d/openssl.patch
|
|
|
|
$(OPENSSL_BUILD_DIR)/Makefile: $(OPENSSL_BUILD_DIR)/Configure
|
|
cd $(OPENSSL_BUILD_DIR) \
|
|
&& host_alias=${host} . $(BUILDER_SRC_DIR)/build/$(config_site) \
|
|
&& ./Configure --prefix=$(prefix) --cross-compile-prefix=$$SDK_BIN_PATH/ BSD-generic32 no-asm
|
|
|
|
build-openssl: $(OPENSSL_BUILD_DIR)/Makefile
|
|
cd $(OPENSSL_BUILD_DIR) && host_alias=${host} . $(BUILDER_SRC_DIR)/build/$(config_site) \
|
|
&& make CC="$$CC" AR="$$AR r" RANLIB="$$RANLIB" build_crypto build_ssl libcrypto.pc libssl.pc\
|
|
&& cp -r include $(prefix)/ \
|
|
&& cp lib*.a $(prefix)/lib \
|
|
&& cp libcrypto.pc $(prefix)/lib/pkgconfig/. \
|
|
&& cp libssl.pc $(prefix)/lib/pkgconfig/. \
|
|
|
|
clean-openssl:
|
|
cd $(OPENSSL_BUILD_DIR) && make clean
|
|
|
|
clean-makefile-openssl:
|
|
touch $(OPENSSL_BUILD_DIR)/Configure
|
|
|
|
veryclean-openssl:
|
|
rm -rf $(OPENSSL_BUILD_DIR)
|
|
|