makefile.mk (015bfa94) | makefile.mk (8d4c92f7) |
---|---|
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 --- 28 unchanged lines hidden (view full) --- 37 @echo "Using system openssl...." 38.ENDIF 39 40.IF "$(DISABLE_OPENSSL)" == "TRUE" 41@all: 42 @echo "openssl disabled...." 43.ENDIF 44 | 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 --- 28 unchanged lines hidden (view full) --- 37 @echo "Using system openssl...." 38.ENDIF 39 40.IF "$(DISABLE_OPENSSL)" == "TRUE" 41@all: 42 @echo "openssl disabled...." 43.ENDIF 44 |
45OPENSSL_NAME=openssl-0.9.8zh | 45OPENSSL_NAME=openssl-1.0.2h |
46 47TARFILE_NAME=$(OPENSSL_NAME) | 46 47TARFILE_NAME=$(OPENSSL_NAME) |
48TARFILE_MD5=c813c065dd53d7bd0a560a870ddd0af5 | 48TARFILE_MD5=9392e65072ce4b614c1392eefc1f23d0 |
49 50CONFIGURE_DIR=. 51CONFIGURE_ACTION=config 52CONFIGURE_FLAGS=-I$(SYSBASE)$/usr$/include -L$(SYSBASE)$/usr$/lib shared 53 54BUILD_DIR=. | 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)' | 55BUILD_ACTION=make CC='$(CC)' build_libs |
56 57OUT2LIB = libssl.* 58OUT2LIB += libcrypto.* 59OUT2INC += include/openssl/* 60 61UNAME=$(shell uname) 62 | 56 57OUT2LIB = libssl.* 58OUT2LIB += libcrypto.* 59OUT2INC += include/openssl/* 60 61UNAME=$(shell uname) 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 |
|
63.IF "$(OS)" == "LINUX" || "$(OS)" == "FREEBSD" 64 PATCH_FILES=openssllnx.patch | 69.IF "$(OS)" == "LINUX" || "$(OS)" == "FREEBSD" 70 PATCH_FILES=openssllnx.patch |
65 ADDITIONAL_FILES:= \ 66 libcrypto_OOo_0_9_8zh.map \ 67 libssl_OOo_0_9_8zh.map | |
68 .IF "$(CPU)" == "I" 69 .IF "$(UNAME)" == "GNU/kFreeBSD" | 71 .IF "$(CPU)" == "I" 72 .IF "$(UNAME)" == "GNU/kFreeBSD" |
70 CONFIGURE_ACTION=Configure debian-kfreebsd-i386 | 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) |
71 .ELSE | 76 .ELSE |
72 CONFIGURE_ACTION=Configure linux-elf | 77 CONFIGURE_ACTION=Configure linux-generic32 no-dso no-shared $(NO_ASM) |
73 .ENDIF 74 .ELIF "$(BUILD64)" == "1" 75 .IF "$(UNAME)" == "GNU/kFreeBSD" | 78 .ENDIF 79 .ELIF "$(BUILD64)" == "1" 80 .IF "$(UNAME)" == "GNU/kFreeBSD" |
76 CONFIGURE_ACTION=Configure debian-kfreebsd-amd64 | 81 CONFIGURE_ACTION=Configure debian-kfreebsd-amd64 no-dso no-shared $(NO_ASM) 82 .ELIF "$(UNAME)" == "FreeBSD" 83 CONFIGURE_ACTION=Configure BSD-x86_64 no-dso no-shared $(NO_ASM) |
77 .ELSE | 84 .ELSE |
78 CONFIGURE_ACTION=Configure linux-generic64 | 85 CONFIGURE_ACTION=Configure linux-x86_64 no-dso no-shared $(NO_ASM) |
79 .ENDIF 80 .ELSE | 86 .ENDIF 87 .ELSE |
81 CONFIGURE_ACTION=Configure linux-generic32 | 88 CONFIGURE_ACTION=Configure linux-generic32 no-dso no-shared $(NO_ASM) |
82 .ENDIF 83 # if you build openssl as shared library you have to patch the Makefile.Shared "LD_LIBRARY_PATH=$$LD_LIBRARY_PATH \" 84 #BUILD_ACTION=make 'SHARED_LDFLAGS=-Wl,--version-script=./lib$$(SHLIBDIRS)_OOo_0_9_8e.map' 85.ENDIF 86 87.IF "$(OS)" == "SOLARIS" 88 PATCH_FILES=opensslsol.patch | 89 .ENDIF 90 # if you build openssl as shared library you have to patch the Makefile.Shared "LD_LIBRARY_PATH=$$LD_LIBRARY_PATH \" 91 #BUILD_ACTION=make 'SHARED_LDFLAGS=-Wl,--version-script=./lib$$(SHLIBDIRS)_OOo_0_9_8e.map' 92.ENDIF 93 94.IF "$(OS)" == "SOLARIS" 95 PATCH_FILES=opensslsol.patch |
89 ADDITIONAL_FILES:= \ 90 libcrypto_OOo_0_9_8zh.map \ 91 libssl_OOo_0_9_8zh.map | |
92 #BUILD_ACTION=make 'SHARED_LDFLAGS=-G -dy -z text -M./lib$$$$$$$$(SHLIBDIRS)_OOo_0_9_8e.map' 93 94 # Use BUILD64 when 1 to select new specific 64bit Configurations if necessary 95 96 .IF "$(CPUNAME)" == "INTEL" # Solaris INTEL 97 .IF "$(CPU)" == "X" 98 CONFIGURE_ACTION=Configure solaris64-x86_64-cc 99 .ELSE --- 42 unchanged lines hidden (view full) --- 142 .ENDIF 143 PERL_bak:=$(PERL) 144 PERL!:=$(subst,/,\ $(normpath,1 $(PERL))) 145 .EXPORT : PERL 146 PERL!:=$(PERL_bak) 147 .ENDIF 148 149 #CONFIGURE_ACTION=cmd /c $(PERL:s!\!/!) configure | 96 #BUILD_ACTION=make 'SHARED_LDFLAGS=-G -dy -z text -M./lib$$$$$$$$(SHLIBDIRS)_OOo_0_9_8e.map' 97 98 # Use BUILD64 when 1 to select new specific 64bit Configurations if necessary 99 100 .IF "$(CPUNAME)" == "INTEL" # Solaris INTEL 101 .IF "$(CPU)" == "X" 102 CONFIGURE_ACTION=Configure solaris64-x86_64-cc 103 .ELSE --- 42 unchanged lines hidden (view full) --- 146 .ENDIF 147 PERL_bak:=$(PERL) 148 PERL!:=$(subst,/,\ $(normpath,1 $(PERL))) 149 .EXPORT : PERL 150 PERL!:=$(PERL_bak) 151 .ENDIF 152 153 #CONFIGURE_ACTION=cmd /c $(PERL:s!\!/!) configure |
150 CONFIGURE_ACTION=$(PERL) configure | 154 CONFIGURE_ACTION=$(PERL) configure $(NO_ASM) |
151 CONFIGURE_FLAGS=VC-WIN32 | 155 CONFIGURE_FLAGS=VC-WIN32 |
152 BUILD_ACTION=cmd /c "ms$(EMQ)\do_ms.bat $(subst,/,\ $(normpath,1 $(PERL)))" && nmake -f ms/ntdll.mak | 156 .IF "$(NASM_PATH)"=="NO_NASM_HOME" 157 BUILD_ACTION=cmd /c "ms$(EMQ)\do_ms.bat $(subst,/,\ $(normpath,1 $(PERL)))" && nmake -f ms/ntdll.mak 158 .ELSE 159 BUILD_ACTION=cmd /c "ms$(EMQ)\do_nasm.bat $(subst,/,\ $(normpath,1 $(PERL)))" && nmake -f ms/ntdll.mak 160 .ENDIF |
153 154 OUT2LIB = out32dll$/ssleay32.lib 155 OUT2LIB += out32dll$/libeay32.lib 156 OUT2BIN = out32dll$/ssleay32.dll 157 OUT2BIN += out32dll$/libeay32.dll 158 OUT2INC = inc32$/openssl$/* 159 .ENDIF 160.ENDIF 161 | 161 162 OUT2LIB = out32dll$/ssleay32.lib 163 OUT2LIB += out32dll$/libeay32.lib 164 OUT2BIN = out32dll$/ssleay32.dll 165 OUT2BIN += out32dll$/libeay32.dll 166 OUT2INC = inc32$/openssl$/* 167 .ENDIF 168.ENDIF 169 |
162PATCH_FILES += openssl-0.9.8zh-clang.patch 163 | |
164#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 && 165 166# --- Targets ------------------------------------------------------ 167 168.INCLUDE : set_ext.mk 169.INCLUDE : target.mk 170.INCLUDE : tg_ext.mk 171 | 170#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 && 171 172# --- Targets ------------------------------------------------------ 173 174.INCLUDE : set_ext.mk 175.INCLUDE : target.mk 176.INCLUDE : tg_ext.mk 177 |