fix toolbar import
[ooovba.git] / openssl / makefile.mk
blobb11274ab1bdd3e49b3b1dd7c7f8e8362b1f166ec
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
11 # $Revision: 1.26 $
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 #*************************************************************************
32 PRJ=.
34 PRJNAME=openssl
35 TARGET=openssl
37 # --- Settings -----------------------------------------------------
39 .INCLUDE : settings.mk
41 # --- Files --------------------------------------------------------
43 .IF "$(SYSTEM_OPENSSL)" == "YES"
44 @all:
45 @echo "Using system openssl...."
46 .ENDIF
48 .IF "$(DISABLE_OPENSSL)" == "TRUE"
49 @all:
50 @echo "openssl disabled...."
51 .ENDIF
53 OPENSSL_NAME=openssl-0.9.8k
55 TARFILE_NAME=$(OPENSSL_NAME)
57 CONFIGURE_DIR=.
58 CONFIGURE_ACTION=config
59 CONFIGURE_FLAGS=-I$(SYSBASE)$/usr$/include -L$(SYSBASE)$/usr$/lib shared no-idea
61 BUILD_DIR=.
62 BUILD_ACTION=make CC='$(CC)'
64 OUT2LIB = libssl.*
65 OUT2LIB += libcrypto.*
66 OUT2INC += include/openssl/*
68 .IF "$(OS)" == "LINUX"
69 PATCH_FILE_NAME=openssllnx.patch
70 ADDITIONAL_FILES:= \
71 libcrypto_OOo_0_9_8k.map \
72 libssl_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'
75 .ENDIF
77 .IF "$(OS)" == "SOLARIS"
78 PATCH_FILE_NAME=opensslsol.patch
79 ADDITIONAL_FILES:= \
80 libcrypto_OOo_0_9_8k.map \
81 libssl_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
86 #USE_64 = 1
88 # Solaris INTEL
89 .IF "$(CPUNAME)" == "INTEL"
90 .IF "$(USE_64)" == "1"
91 CONFIGURE_ACTION=Configure solaris64-x86_64-cc
92 .ELSE
93 CONFIGURE_ACTION=Configure solaris-x86-cc
94 .ENDIF
95 .ELSE
96 # Solaris SPARC
97 .IF "$(CPU)" == "U"
98 CONFIGURE_ACTION=Configure solaris64-sparcv9-cc
99 .ENDIF
100 .ENDIF
101 .ENDIF
103 .IF "$(OS)" == "WNT"
105 .IF "$(COM)"=="GCC"
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.*
114 OUT2LIB += libssl.*
115 OUT2BIN = ssleay32.dll
116 OUT2BIN += libeay32.dll
117 .ELSE
118 CONFIGURE_ACTION=
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
126 .ENDIF
127 .ELSE
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.
133 .IF "$(WRAPCMD)"==""
134 CC!:=$(subst,/,\ $(normpath,1 $(CC)))
135 .EXPORT : CC
136 .ENDIF
137 PERL_bak:=$(PERL)
138 PERL!:=$(subst,/,\ $(normpath,1 $(PERL)))
139 .EXPORT : PERL
140 PERL!:=$(PERL_bak)
141 .ENDIF
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$/*
153 .ENDIF
154 .ENDIF
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
161 .INCLUDE : target.mk
162 .INCLUDE : tg_ext.mk