makefile.mk (f848a277) | makefile.mk (4c5b548f) |
---|---|
1#************************************************************** 2# 3# Licensed to the Apache Software Foundation (ASF) under one 4# or more contributor license agreements. See the NOTICE file 5# distributed with this work for additional information 6# regarding copyright ownership. The ASF licenses this file 7# to you under the Apache License, Version 2.0 (the 8# "License"); you may not use this file except in compliance --- 23 unchanged lines hidden (view full) --- 32 33# --- Files -------------------------------------------------------- 34 35.IF "$(SYSTEM_OPENSSL)" == "YES" 36@all: 37 @echo "Using system openssl...." 38.ENDIF 39 | 1#************************************************************** 2# 3# Licensed to the Apache Software Foundation (ASF) under one 4# or more contributor license agreements. See the NOTICE file 5# distributed with this work for additional information 6# regarding copyright ownership. The ASF licenses this file 7# to you under the Apache License, Version 2.0 (the 8# "License"); you may not use this file except in compliance --- 23 unchanged lines hidden (view full) --- 32 33# --- Files -------------------------------------------------------- 34 35.IF "$(SYSTEM_OPENSSL)" == "YES" 36@all: 37 @echo "Using system openssl...." 38.ENDIF 39 |
40.IF "$(DISABLE_OPENSSL)" == "TRUE" 41@all: 42 @echo "openssl disabled...." 43.ENDIF | |
44 | 40 |
45OPENSSL_NAME=openssl-1.0.2u | 41OPENSSL_NAME=openssl-3.0.13 |
46 47TARFILE_NAME=$(OPENSSL_NAME) | 42 43TARFILE_NAME=$(OPENSSL_NAME) |
48TARFILE_MD5=cdc2638f789ecc2db2c91488265686c1 | 44TARFILE_MD5=c15e53a62711002901d3515ac8b30b86 |
49 50CONFIGURE_DIR=. 51CONFIGURE_ACTION=config 52CONFIGURE_FLAGS=-I$(SYSBASE)$/usr$/include -L$(SYSBASE)$/usr$/lib shared 53 54BUILD_DIR=. 55BUILD_ACTION=make CC='$(CC)' build_libs 56 --- 5 unchanged lines hidden (view full) --- 62 63.IF "$(COM)"=="GCC" && "$(CCNUMVER)">="000400060000" || "$(OS)"=="WNT" && "$(NASM_PATH)"=="NO_NASM_HOME" 64 NO_ASM="no-asm" 65.ELSE 66 NO_ASM= 67.ENDIF 68 69.IF "$(OS)" == "LINUX" || "$(OS)" == "FREEBSD" | 45 46CONFIGURE_DIR=. 47CONFIGURE_ACTION=config 48CONFIGURE_FLAGS=-I$(SYSBASE)$/usr$/include -L$(SYSBASE)$/usr$/lib shared 49 50BUILD_DIR=. 51BUILD_ACTION=make CC='$(CC)' build_libs 52 --- 5 unchanged lines hidden (view full) --- 58 59.IF "$(COM)"=="GCC" && "$(CCNUMVER)">="000400060000" || "$(OS)"=="WNT" && "$(NASM_PATH)"=="NO_NASM_HOME" 60 NO_ASM="no-asm" 61.ELSE 62 NO_ASM= 63.ENDIF 64 65.IF "$(OS)" == "LINUX" || "$(OS)" == "FREEBSD" |
70 PATCH_FILES=openssllnx.patch | 66 PATCH_FILES=opensslunx.patch |
71 .IF "$(CPU)" == "I" 72 .IF "$(UNAME)" == "GNU/kFreeBSD" 73 CONFIGURE_ACTION=Configure debian-kfreebsd-i386 no-dso no-shared $(NO_ASM) 74 .ELIF "$(UNAME)" == "FreeBSD" 75 CONFIGURE_ACTION=Configure BSD-x86-elf no-dso no-shared $(NO_ASM) 76 .ELSE 77 CONFIGURE_ACTION=Configure linux-generic32 no-dso no-shared $(NO_ASM) 78 .ENDIF --- 33 unchanged lines hidden (view full) --- 112 113.IF "$(OS)" == "MACOSX" 114 CONFIGURE_ACTION=Configure darwin64-x86_64-cc no-dso no-shared $(NO_ASM) 115.ENDIF 116 117.IF "$(OS)" == "WNT" 118 119.IF "$(COM)"=="GCC" | 67 .IF "$(CPU)" == "I" 68 .IF "$(UNAME)" == "GNU/kFreeBSD" 69 CONFIGURE_ACTION=Configure debian-kfreebsd-i386 no-dso no-shared $(NO_ASM) 70 .ELIF "$(UNAME)" == "FreeBSD" 71 CONFIGURE_ACTION=Configure BSD-x86-elf no-dso no-shared $(NO_ASM) 72 .ELSE 73 CONFIGURE_ACTION=Configure linux-generic32 no-dso no-shared $(NO_ASM) 74 .ENDIF --- 33 unchanged lines hidden (view full) --- 108 109.IF "$(OS)" == "MACOSX" 110 CONFIGURE_ACTION=Configure darwin64-x86_64-cc no-dso no-shared $(NO_ASM) 111.ENDIF 112 113.IF "$(OS)" == "WNT" 114 115.IF "$(COM)"=="GCC" |
116 |
|
120PATCH_FILES=opensslmingw.patch 121.IF "$(USE_MINGW)" == "cygwin" 122CONFIGURE_ACTION=$(PERL) configure 123CONFIGURE_FLAGS=mingw shared 124INSTALL_ACTION=mv libcrypto.a libcrypto_static.a && mv libcrypto.dll.a libcrypto.a && mv libssl.a libssl_static.a && mv libssl.dll.a libssl.a 125OUT2LIB = libcrypto_static.* 126OUT2LIB += libssl_static.* 127OUT2LIB += libcrypto.* 128OUT2LIB += libssl.* 129OUT2BIN = ssleay32.dll 130OUT2BIN += libeay32.dll | 117PATCH_FILES=opensslmingw.patch 118.IF "$(USE_MINGW)" == "cygwin" 119CONFIGURE_ACTION=$(PERL) configure 120CONFIGURE_FLAGS=mingw shared 121INSTALL_ACTION=mv libcrypto.a libcrypto_static.a && mv libcrypto.dll.a libcrypto.a && mv libssl.a libssl_static.a && mv libssl.dll.a libssl.a 122OUT2LIB = libcrypto_static.* 123OUT2LIB += libssl_static.* 124OUT2LIB += libcrypto.* 125OUT2LIB += libssl.* 126OUT2BIN = ssleay32.dll 127OUT2BIN += libeay32.dll |
131.ELSE | 128.ELSE # "$(USE_MINGW)" == "cygwin" |
132CONFIGURE_ACTION= 133BUILD_ACTION=cmd /c "ms\mingw32" 134OUT2LIB = out/libcrypto_static.* 135OUT2LIB += out/libssl_static.* 136OUT2LIB += out/libcrypto.* 137OUT2LIB += out/libssl.* 138OUT2BIN = out/ssleay32.dll 139OUT2BIN += out/libeay32.dll | 129CONFIGURE_ACTION= 130BUILD_ACTION=cmd /c "ms\mingw32" 131OUT2LIB = out/libcrypto_static.* 132OUT2LIB += out/libssl_static.* 133OUT2LIB += out/libcrypto.* 134OUT2LIB += out/libssl.* 135OUT2BIN = out/ssleay32.dll 136OUT2BIN += out/libeay32.dll |
140.ENDIF 141.ELSE | 137.ENDIF # "$(USE_MINGW)" == "cygwin" |
142 | 138 |
143 PATCH_FILES=openssl.patch 144 .IF "$(MAKETARGETS)" == "" 145 # The env. vars CC and PERL are used by nmake, and nmake insists on '\'s 146 # If WRAPCMD is set it is prepended before the compiler, don't touch that. 147 .IF "$(WRAPCMD)"=="" 148 CC!:=$(subst,/,\ $(normpath,1 $(CC))) 149 .EXPORT : CC 150 .ENDIF 151 PERL_bak:=$(PERL) 152 PERL!:=$(subst,/,\ $(normpath,1 $(PERL))) 153 .EXPORT : PERL 154 PERL!:=$(PERL_bak) 155 .ENDIF | 139.ELSE # "$(COM)"=="GCC" |
156 | 140 |
157 #CONFIGURE_ACTION=cmd /c $(PERL:s!\!/!) configure 158 .IF "$(CPUNAME)"=="INTEL" 159 CONFIGURE_ACTION=$(PERL) configure $(NO_ASM) 160 CONFIGURE_FLAGS=VC-WIN32 161 .IF "$(NASM_PATH)"=="NO_NASM_HOME" 162 BUILD_ACTION=cmd /c "ms$(EMQ)\do_ms.bat $(subst,/,\ $(normpath,1 $(PERL)))" && nmake -f ms/ntdll.mak 163 .ELSE 164 BUILD_ACTION=cmd /c "ms$(EMQ)\do_nasm.bat $(subst,/,\ $(normpath,1 $(PERL)))" && nmake -f ms/ntdll.mak 165 .ENDIF 166 .ELIF "$(CPUNAME)"=="X86_64" 167 CONFIGURE_ACTION=$(PERL) configure $(NO_ASM) 168 CONFIGURE_FLAGS=VC-WIN64A 169 BUILD_ACTION=cmd /c "ms$(EMQ)\do_win64a.bat $(subst,/,\ $(normpath,1 $(PERL)))" && cmd /c "nmake -f ms/ntdll.mak" 170 .ENDIF | 141 PATCH_FILES=openssl.patch |
171 | 142 |
172 OUT2LIB = out32dll$/ssleay32.lib 173 OUT2LIB += out32dll$/libeay32.lib 174 OUT2BIN = out32dll$/ssleay32.dll 175 OUT2BIN += out32dll$/libeay32.dll 176 OUT2INC = inc32$/openssl$/* | 143 # Extract Strawberry Perl and use CONFIGURE_ACTION to insert it, and NASM which it needs, into the PATH. 144 # Also define: 145 # - certain constants absent in the old MSVC we use (INT64_MAX, INT64_MIN, UINT64_MAX). 146 # - the minimum Windows version to support (_WIN32_WINDOWS=0x0400 for Windows 95, _WIN32_WINNT=0x0400 for Windows NT 4.0). 147 # - OPENSSL_NO_ASYNC=1 to stop using async functions that require old Windows versions. 148 STRAWBERRY_PERL_DIR=$(shell cygpath -u $(SOLARSRC)/openssl/$(INPATH)/misc/build/strawberry-perl) 149 .IF "$(NASM_PATH)"=="NASM_IN_PATH" 150 CONFIGURE_PATH=$(STRAWBERRY_PERL_DIR)/perl/bin:$(PATH) 151 .ELSE 152 NASM_PATH_NIX=$(shell cygpath -u $(NASM_PATH)) 153 CONFIGURE_PATH=$(STRAWBERRY_PERL_DIR)/perl/bin:$(NASM_PATH_NIX):$(PATH) |
177 .ENDIF | 154 .ENDIF |
178.ENDIF | 155 CONFIGURE_ACTION=\ 156 if test -d "$(STRAWBERRY_PERL_DIR)"; \ 157 then echo Found Strawberry Perl; \ 158 else mkdir "$(STRAWBERRY_PERL_DIR)" && unzip -d $(STRAWBERRY_PERL_DIR) $(SOLARSRC)/../ext_sources/93fdfe261588bc82ab3a0bd4f5945b60-strawberry-perl-5.32.1.1-32bit-portable.zip ; \ 159 fi && \ 160 PATH="$(CONFIGURE_PATH)" \ 161 PERL= \ 162 CPPFLAGS="$(SOLARINC) \ 163 -DOPENSSL_NO_ASYNC=1 \ 164 -DWINVER=0x0400 \ 165 -D_WIN32_WINNT=0x0400 \ 166 -D_WIN32_WINDOWS=0x0400 \ 167 -DINT64_MAX=9223372036854775807i64 \ 168 -DINT64_MIN=(-9223372036854775807i64-1) \ 169 -DUINT64_MAX=0xffffffffffffffffui64" \ 170 RCFLAGS="$(SOLARINC)" \ 171 perl configure $(NO_ASM) 172 .IF "$(CPUNAME)"=="INTEL" 173 CONFIGURE_FLAGS=VC-WIN32 174 .ELIF "$(CPUNAME)"=="X86_64" 175 CONFIGURE_FLAGS=VC-WIN64A 176 .ENDIF 177 BUILD_ACTION=LIB="$(ILIB)" nmake |
179 | 178 |
180#set INCLUDE=D:\sol_temp\n\msvc7net3\PlatformSDK\include;D:\sol_temp\n\msvc7net3\include\ && set path=%path%;D:\sol_temp\r\btw\SRC680\perl\bin && | 179 OUT2BIN = libcrypto-3.dll 180 OUT2BIN += libssl-3.dll 181 OUT2INC = include$/openssl$/* |
181 | 182 |
183.ENDIF # "$(COM)"=="GCC" 184 185.ENDIF # "$(OS)" == "WNT" 186 187 |
|
182# --- Targets ------------------------------------------------------ 183 184.INCLUDE : set_ext.mk 185.INCLUDE : target.mk 186.INCLUDE : tg_ext.mk 187 | 188# --- Targets ------------------------------------------------------ 189 190.INCLUDE : set_ext.mk 191.INCLUDE : target.mk 192.INCLUDE : tg_ext.mk 193 |