2007-10-02 03:03:13 -05:00
|
|
|
#*************************************************************************
|
|
|
|
#
|
2008-04-11 01:09:41 -05:00
|
|
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2010-06-07 06:32:25 -05:00
|
|
|
#
|
2010-02-12 08:01:35 -06:00
|
|
|
# Copyright 2000, 2010 Oracle and/or its affiliates.
|
2007-10-02 03:03:13 -05:00
|
|
|
#
|
2008-04-11 01:09:41 -05:00
|
|
|
# OpenOffice.org - a multi-platform office productivity suite
|
2007-10-02 03:03:13 -05:00
|
|
|
#
|
2008-04-11 01:09:41 -05:00
|
|
|
# This file is part of OpenOffice.org.
|
2007-10-02 03:03:13 -05:00
|
|
|
#
|
2008-04-11 01:09:41 -05:00
|
|
|
# OpenOffice.org is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU Lesser General Public License version 3
|
|
|
|
# only, as published by the Free Software Foundation.
|
2007-10-02 03:03:13 -05:00
|
|
|
#
|
2008-04-11 01:09:41 -05:00
|
|
|
# OpenOffice.org is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU Lesser General Public License version 3 for more details
|
|
|
|
# (a copy is included in the LICENSE file that accompanied this code).
|
2007-10-02 03:03:13 -05:00
|
|
|
#
|
2008-04-11 01:09:41 -05:00
|
|
|
# You should have received a copy of the GNU Lesser General Public License
|
|
|
|
# version 3 along with OpenOffice.org. If not, see
|
|
|
|
# <http://www.openoffice.org/license.html>
|
|
|
|
# for a copy of the LGPLv3 License.
|
2007-10-02 03:03:13 -05:00
|
|
|
#
|
|
|
|
#*************************************************************************
|
|
|
|
|
|
|
|
PRJ=.
|
|
|
|
|
2007-10-23 07:41:31 -05:00
|
|
|
PRJNAME=openssl
|
|
|
|
TARGET=openssl
|
2007-10-02 03:03:13 -05:00
|
|
|
|
|
|
|
# --- Settings -----------------------------------------------------
|
|
|
|
|
|
|
|
.INCLUDE : settings.mk
|
|
|
|
|
|
|
|
# --- Files --------------------------------------------------------
|
|
|
|
|
|
|
|
.IF "$(SYSTEM_OPENSSL)" == "YES"
|
|
|
|
@all:
|
|
|
|
@echo "Using system openssl...."
|
|
|
|
.ENDIF
|
|
|
|
|
|
|
|
.IF "$(DISABLE_OPENSSL)" == "TRUE"
|
|
|
|
@all:
|
|
|
|
@echo "openssl disabled...."
|
|
|
|
.ENDIF
|
|
|
|
|
2010-06-07 06:32:25 -05:00
|
|
|
OPENSSL_NAME=openssl-0.9.8o
|
2007-10-02 03:03:13 -05:00
|
|
|
|
|
|
|
TARFILE_NAME=$(OPENSSL_NAME)
|
2010-06-07 06:32:25 -05:00
|
|
|
TARFILE_MD5=63ddc5116488985e820075e65fbe6aa4
|
2007-10-02 03:03:13 -05:00
|
|
|
|
|
|
|
CONFIGURE_DIR=.
|
|
|
|
CONFIGURE_ACTION=config
|
2010-09-16 00:12:28 -05:00
|
|
|
CONFIGURE_FLAGS=-I$(SYSBASE)$/usr$/include -L$(SYSBASE)$/usr$/lib shared no-idea
|
2007-10-02 03:03:13 -05:00
|
|
|
|
2007-10-17 10:03:28 -05:00
|
|
|
BUILD_DIR=.
|
2011-07-27 03:16:30 -05:00
|
|
|
|
|
|
|
COMPILER_AND_FLAGS=$(CC)
|
|
|
|
#See fdo#35404 If we're only interested in getting a .a (i.e. not windows) then
|
|
|
|
#force everything, when possible, as hidden symbols
|
|
|
|
.IF "$(OS)" != "WNT" && "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE"
|
|
|
|
COMPILER_AND_FLAGS+=-fvisibility=hidden
|
|
|
|
.ENDIF
|
|
|
|
|
|
|
|
BUILD_ACTION=make build_libs CC='$(COMPILER_AND_FLAGS)'
|
2007-10-17 10:03:28 -05:00
|
|
|
|
2007-10-19 06:52:28 -05:00
|
|
|
OUT2LIB = libssl.*
|
|
|
|
OUT2LIB += libcrypto.*
|
|
|
|
OUT2INC += include/openssl/*
|
2007-10-17 10:03:28 -05:00
|
|
|
|
2010-04-17 07:38:13 -05:00
|
|
|
UNAME=$(shell uname)
|
|
|
|
|
2011-06-09 15:26:23 -05:00
|
|
|
.IF "$(OS)" == "LINUX" || "$(OS)" == "FREEBSD" || "$(OS)" == "ANDROID"
|
2009-02-19 01:29:28 -06:00
|
|
|
PATCH_FILES=openssllnx.patch
|
2008-01-29 04:40:36 -06:00
|
|
|
ADDITIONAL_FILES:= \
|
2010-06-07 06:32:25 -05:00
|
|
|
libcrypto_OOo_0_9_8o.map \
|
|
|
|
libssl_OOo_0_9_8o.map
|
2009-10-01 04:16:17 -05:00
|
|
|
.IF "$(CPU)" == "I"
|
2010-04-17 07:38:13 -05:00
|
|
|
.IF "$(UNAME)" == "GNU/kFreeBSD"
|
|
|
|
CONFIGURE_ACTION=Configure debian-kfreebsd-i386
|
|
|
|
.ELSE
|
|
|
|
CONFIGURE_ACTION=Configure linux-elf
|
|
|
|
.ENDIF
|
2009-10-01 04:16:17 -05:00
|
|
|
.ELIF "$(BUILD64)" == "1"
|
2010-04-17 07:38:13 -05:00
|
|
|
.IF "$(UNAME)" == "GNU/kFreeBSD"
|
|
|
|
CONFIGURE_ACTION=Configure debian-kfreebsd-amd64
|
|
|
|
.ELSE
|
|
|
|
CONFIGURE_ACTION=Configure linux-generic64
|
|
|
|
.ENDIF
|
2009-06-03 11:42:24 -05:00
|
|
|
.ELSE
|
2009-10-01 04:16:17 -05:00
|
|
|
CONFIGURE_ACTION=Configure linux-generic32
|
2009-06-03 11:42:24 -05:00
|
|
|
.ENDIF
|
2008-01-29 04:40:36 -06:00
|
|
|
# if you build openssl as shared library you have to patch the Makefile.Shared "LD_LIBRARY_PATH=$$LD_LIBRARY_PATH \"
|
|
|
|
#BUILD_ACTION=make 'SHARED_LDFLAGS=-Wl,--version-script=./lib$$(SHLIBDIRS)_OOo_0_9_8e.map'
|
2007-10-17 10:03:28 -05:00
|
|
|
.ENDIF
|
|
|
|
|
2007-10-02 03:03:13 -05:00
|
|
|
.IF "$(OS)" == "SOLARIS"
|
2009-02-19 01:29:28 -06:00
|
|
|
PATCH_FILES=opensslsol.patch
|
2008-01-29 04:40:36 -06:00
|
|
|
ADDITIONAL_FILES:= \
|
2010-06-07 06:32:25 -05:00
|
|
|
libcrypto_OOo_0_9_8o.map \
|
|
|
|
libssl_OOo_0_9_8o.map
|
2008-01-29 04:40:36 -06:00
|
|
|
#BUILD_ACTION=make 'SHARED_LDFLAGS=-G -dy -z text -M./lib$$$$$$$$(SHLIBDIRS)_OOo_0_9_8e.map'
|
|
|
|
|
2009-10-01 04:16:17 -05:00
|
|
|
# Use BUILD64 when 1 to select new specific 64bit Configurations if necessary
|
2008-01-29 04:40:36 -06:00
|
|
|
|
2009-10-01 04:16:17 -05:00
|
|
|
.IF "$(CPUNAME)" == "INTEL" # Solaris INTEL
|
2009-06-03 11:42:24 -05:00
|
|
|
.IF "$(CPU)" == "X"
|
2008-01-29 04:40:36 -06:00
|
|
|
CONFIGURE_ACTION=Configure solaris64-x86_64-cc
|
|
|
|
.ELSE
|
|
|
|
CONFIGURE_ACTION=Configure solaris-x86-cc
|
|
|
|
.ENDIF
|
2009-10-01 04:16:17 -05:00
|
|
|
.ELIF "$(CPU)" == "U" # Solaris SPARC
|
|
|
|
CONFIGURE_ACTION=Configure solaris64-sparcv9-cc
|
2008-01-29 04:40:36 -06:00
|
|
|
.ELSE
|
2009-10-01 04:16:17 -05:00
|
|
|
CONFIGURE_ACTION=Configure solaris-sparcv9-cc
|
|
|
|
.ENDIF
|
2007-10-10 06:36:38 -05:00
|
|
|
.ENDIF
|
2007-10-02 03:03:13 -05:00
|
|
|
|
2011-06-12 18:06:08 -05:00
|
|
|
.IF "$(OS)" == "IOS"
|
|
|
|
PATCH_FILES=opensslios.patch
|
|
|
|
CONFIGURE_ACTION=Configure ios-armv7
|
|
|
|
CONFIGURE_FLAGS=no-shared no-idea
|
|
|
|
.ENDIF
|
|
|
|
|
2007-10-02 03:03:13 -05:00
|
|
|
.IF "$(OS)" == "WNT"
|
2008-01-04 09:18:15 -06:00
|
|
|
|
|
|
|
.IF "$(COM)"=="GCC"
|
2009-02-19 01:29:28 -06:00
|
|
|
PATCH_FILES=opensslmingw.patch
|
2008-01-04 09:18:15 -06:00
|
|
|
CONFIGURE_ACTION=$(PERL) configure
|
|
|
|
CONFIGURE_FLAGS=mingw shared
|
|
|
|
INSTALL_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
|
|
|
|
OUT2LIB = libcrypto_static.*
|
|
|
|
OUT2LIB += libssl_static.*
|
|
|
|
OUT2LIB += libcrypto.*
|
|
|
|
OUT2LIB += libssl.*
|
|
|
|
OUT2BIN = ssleay32.dll
|
|
|
|
OUT2BIN += libeay32.dll
|
|
|
|
.ELSE
|
2007-10-24 09:07:50 -05:00
|
|
|
|
2009-02-19 01:29:28 -06:00
|
|
|
PATCH_FILES=openssl.patch
|
2008-01-29 04:40:36 -06:00
|
|
|
.IF "$(MAKETARGETS)" == ""
|
|
|
|
# The env. vars CC and PERL are used by nmake, and nmake insists on '\'s
|
|
|
|
# If WRAPCMD is set it is prepended before the compiler, don't touch that.
|
|
|
|
.IF "$(WRAPCMD)"==""
|
2010-06-07 06:32:25 -05:00
|
|
|
CC!:=$(subst,/,\ $(normpath,1 $(CC)))
|
2008-01-29 04:40:36 -06:00
|
|
|
.EXPORT : CC
|
|
|
|
.ENDIF
|
|
|
|
PERL_bak:=$(PERL)
|
|
|
|
PERL!:=$(subst,/,\ $(normpath,1 $(PERL)))
|
|
|
|
.EXPORT : PERL
|
|
|
|
PERL!:=$(PERL_bak)
|
|
|
|
.ENDIF
|
|
|
|
|
|
|
|
#CONFIGURE_ACTION=cmd /c $(PERL:s!\!/!) configure
|
|
|
|
CONFIGURE_ACTION=$(PERL) configure
|
2011-01-24 03:44:43 -06:00
|
|
|
.IF "$(CPU)" == "I"
|
2011-01-23 10:49:49 -06:00
|
|
|
OPENSSL_PLATFORM=VC-WIN32
|
|
|
|
.ELSE
|
|
|
|
OPENSSL_PLATFORM=VC-WIN64A
|
|
|
|
.ENDIF
|
|
|
|
CONFIGURE_FLAGS=$(OPENSSL_PLATFORM) no-idea
|
|
|
|
BUILD_ACTION=cmd /c "ms$(EMQ)\do_ms.bat $(subst,/,\ $(normpath,1 $(PERL))) $(OPENSSL_PLATFORM)" && nmake -f ms/ntdll.mak
|
2008-01-29 04:40:36 -06:00
|
|
|
|
|
|
|
OUT2LIB = out32dll$/ssleay32.lib
|
|
|
|
OUT2LIB += out32dll$/libeay32.lib
|
|
|
|
OUT2BIN = out32dll$/ssleay32.dll
|
|
|
|
OUT2BIN += out32dll$/libeay32.dll
|
|
|
|
OUT2INC = inc32$/openssl$/*
|
|
|
|
.ENDIF
|
2007-10-24 09:07:50 -05:00
|
|
|
.ENDIF
|
2007-10-02 03:03:13 -05:00
|
|
|
|
|
|
|
#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 &&
|
|
|
|
|
|
|
|
# --- Targets ------------------------------------------------------
|
|
|
|
|
|
|
|
.INCLUDE : set_ext.mk
|
|
|
|
.INCLUDE : target.mk
|
|
|
|
.INCLUDE : tg_ext.mk
|
|
|
|
|