1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
13 # This file is part of OpenOffice.org.
15 # OpenOffice.org is free software: you can redistribute it and/or modify
16 # it under the terms of the GNU Lesser General Public License version 3
17 # only, as published by the Free Software Foundation.
19 # OpenOffice.org is distributed in the hope that it will be useful,
20 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 # GNU Lesser General Public License version 3 for more details
23 # (a copy is included in the LICENSE file that accompanied this code).
25 # You should have received a copy of the GNU Lesser General Public License
26 # version 3 along with OpenOffice.org. If not, see
27 # <http://www.openoffice.org/license.html>
28 # for a copy of the LGPLv3 License.
30 #*************************************************************************
37 # --- Settings -----------------------------------------------------
39 .INCLUDE
: settings.mk
41 # --- Files --------------------------------------------------------
43 .IF
"$(SYSTEM_OPENSSL)" == "YES"
45 @echo
"Using system openssl...."
48 .IF
"$(DISABLE_OPENSSL)" == "TRUE"
50 @echo
"openssl disabled...."
53 OPENSSL_NAME
=openssl-0.9
.8k
55 TARFILE_NAME
=$(OPENSSL_NAME
)
58 CONFIGURE_ACTION
=config
59 CONFIGURE_FLAGS
=-I
$(SYSBASE
)$/usr
$/include -L
$(SYSBASE
)$/usr
$/lib shared no-idea
62 BUILD_ACTION
=make CC
='$(CC)'
65 OUT2LIB
+= libcrypto.
*
66 OUT2INC
+= include/openssl
/*
68 .IF
"$(OS)" == "LINUX"
69 PATCH_FILE_NAME
=openssllnx.patch
71 libcrypto_OOo_0_9_8k.map \
73 # if you build openssl as shared library you have to patch the Makefile.Shared "LD_LIBRARY_PATH=$$LD_LIBRARY_PATH \"
74 #BUILD_ACTION=make 'SHARED_LDFLAGS=-Wl,--version-script=./lib$$(SHLIBDIRS)_OOo_0_9_8e.map'
77 .IF
"$(OS)" == "SOLARIS"
78 PATCH_FILE_NAME
=opensslsol.patch
80 libcrypto_OOo_0_9_8k.map \
82 #BUILD_ACTION=make 'SHARED_LDFLAGS=-G -dy -z text -M./lib$$$$$$$$(SHLIBDIRS)_OOo_0_9_8e.map'
84 # We need a 64 BIT switch (currently I disable 64 Bit by default).
85 # Please replace this with a global switch if available
89 .IF
"$(CPUNAME)" == "INTEL"
90 .IF
"$(USE_64)" == "1"
91 CONFIGURE_ACTION
=Configure solaris64-x86_64-cc
93 CONFIGURE_ACTION
=Configure solaris-x86-cc
98 CONFIGURE_ACTION
=Configure solaris64-sparcv9-cc
106 PATCH_FILE_NAME
=opensslmingw.patch
107 .IF
"$(USE_MINGW)" == "cygwin"
108 CONFIGURE_ACTION
=$(PERL
) configure
109 CONFIGURE_FLAGS
=mingw shared
110 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
111 OUT2LIB
= libcrypto_static.
*
112 OUT2LIB
+= libssl_static.
*
113 OUT2LIB
+= libcrypto.
*
115 OUT2BIN
= ssleay32.dll
116 OUT2BIN
+= libeay32.dll
119 BUILD_ACTION
=cmd
/c
"ms\mingw32"
120 OUT2LIB
= out
/libcrypto_static.
*
121 OUT2LIB
+= out
/libssl_static.
*
122 OUT2LIB
+= out
/libcrypto.
*
123 OUT2LIB
+= out
/libssl.
*
124 OUT2BIN
= out
/ssleay32.dll
125 OUT2BIN
+= out
/libeay32.dll
129 PATCH_FILE_NAME
=openssl.patch
130 .IF
"$(MAKETARGETS)" == ""
131 # The env. vars CC and PERL are used by nmake, and nmake insists on '\'s
132 # If WRAPCMD is set it is prepended before the compiler, don't touch that.
134 CC
!:=$(subst,/,\
$(normpath
,1 $(CC
)))
138 PERL
!:=$(subst,/,\
$(normpath
,1 $(PERL
)))
143 #CONFIGURE_ACTION=cmd /c $(PERL:s!\!/!) configure
144 CONFIGURE_ACTION
=$(PERL
) configure
145 CONFIGURE_FLAGS
=VC-WIN32 no-idea
146 BUILD_ACTION
=cmd
/c
"ms$(EMQ)\do_ms.bat $(subst,/,\ $(normpath,1 $(PERL)))" && nmake
-f ms
/ntdll.mak
148 OUT2LIB
= out32dll
$/ssleay32.lib
149 OUT2LIB
+= out32dll
$/libeay32.lib
150 OUT2BIN
= out32dll
$/ssleay32.dll
151 OUT2BIN
+= out32dll
$/libeay32.dll
152 OUT2INC
= inc32
$/openssl
$/*
156 #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 &&
158 # --- Targets ------------------------------------------------------
160 .INCLUDE
: set_ext.mk