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 #*************************************************************************
36 # --- Settings -----------------------------------------------------
38 .INCLUDE
: settings.mk
40 .IF
"$(SYSTEM_CURL)" == "YES"
42 @echo
"An already available installation of curl should exist on your system."
43 @echo
"Therefore the version provided here does not need to be built in addition."
46 # --- Files --------------------------------------------------------
48 TARFILE_NAME
=curl-7.12
.2
49 PATCH_FILES
=curl-7.12
.2.patch
53 ADDITIONAL_FILES
= lib
$/config-os2.h lib
$/Makefile.os2
58 curl_CFLAGS
+=-I
$(SYSBASE
)$/usr
$/include
59 curl_LDFLAGS
+=-L
$(SYSBASE
)$/usr
$/lib
60 .ENDIF
# "$(SYSBASE)"!=""
62 .IF
"$(OS)$(COM)$(CPU)"=="LINUXGCCI"
63 curl_LDFLAGS
+=-Wl
,-z
,noexecstack
66 .IF
"$(OS)$(CPU)"=="SOLARISU"
67 curl_CFLAGS
+:=$(ARCH_FLAGS
)
68 curl_LDFLAGS
+:=$(ARCH_FLAGS
)
72 #relative to CONFIGURE_DIR
73 CONFIGURE_ACTION
=.
$/configure
74 CONFIGURE_FLAGS
= --without-ssl
--without-libidn
--enable-ftp
--enable-ipv6
--enable-http
--disable-gopher
--disable-file
--disable-ldap
--disable-telnet
--disable-dict
--disable-static CPPFLAGS
="$(curl_CFLAGS)" LDFLAGS
="$(curl_LDFLAGS)"
76 BUILD_DIR
=$(CONFIGURE_DIR
)$/lib
80 BUILD_ACTION
=$(GNUMAKE
)
82 BUILD_FLAGS
+= -j
$(EXTMAXPROCESS
)
84 OUT2LIB
=$(BUILD_DIR
)$/.libs
$/libcurl
$(DLLPOST
).3
85 .ENDIF
# "$(GUI)"=="UNX"
91 .IF
"$(MINGW_SHARED_GCCLIB)"=="YES"
92 curl_CC
+=-shared-libgcc
94 curl_LIBS
=-lws2_32
-lwinmm
-lmingwthrd
95 .IF
"$(MINGW_SHARED_GXXLIB)"=="YES"
99 #relative to CONFIGURE_DIR
100 CONFIGURE_ACTION
=.
$/configure
101 CONFIGURE_FLAGS
= --without-ssl
--enable-ftp
--enable-ipv6
--disable-http
--disable-gopher
--disable-file
--disable-ldap
--disable-telnet
--disable-dict
--build
=i586-pc-mingw32
--host
=i586-pc-mingw32 CC
="$(curl_CC)" OBJDUMP
="$(WRAPCMD) objdump" CFLAGS
=-D_MT LDFLAGS
="-L$(ILIB:s/;/ -L/)" LIBS
="$(curl_LIBS)"
102 BUILD_DIR
=$(CONFIGURE_DIR
)$/lib
104 OUT2BIN
=$(BUILD_DIR
)$/.libs
$/libcurl
*.dll
105 OUT2LIB
=$(BUILD_DIR
)$/.libs
$/libcurl
*.a
107 # make use of stlport headerfiles
110 .IF
"$(CCNUMVER)" > "001399999999"
111 EXCFLAGS
="/EHa /Zc:wchar_t- /D "_CRT_SECURE_NO_DEPRECATE
""
118 BUILD_ACTION
=nmake
-f Makefile.vc6 cfg
=release-dll EXCFLAGS
=$(EXCFLAGS
)
120 BUILD_ACTION
=nmake
-f Makefile.vc6 cfg
=debug-dll EXCFLAGS
=$(EXCFLAGS
)
123 OUT2BIN
=$(BUILD_DIR
)$/libcurl.dll
124 OUT2LIB
=$(BUILD_DIR
)$/libcurl.lib
127 .ENDIF
# "$(GUI)"=="WNT"
130 # make use of stlport headerfiles
135 BUILD_ACTION
=make
-f Makefile.os2
137 BUILD_ACTION
=make
-f Makefile.os2
140 OUT2BIN
=$(BUILD_DIR
)$/libcurl.dll
141 OUT2LIB
=$(BUILD_DIR
)$/libcurl.lib
143 .ENDIF
# "$(GUI)"=="OS2"
146 include$/curl
$/easy.h \
147 include$/curl
$/multi.h \
148 include$/curl
$/curl.h \
149 include$/curl
$/curlver.h \
150 include$/curl
$/types.h \
151 include$/curl
$/stdcheaders.h \
152 include$/curl
$/mprintf.h
154 # --- Targets ------------------------------------------------------
156 .INCLUDE
: set_ext.mk