1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 # Copyright 2000, 2010 Oracle and/or its affiliates.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # This file is part of OpenOffice.org.
11 # OpenOffice.org is free software: you can redistribute it and/or modify
12 # it under the terms of the GNU Lesser General Public License version 3
13 # only, as published by the Free Software Foundation.
15 # OpenOffice.org is distributed in the hope that it will be useful,
16 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 # GNU Lesser General Public License version 3 for more details
19 # (a copy is included in the LICENSE file that accompanied this code).
21 # You should have received a copy of the GNU Lesser General Public License
22 # version 3 along with OpenOffice.org. If not, see
23 # <http://www.openoffice.org/license.html>
24 # for a copy of the LGPLv3 License.
26 #*************************************************************************
32 # --- Settings -----------------------------------------------------
34 .INCLUDE
: settings.mk
36 .IF
"$(SYSTEM_CURL)" == "YES"
38 @echo
"An already available installation of curl should exist on your system."
39 @echo
"Therefore the version provided here does not need to be built in addition."
42 # --- Files --------------------------------------------------------
44 TARFILE_NAME
=curl-7.19
.7
45 TARFILE_MD5
=ecb2e37e45c9933e2a963cabe03670ab
51 PATCH_FILES
+=curl-7.19
.7_win.patch
53 PATCH_FILES
+=curl-7.19
.7_mingw.patch
61 #ADDITIONAL_FILES= lib$/config-os2.h lib$/Makefile.os2
66 curl_CFLAGS
+=-I
$(SYSBASE
)$/usr
$/include
67 curl_LDFLAGS
+=-L
$(SYSBASE
)$/usr
$/lib
68 .ENDIF
# "$(SYSBASE)"!=""
70 .IF
"$(OS)$(CPU)"=="SOLARISU"
71 curl_CFLAGS
+:=$(ARCH_FLAGS
)
72 curl_LDFLAGS
+:=$(ARCH_FLAGS
)
76 curl_LDFLAGS
+:=$(LINKFLAGS
) $(LINKFLAGSRUNPATH_OOO
)
80 #relative to CONFIGURE_DIR
81 CONFIGURE_ACTION
=.
$/configure
83 CONFIGURE_FLAGS
=--disable-shared
85 CONFIGURE_FLAGS
=--disable-static
87 CONFIGURE_FLAGS
+= --without-ssl
--without-libidn
--enable-ftp
--enable-ipv6
--enable-http
--disable-gopher
--disable-file
--disable-ldap
--disable-telnet
--disable-dict
--without-libssh2 CPPFLAGS
="$(curl_CFLAGS)" LDFLAGS
="$(curl_LDFLAGS)"
89 .IF
"$(CROSS_COMPILING)"=="YES"
90 CONFIGURE_FLAGS
+=--build
=$(BUILD_PLATFORM
) --host
=$(HOST_PLATFORM
)
93 BUILD_DIR
=$(CONFIGURE_DIR
)$/lib
94 BUILD_ACTION
=$(GNUMAKE
)
95 BUILD_FLAGS
+= -j
$(EXTMAXPROCESS
)
98 OUT2LIB
=$(BUILD_DIR
)$/.libs
$/libcurl.a
100 OUT2LIB
=$(BUILD_DIR
)$/.libs
$/libcurl
$(DLLPOST
).?
102 .ENDIF
# "$(GUI)"=="UNX"
107 curl_CC
=$(CC
) -mthreads
108 .IF
"$(MINGW_SHARED_GCCLIB)"=="YES"
109 curl_CC
+=-shared-libgcc
111 curl_LIBS
=-lws2_32
-lwinmm
112 .IF
"$(MINGW_SHARED_GXXLIB)"=="YES"
113 curl_LIBS
+=$(MINGW_SHARED_LIBSTDCPP
)
116 #relative to CONFIGURE_DIR
117 CONFIGURE_ACTION
=.
$/configure
118 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)" CPPFLAGS
="$(INCLUDE)" OBJDUMP
="objdump" LDFLAGS
="-L$(ILIB:s/;/ -L/)" LIBS
="$(curl_LIBS)"
119 BUILD_DIR
=$(CONFIGURE_DIR
)$/lib
121 OUT2BIN
=$(BUILD_DIR
)$/.libs
$/libcurl
*.dll
122 OUT2LIB
=$(BUILD_DIR
)$/.libs
$/libcurl
*.a
125 .IF
"$(CCNUMVER)" > "001399999999"
126 EXCFLAGS
="/EHa /Zc:wchar_t- /D "_CRT_SECURE_NO_DEPRECATE
""
140 BUILD_ACTION
=nmake
-f Makefile.vc9 cfg
=release-dll EXCFLAGS
=$(EXCFLAGS
) MACHINE
=$(MACHINE
)
142 BUILD_ACTION
=nmake
-f Makefile.vc9 cfg
=debug-dll EXCFLAGS
=$(EXCFLAGS
) MACHINE
=$(MACHINE
)
145 OUT2BIN
=$(BUILD_DIR
)$/libcurl.dll
146 OUT2LIB
=$(BUILD_DIR
)$/libcurl.lib
149 .ENDIF
# "$(GUI)"=="WNT"
152 include$/curl
$/easy.h \
153 include$/curl
$/multi.h \
154 include$/curl
$/curl.h \
155 include$/curl
$/curlver.h \
156 include$/curl
$/types.h \
157 include$/curl
$/stdcheaders.h \
158 include$/curl
$/mprintf.h \
159 include$/curl
$/curlbuild.h \
160 include$/curl
$/curlrules.h
162 .IF
"$(GUI)"=="UNX" ||
"$(COM)"=="GCC"
166 # --- Targets ------------------------------------------------------
168 .INCLUDE
: set_ext.mk