default to gb_Deliver_CLEARONDELIVER == as multiuserenv are rare now
[LibreOffice.git] / curl / makefile.mk
blob66b8d9bbbdd6add6b41e898c7624b2bdbdb15351
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
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 #*************************************************************************
27 PRJ=.
29 PRJNAME=so_curl
30 TARGET=so_curl
32 # --- Settings -----------------------------------------------------
34 .INCLUDE : settings.mk
36 .IF "$(SYSTEM_CURL)" == "YES"
37 all:
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."
40 .ENDIF
42 # --- Files --------------------------------------------------------
44 TARFILE_NAME=curl-7.19.7
45 TARFILE_MD5=ecb2e37e45c9933e2a963cabe03670ab
46 PATCH_FILES=\
47 curl-7.19.7.patch \
48 curl-aix.patch
50 .IF "$(GUI)"=="WNT"
51 PATCH_FILES+=curl-7.19.7_win.patch
52 .IF "$(COM)"=="GCC"
53 PATCH_FILES+=curl-7.19.7_mingw.patch
54 .ENDIF
55 .ENDIF
58 #CONVERTFILES= \
59 lib$/Makefile.vc6
61 #ADDITIONAL_FILES= lib$/config-os2.h lib$/Makefile.os2
63 .IF "$(GUI)"=="UNX"
65 .IF "$(SYSBASE)"!=""
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)
73 .ENDIF
75 .IF "$(OS)"=="AIX"
76 curl_LDFLAGS+:=$(LINKFLAGS) $(LINKFLAGSRUNPATH_OOO)
77 .ENDIF
79 CONFIGURE_DIR=.$/
80 #relative to CONFIGURE_DIR
81 CONFIGURE_ACTION=.$/configure
82 .IF "$(OS)"=="IOS"
83 CONFIGURE_FLAGS=--disable-shared
84 .ELSE
85 CONFIGURE_FLAGS=--disable-static
86 .ENDIF
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)
91 .ENDIF
93 BUILD_DIR=$(CONFIGURE_DIR)$/lib
94 BUILD_ACTION=$(GNUMAKE)
95 BUILD_FLAGS+= -j$(EXTMAXPROCESS)
97 .IF "$(OS)"=="IOS"
98 OUT2LIB=$(BUILD_DIR)$/.libs$/libcurl.a
99 .ELSE
100 OUT2LIB=$(BUILD_DIR)$/.libs$/libcurl$(DLLPOST).?
101 .ENDIF
102 .ENDIF # "$(GUI)"=="UNX"
105 .IF "$(GUI)"=="WNT"
106 .IF "$(COM)"=="GCC"
107 curl_CC=$(CC) -mthreads
108 .IF "$(MINGW_SHARED_GCCLIB)"=="YES"
109 curl_CC+=-shared-libgcc
110 .ENDIF
111 curl_LIBS=-lws2_32 -lwinmm
112 .IF "$(MINGW_SHARED_GXXLIB)"=="YES"
113 curl_LIBS+=$(MINGW_SHARED_LIBSTDCPP)
114 .ENDIF
115 CONFIGURE_DIR=.$/
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
120 BUILD_ACTION=make
121 OUT2BIN=$(BUILD_DIR)$/.libs$/libcurl*.dll
122 OUT2LIB=$(BUILD_DIR)$/.libs$/libcurl*.a
123 .ELSE
125 .IF "$(CCNUMVER)" > "001399999999"
126 EXCFLAGS="/EHa /Zc:wchar_t- /D "_CRT_SECURE_NO_DEPRECATE""
127 .ELSE
128 EXCFLAGS="/EHsc /YX"
129 .ENDIF
131 BUILD_DIR=.$/lib
133 .IF "$(CPU)" == "I"
134 MACHINE=X86
135 .ELSE
136 MACHINE=X64
137 .ENDIF
139 .IF "$(debug)"==""
140 BUILD_ACTION=nmake -f Makefile.vc9 cfg=release-dll EXCFLAGS=$(EXCFLAGS) MACHINE=$(MACHINE)
141 .ELSE
142 BUILD_ACTION=nmake -f Makefile.vc9 cfg=debug-dll EXCFLAGS=$(EXCFLAGS) MACHINE=$(MACHINE)
143 .ENDIF
145 OUT2BIN=$(BUILD_DIR)$/libcurl.dll
146 OUT2LIB=$(BUILD_DIR)$/libcurl.lib
148 .ENDIF
149 .ENDIF # "$(GUI)"=="WNT"
151 OUT2INC= \
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"
163 OUT2INC+=libcurl.pc
164 .ENDIF
166 # --- Targets ------------------------------------------------------
168 .INCLUDE : set_ext.mk
169 .INCLUDE : target.mk
170 .INCLUDE : tg_ext.mk