bump product version to 4.1.6.2
[LibreOffice.git] / openssl / ExternalProject_openssl.mk
blobed99fe5013c40a5b111e1161cddc420b10259814
1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 $(eval $(call gb_ExternalProject_ExternalProject,openssl))
12 $(eval $(call gb_ExternalProject_register_targets,openssl,\
13 build \
16 # For multi-line conditionals, align the $(if and the corresponding ),
17 # putting the latter on a line of its own. Also put the "else" comma
18 # on a line of its own. Hopefully should make the logic more clear.
20 OPENSSL_PLATFORM := \
21 $(if $(filter LINUX FREEBSD ANDROID,$(OS)),\
22 $(if $(filter I,$(CPU)),\
23 $(if $(filter GNU/kFreeBSD,$(shell uname)),debian-kfreebsd-i386,linux-elf)\
25 $(if $(filter X,$(CPU)),\
26 $(if $(filter GNU/kFreeBSD,$(shell uname)),\
27 debian-kfreebsd-amd64\
29 $(if $(filter TRUE, $(ENABLE_DBGUTIL)), debug-linux-generic64, linux-generic64)\
32 $(if $(filter TRUE, $(ENABLE_DBGUTIL)), debug-linux-generic32, linux-generic32)\
36 $(if $(filter SOLARIS,$(OS)),\
37 $(if $(filter INTEL,$(CPUNAME)),\
38 $(if $(filter X,$(CPU)),solaris64-x86_64-cc,solaris-x86-cc)\
40 solaris-sparcv9-cc\
43 $(if $(filter IOS,$(OS)),\
44 ios-armv7\
46 $(if $(filter WNT,$(OS)),\
47 $(if $(filter GCC,$(COM)),\
48 mingw\
50 $(if $(filter I,$(CPU)),VC-WIN32,VC-WIN64A)\
53 $(if $(filter MACOSX,$(OS)),\
54 $(if $(filter I,$(CPU)),darwin-i386-cc,darwin64-x86_64-cc)\
61 ifeq ($(COM),MSC)
62 $(call gb_ExternalProject_get_state_target,openssl,build):
63 $(call gb_ExternalProject_run,build,\
64 export CC="$(shell cygpath -w $(CC))" \
65 && export PERL="$(shell cygpath -w $(PERL))" \
66 && export LIB="$(ILIB)" \
67 && $(PERL) Configure $(OPENSSL_PLATFORM) no-idea \
68 && cmd /c "ms\do_ms.bat $(PERL) $(OPENSSL_PLATFORM)" \
69 && unset MAKEFLAGS \
70 && nmake -f "ms\ntdll.mak" \
73 else
74 $(call gb_ExternalProject_get_state_target,openssl,build):
75 $(call gb_ExternalProject_run,build,\
76 unset MAKEFLAGS \
77 && $(if $(filter LINUX MACOSX FREEBSD ANDROID SOLARIS IOS,$(OS)),./Configure,\
78 $(if $(filter WNT,$(OS)),$(PERL) Configure,./config)) \
79 $(OPENSSL_PLATFORM) \
80 $(if $(filter ANDROID,$(OS)),\
81 shared no-idea,\
82 $(if $(filter IOS,$(OS)),no-shared no-idea,\
83 $(if $(filter WNT,$(OS)),shared,\
84 shared no-idea \
85 $(if $(SYSBASE),-I$(SYSBASE)/usr/include -L$(SYSBASE)/usr/lib)))) \
86 $(if $(filter MACOSX,$(OS)),--prefix=/@.__________________________________________________OOO) \
87 && $(MAKE) build_libs \
88 CC="$(CC) $(if $(filter-out WNT,$(OS)),\
89 $(if $(filter TRUE,$(HAVE_GCC_VISIBILITY_FEATURE)),\
90 -fvisibility=hidden))" \
92 endif
93 # vim: set noet sw=4 ts=4: