1*cdf0e10cSrcweir#************************************************************************* 2*cdf0e10cSrcweir# 3*cdf0e10cSrcweir# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir# 5*cdf0e10cSrcweir# Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir# 7*cdf0e10cSrcweir# OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir# 9*cdf0e10cSrcweir# This file is part of OpenOffice.org. 10*cdf0e10cSrcweir# 11*cdf0e10cSrcweir# OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir# it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir# only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir# 15*cdf0e10cSrcweir# OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir# but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir# GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir# (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir# 21*cdf0e10cSrcweir# You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir# version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir# <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir# for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir# 26*cdf0e10cSrcweir#************************************************************************* 27*cdf0e10cSrcweirPRJ=. 28*cdf0e10cSrcweir 29*cdf0e10cSrcweirPRJNAME=so_curl 30*cdf0e10cSrcweirTARGET=so_curl 31*cdf0e10cSrcweir 32*cdf0e10cSrcweir# --- Settings ----------------------------------------------------- 33*cdf0e10cSrcweir 34*cdf0e10cSrcweir.INCLUDE : settings.mk 35*cdf0e10cSrcweir 36*cdf0e10cSrcweir.IF "$(SYSTEM_CURL)" == "YES" 37*cdf0e10cSrcweirall: 38*cdf0e10cSrcweir @echo "An already available installation of curl should exist on your system." 39*cdf0e10cSrcweir @echo "Therefore the version provided here does not need to be built in addition." 40*cdf0e10cSrcweir.ENDIF 41*cdf0e10cSrcweir 42*cdf0e10cSrcweir# --- Files -------------------------------------------------------- 43*cdf0e10cSrcweir 44*cdf0e10cSrcweirTARFILE_NAME=curl-7.19.7 45*cdf0e10cSrcweirTARFILE_MD5=ecb2e37e45c9933e2a963cabe03670ab 46*cdf0e10cSrcweirPATCH_FILES=curl-7.19.7.patch 47*cdf0e10cSrcweir 48*cdf0e10cSrcweir.IF "$(GUI)"=="WNT" 49*cdf0e10cSrcweir PATCH_FILES+=curl-7.19.7_win.patch 50*cdf0e10cSrcweir .IF "$(COM)"=="GCC" 51*cdf0e10cSrcweir PATCH_FILES+=curl-7.19.7_mingw.patch 52*cdf0e10cSrcweir .ENDIF 53*cdf0e10cSrcweir.ENDIF 54*cdf0e10cSrcweir 55*cdf0e10cSrcweir 56*cdf0e10cSrcweir#CONVERTFILES= \ 57*cdf0e10cSrcweir lib$/Makefile.vc6 58*cdf0e10cSrcweir 59*cdf0e10cSrcweir#ADDITIONAL_FILES= lib$/config-os2.h lib$/Makefile.os2 60*cdf0e10cSrcweir 61*cdf0e10cSrcweir.IF "$(GUI)"=="UNX" 62*cdf0e10cSrcweir 63*cdf0e10cSrcweir.IF "$(SYSBASE)"!="" 64*cdf0e10cSrcweircurl_CFLAGS+=-I$(SYSBASE)$/usr$/include 65*cdf0e10cSrcweircurl_LDFLAGS+=-L$(SYSBASE)$/usr$/lib 66*cdf0e10cSrcweir.ENDIF # "$(SYSBASE)"!="" 67*cdf0e10cSrcweir 68*cdf0e10cSrcweir.IF "$(OS)$(CPU)"=="SOLARISU" 69*cdf0e10cSrcweircurl_CFLAGS+:=$(ARCH_FLAGS) 70*cdf0e10cSrcweircurl_LDFLAGS+:=$(ARCH_FLAGS) 71*cdf0e10cSrcweir.ENDIF 72*cdf0e10cSrcweir 73*cdf0e10cSrcweirCONFIGURE_DIR=.$/ 74*cdf0e10cSrcweir#relative to CONFIGURE_DIR 75*cdf0e10cSrcweirCONFIGURE_ACTION=.$/configure 76*cdf0e10cSrcweirCONFIGURE_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)" 77*cdf0e10cSrcweir 78*cdf0e10cSrcweirBUILD_DIR=$(CONFIGURE_DIR)$/lib 79*cdf0e10cSrcweirBUILD_ACTION=$(GNUMAKE) 80*cdf0e10cSrcweirBUILD_FLAGS+= -j$(EXTMAXPROCESS) 81*cdf0e10cSrcweir 82*cdf0e10cSrcweirOUT2LIB=$(BUILD_DIR)$/.libs$/libcurl$(DLLPOST).4 83*cdf0e10cSrcweir.ENDIF # "$(GUI)"=="UNX" 84*cdf0e10cSrcweir 85*cdf0e10cSrcweir 86*cdf0e10cSrcweir.IF "$(GUI)"=="WNT" 87*cdf0e10cSrcweir.IF "$(COM)"=="GCC" 88*cdf0e10cSrcweircurl_CC=$(CC) -mthreads 89*cdf0e10cSrcweir.IF "$(MINGW_SHARED_GCCLIB)"=="YES" 90*cdf0e10cSrcweircurl_CC+=-shared-libgcc 91*cdf0e10cSrcweir.ENDIF 92*cdf0e10cSrcweircurl_LIBS=-lws2_32 -lwinmm 93*cdf0e10cSrcweir.IF "$(MINGW_SHARED_GXXLIB)"=="YES" 94*cdf0e10cSrcweircurl_LIBS+=$(MINGW_SHARED_LIBSTDCPP) 95*cdf0e10cSrcweir.ENDIF 96*cdf0e10cSrcweirCONFIGURE_DIR=.$/ 97*cdf0e10cSrcweir#relative to CONFIGURE_DIR 98*cdf0e10cSrcweirCONFIGURE_ACTION=.$/configure 99*cdf0e10cSrcweirCONFIGURE_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)" 100*cdf0e10cSrcweirBUILD_DIR=$(CONFIGURE_DIR)$/lib 101*cdf0e10cSrcweirBUILD_ACTION=make 102*cdf0e10cSrcweirOUT2BIN=$(BUILD_DIR)$/.libs$/libcurl*.dll 103*cdf0e10cSrcweirOUT2LIB=$(BUILD_DIR)$/.libs$/libcurl*.dll.a 104*cdf0e10cSrcweir.ELSE 105*cdf0e10cSrcweir# make use of stlport headerfiles 106*cdf0e10cSrcweirEXT_USE_STLPORT=TRUE 107*cdf0e10cSrcweir 108*cdf0e10cSrcweir.IF "$(CCNUMVER)" > "001399999999" 109*cdf0e10cSrcweirEXCFLAGS="/EHa /Zc:wchar_t- /D "_CRT_SECURE_NO_DEPRECATE"" 110*cdf0e10cSrcweir.ELSE 111*cdf0e10cSrcweirEXCFLAGS="/EHsc /YX" 112*cdf0e10cSrcweir.ENDIF 113*cdf0e10cSrcweir 114*cdf0e10cSrcweirBUILD_DIR=.$/lib 115*cdf0e10cSrcweir.IF "$(debug)"=="" 116*cdf0e10cSrcweirBUILD_ACTION=nmake -f Makefile.vc9 cfg=release-dll EXCFLAGS=$(EXCFLAGS) 117*cdf0e10cSrcweir.ELSE 118*cdf0e10cSrcweirBUILD_ACTION=nmake -f Makefile.vc9 cfg=debug-dll EXCFLAGS=$(EXCFLAGS) 119*cdf0e10cSrcweir.ENDIF 120*cdf0e10cSrcweir 121*cdf0e10cSrcweirOUT2BIN=$(BUILD_DIR)$/libcurl.dll 122*cdf0e10cSrcweirOUT2LIB=$(BUILD_DIR)$/libcurl.lib 123*cdf0e10cSrcweir 124*cdf0e10cSrcweir.ENDIF 125*cdf0e10cSrcweir.ENDIF # "$(GUI)"=="WNT" 126*cdf0e10cSrcweir 127*cdf0e10cSrcweir.IF "$(GUI)"=="OS2" 128*cdf0e10cSrcweir# make use of stlport headerfiles 129*cdf0e10cSrcweirEXT_USE_STLPORT=TRUE 130*cdf0e10cSrcweir 131*cdf0e10cSrcweirBUILD_DIR=.$/lib 132*cdf0e10cSrcweir.IF "$(debug)"=="" 133*cdf0e10cSrcweirBUILD_ACTION=make -f Makefile.os2 134*cdf0e10cSrcweir.ELSE 135*cdf0e10cSrcweirBUILD_ACTION=make -f Makefile.os2 136*cdf0e10cSrcweir.ENDIF 137*cdf0e10cSrcweir 138*cdf0e10cSrcweirOUT2BIN=$(BUILD_DIR)$/libcurl.dll 139*cdf0e10cSrcweirOUT2LIB=$(BUILD_DIR)$/libcurl.lib 140*cdf0e10cSrcweir 141*cdf0e10cSrcweir.ENDIF # "$(GUI)"=="OS2" 142*cdf0e10cSrcweir 143*cdf0e10cSrcweirOUT2INC= \ 144*cdf0e10cSrcweir include$/curl$/easy.h \ 145*cdf0e10cSrcweir include$/curl$/multi.h \ 146*cdf0e10cSrcweir include$/curl$/curl.h \ 147*cdf0e10cSrcweir include$/curl$/curlver.h \ 148*cdf0e10cSrcweir include$/curl$/types.h \ 149*cdf0e10cSrcweir include$/curl$/stdcheaders.h \ 150*cdf0e10cSrcweir include$/curl$/mprintf.h \ 151*cdf0e10cSrcweir include$/curl$/curlbuild.h \ 152*cdf0e10cSrcweir include$/curl$/curlrules.h 153*cdf0e10cSrcweir 154*cdf0e10cSrcweir# --- Targets ------------------------------------------------------ 155*cdf0e10cSrcweir 156*cdf0e10cSrcweir.INCLUDE : set_ext.mk 157*cdf0e10cSrcweir.INCLUDE : target.mk 158*cdf0e10cSrcweir.INCLUDE : tg_ext.mk 159