dr78: #i115641# don't increment progress for empty repeated cells
[LibreOffice.git] / curl / makefile.mk
blobc7fca54805298cf77e327c1baeca459df70b2fad
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
57 .IF "$(OS)" == "ANDROID"
58 PATCH_FILES+=curl-android.patch
59 .ENDIF
61 #CONVERTFILES= \
62 lib$/Makefile.vc6
64 #ADDITIONAL_FILES= lib$/config-os2.h lib$/Makefile.os2
66 .IF "$(GUI)"=="UNX"
68 .IF "$(SYSBASE)"!=""
69 curl_CFLAGS+=-I$(SYSBASE)$/usr$/include
70 curl_LDFLAGS+=-L$(SYSBASE)$/usr$/lib
71 .ENDIF # "$(SYSBASE)"!=""
73 .IF "$(OS)$(CPU)"=="SOLARISU"
74 curl_CFLAGS+:=$(ARCH_FLAGS)
75 curl_LDFLAGS+:=$(ARCH_FLAGS)
76 .ENDIF
78 .IF "$(OS)"=="AIX"
79 curl_LDFLAGS+:=$(LINKFLAGS) $(LINKFLAGSRUNPATH_OOO)
80 .ENDIF
82 CONFIGURE_DIR=.$/
83 #relative to CONFIGURE_DIR
84 CONFIGURE_ACTION=.$/configure
85 .IF "$(OS)"=="IOS"
86 CONFIGURE_FLAGS=--disable-shared
87 .ELSE
88 CONFIGURE_FLAGS=--disable-static
89 .ENDIF
90 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)"
92 .IF "$(CROSS_COMPILING)"=="YES"
93 CONFIGURE_FLAGS+=--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)
94 .ENDIF
96 BUILD_DIR=$(CONFIGURE_DIR)$/lib
97 BUILD_ACTION=$(GNUMAKE)
98 BUILD_FLAGS+= -j$(EXTMAXPROCESS)
100 .IF "$(OS)"=="IOS"
101 OUT2LIB=$(BUILD_DIR)$/.libs$/libcurl.a
102 .ELIF "$(OS)"=="ANDROID"
103 OUT2LIB=$(BUILD_DIR)$/.libs$/libcurl.so
104 .ELSE
105 OUT2LIB=$(BUILD_DIR)$/.libs$/libcurl$(DLLPOST).?
106 .ENDIF
107 .ENDIF # "$(GUI)"=="UNX"
110 .IF "$(GUI)"=="WNT"
111 .IF "$(COM)"=="GCC"
112 curl_CC=$(CC) -mthreads
113 .IF "$(MINGW_SHARED_GCCLIB)"=="YES"
114 curl_CC+=-shared-libgcc
115 .ENDIF
116 curl_LIBS=-lws2_32 -lwinmm
117 .IF "$(MINGW_SHARED_GXXLIB)"=="YES"
118 curl_LIBS+=$(MINGW_SHARED_LIBSTDCPP)
119 .ENDIF
120 CONFIGURE_DIR=.$/
121 #relative to CONFIGURE_DIR
122 CONFIGURE_ACTION=.$/configure
123 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)"
124 BUILD_DIR=$(CONFIGURE_DIR)$/lib
125 BUILD_ACTION=make
126 OUT2BIN=$(BUILD_DIR)$/.libs$/libcurl*.dll
127 OUT2LIB=$(BUILD_DIR)$/.libs$/libcurl*.a
128 .ELSE
130 .IF "$(CCNUMVER)" > "001399999999"
131 EXCFLAGS="/EHa /Zc:wchar_t- /D "_CRT_SECURE_NO_DEPRECATE""
132 .ELSE
133 EXCFLAGS="/EHsc /YX"
134 .ENDIF
136 BUILD_DIR=.$/lib
138 .IF "$(CPU)" == "I"
139 MACHINE=X86
140 .ELSE
141 MACHINE=X64
142 .ENDIF
144 .IF "$(debug)"==""
145 BUILD_ACTION=nmake -f Makefile.vc9 cfg=release-dll EXCFLAGS=$(EXCFLAGS) MACHINE=$(MACHINE)
146 .ELSE
147 BUILD_ACTION=nmake -f Makefile.vc9 cfg=debug-dll EXCFLAGS=$(EXCFLAGS) MACHINE=$(MACHINE)
148 .ENDIF
150 OUT2BIN=$(BUILD_DIR)$/libcurl.dll
151 OUT2LIB=$(BUILD_DIR)$/libcurl.lib
153 .ENDIF
154 .ENDIF # "$(GUI)"=="WNT"
156 OUT2INC= \
157 include$/curl$/easy.h \
158 include$/curl$/multi.h \
159 include$/curl$/curl.h \
160 include$/curl$/curlver.h \
161 include$/curl$/types.h \
162 include$/curl$/stdcheaders.h \
163 include$/curl$/mprintf.h \
164 include$/curl$/curlbuild.h \
165 include$/curl$/curlrules.h
167 .IF "$(GUI)"=="UNX" || "$(COM)"=="GCC"
168 OUT2INC+=libcurl.pc
169 .ENDIF
171 # --- Targets ------------------------------------------------------
173 .INCLUDE : set_ext.mk
174 .INCLUDE : target.mk
175 .INCLUDE : tg_ext.mk