17871dc3eSAndrew Rist#************************************************************** 27871dc3eSAndrew Rist# 37871dc3eSAndrew Rist# Licensed to the Apache Software Foundation (ASF) under one 47871dc3eSAndrew Rist# or more contributor license agreements. See the NOTICE file 57871dc3eSAndrew Rist# distributed with this work for additional information 67871dc3eSAndrew Rist# regarding copyright ownership. The ASF licenses this file 77871dc3eSAndrew Rist# to you under the Apache License, Version 2.0 (the 87871dc3eSAndrew Rist# "License"); you may not use this file except in compliance 97871dc3eSAndrew Rist# with the License. You may obtain a copy of the License at 107871dc3eSAndrew Rist# 117871dc3eSAndrew Rist# http://www.apache.org/licenses/LICENSE-2.0 127871dc3eSAndrew Rist# 137871dc3eSAndrew Rist# Unless required by applicable law or agreed to in writing, 147871dc3eSAndrew Rist# software distributed under the License is distributed on an 157871dc3eSAndrew Rist# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 167871dc3eSAndrew Rist# KIND, either express or implied. See the License for the 177871dc3eSAndrew Rist# specific language governing permissions and limitations 187871dc3eSAndrew Rist# under the License. 197871dc3eSAndrew Rist# 207871dc3eSAndrew Rist#************************************************************** 217871dc3eSAndrew Rist 227871dc3eSAndrew Rist 23cdf0e10cSrcweirPRJ=. 24cdf0e10cSrcweir 25cdf0e10cSrcweirPRJNAME=so_curl 26cdf0e10cSrcweirTARGET=so_curl 27cdf0e10cSrcweir 28cdf0e10cSrcweir# --- Settings ----------------------------------------------------- 29cdf0e10cSrcweir 30cdf0e10cSrcweir.INCLUDE : settings.mk 31cdf0e10cSrcweir 32cdf0e10cSrcweir.IF "$(SYSTEM_CURL)" == "YES" 33cdf0e10cSrcweirall: 34cdf0e10cSrcweir @echo "An already available installation of curl should exist on your system." 35cdf0e10cSrcweir @echo "Therefore the version provided here does not need to be built in addition." 36cdf0e10cSrcweir.ENDIF 37cdf0e10cSrcweir 38cdf0e10cSrcweir# --- Files -------------------------------------------------------- 39cdf0e10cSrcweir 40*4169bb5fSDon LewisTARFILE_NAME=curl-7.66.0 41*4169bb5fSDon LewisTARFILE_MD5=8cb2898a9adc106075ac3cdc2b965bf6 42*4169bb5fSDon LewisPATCH_FILES=buildssh.patch 43cdf0e10cSrcweir 44cdf0e10cSrcweir#ADDITIONAL_FILES= lib$/config-os2.h lib$/Makefile.os2 45cdf0e10cSrcweir 46cdf0e10cSrcweir.IF "$(GUI)"=="UNX" 47cdf0e10cSrcweir 48cdf0e10cSrcweir.IF "$(SYSBASE)"!="" 49cdf0e10cSrcweircurl_CFLAGS+=-I$(SYSBASE)$/usr$/include 50cdf0e10cSrcweircurl_LDFLAGS+=-L$(SYSBASE)$/usr$/lib 51cdf0e10cSrcweir.ENDIF # "$(SYSBASE)"!="" 52cdf0e10cSrcweir 53cdf0e10cSrcweir.IF "$(OS)$(CPU)"=="SOLARISU" 54cdf0e10cSrcweircurl_CFLAGS+:=$(ARCH_FLAGS) 55cdf0e10cSrcweircurl_LDFLAGS+:=$(ARCH_FLAGS) 56cdf0e10cSrcweir.ENDIF 57cdf0e10cSrcweir 58cdf0e10cSrcweirCONFIGURE_DIR=.$/ 59cdf0e10cSrcweir#relative to CONFIGURE_DIR 60cdf0e10cSrcweirCONFIGURE_ACTION=.$/configure 61cdf0e10cSrcweirCONFIGURE_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)" 62cdf0e10cSrcweir 63cdf0e10cSrcweirBUILD_DIR=$(CONFIGURE_DIR)$/lib 64cdf0e10cSrcweirBUILD_ACTION=$(GNUMAKE) 65cdf0e10cSrcweirBUILD_FLAGS+= -j$(EXTMAXPROCESS) 66cdf0e10cSrcweir 67cdf0e10cSrcweirOUT2LIB=$(BUILD_DIR)$/.libs$/libcurl$(DLLPOST).4 68cdf0e10cSrcweir.ENDIF # "$(GUI)"=="UNX" 69cdf0e10cSrcweir 70cdf0e10cSrcweir 71cdf0e10cSrcweir.IF "$(GUI)"=="WNT" 72cdf0e10cSrcweir.IF "$(COM)"=="GCC" 73cdf0e10cSrcweircurl_CC=$(CC) -mthreads 74cdf0e10cSrcweir.IF "$(MINGW_SHARED_GCCLIB)"=="YES" 75cdf0e10cSrcweircurl_CC+=-shared-libgcc 76cdf0e10cSrcweir.ENDIF 77cdf0e10cSrcweircurl_LIBS=-lws2_32 -lwinmm 78cdf0e10cSrcweir.IF "$(MINGW_SHARED_GXXLIB)"=="YES" 79cdf0e10cSrcweircurl_LIBS+=$(MINGW_SHARED_LIBSTDCPP) 80cdf0e10cSrcweir.ENDIF 81cdf0e10cSrcweirCONFIGURE_DIR=.$/ 82cdf0e10cSrcweir#relative to CONFIGURE_DIR 83cdf0e10cSrcweirCONFIGURE_ACTION=.$/configure 84cdf0e10cSrcweirCONFIGURE_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)" 85cdf0e10cSrcweirBUILD_DIR=$(CONFIGURE_DIR)$/lib 86cdf0e10cSrcweirBUILD_ACTION=make 87cdf0e10cSrcweirOUT2BIN=$(BUILD_DIR)$/.libs$/libcurl*.dll 88cdf0e10cSrcweirOUT2LIB=$(BUILD_DIR)$/.libs$/libcurl*.dll.a 89cdf0e10cSrcweir.ELSE 90cdf0e10cSrcweir# make use of stlport headerfiles 91cdf0e10cSrcweirEXT_USE_STLPORT=TRUE 92cdf0e10cSrcweir 93cdf0e10cSrcweir.IF "$(CCNUMVER)" > "001399999999" 94cdf0e10cSrcweirEXCFLAGS="/EHa /Zc:wchar_t- /D "_CRT_SECURE_NO_DEPRECATE"" 95cdf0e10cSrcweir.ELSE 96cdf0e10cSrcweirEXCFLAGS="/EHsc /YX" 97cdf0e10cSrcweir.ENDIF 98cdf0e10cSrcweir 99e35fcbcfSDamjan Jovanovic.IF "$(CPUNAME)"=="INTEL" 100e35fcbcfSDamjan Jovanoviccurl_MACHINE:="X86" 101e35fcbcfSDamjan Jovanovic.ELIF "$(CPUNAME)"=="X86_64" 102e35fcbcfSDamjan Jovanoviccurl_MACHINE:="X64" 103e35fcbcfSDamjan Jovanovic.ENDIF 104e35fcbcfSDamjan Jovanovic 10568576893SDon LewisBUILD_DIR=.$/winbuild 106cdf0e10cSrcweir.IF "$(debug)"=="" 10768576893SDon LewisBUILD_ACTION=CC="cl.exe" nmake -f Makefile.vc mode=dll VC=9 EXCFLAGS=$(EXCFLAGS) MACHINE=$(curl_MACHINE) 108cdf0e10cSrcweir.ELSE 10968576893SDon LewisBUILD_ACTION=CC="cl.exe" nmake -f Makefile.vc mode=dll VC=9 DEBUG=yes EXCFLAGS=$(EXCFLAGS) MACHINE=$(curl_MACHINE) 110cdf0e10cSrcweir.ENDIF 111cdf0e10cSrcweir 1128c07c6ecSDamjan Jovanovic.IF "$(CPUNAME)"=="INTEL" 11368576893SDon LewisOUT2BIN=$(BUILD_DIR)$/../builds/libcurl-vc9-X86-release-dll-ipv6-sspi-winssl-obj-lib/libcurl.dll 11468576893SDon LewisOUT2LIB=$(BUILD_DIR)$/../builds/libcurl-vc9-X86-release-dll-ipv6-sspi-winssl-obj-lib/libcurl.lib 1158c07c6ecSDamjan Jovanovic.ELIF "$(CPUNAME)"=="X86_64" 1168c07c6ecSDamjan JovanovicOUT2BIN=$(BUILD_DIR)$/../builds/libcurl-vc9-X64-release-dll-ipv6-sspi-winssl-obj-lib/libcurl.dll 1178c07c6ecSDamjan JovanovicOUT2LIB=$(BUILD_DIR)$/../builds/libcurl-vc9-X64-release-dll-ipv6-sspi-winssl-obj-lib/libcurl.lib 1188c07c6ecSDamjan Jovanovic.ENDIF 119cdf0e10cSrcweir 120cdf0e10cSrcweir.ENDIF 121cdf0e10cSrcweir.ENDIF # "$(GUI)"=="WNT" 122cdf0e10cSrcweir 123cdf0e10cSrcweir.IF "$(GUI)"=="OS2" 124cdf0e10cSrcweir# make use of stlport headerfiles 125cdf0e10cSrcweirEXT_USE_STLPORT=TRUE 126cdf0e10cSrcweir 127cdf0e10cSrcweirBUILD_DIR=.$/lib 128cdf0e10cSrcweir.IF "$(debug)"=="" 129cdf0e10cSrcweirBUILD_ACTION=make -f Makefile.os2 130cdf0e10cSrcweir.ELSE 131cdf0e10cSrcweirBUILD_ACTION=make -f Makefile.os2 132cdf0e10cSrcweir.ENDIF 133cdf0e10cSrcweir 134cdf0e10cSrcweirOUT2BIN=$(BUILD_DIR)$/libcurl.dll 135cdf0e10cSrcweirOUT2LIB=$(BUILD_DIR)$/libcurl.lib 136cdf0e10cSrcweir 137cdf0e10cSrcweir.ENDIF # "$(GUI)"=="OS2" 138cdf0e10cSrcweir 139cdf0e10cSrcweirOUT2INC= \ 140cdf0e10cSrcweir include$/curl$/easy.h \ 141cdf0e10cSrcweir include$/curl$/multi.h \ 142cdf0e10cSrcweir include$/curl$/curl.h \ 143cdf0e10cSrcweir include$/curl$/curlver.h \ 144a2c60cbdStruckman include$/curl$/typecheck-gcc.h \ 145cdf0e10cSrcweir include$/curl$/stdcheaders.h \ 146cdf0e10cSrcweir include$/curl$/mprintf.h \ 147*4169bb5fSDon Lewis include$/curl$/system.h \ 148*4169bb5fSDon Lewis include$/curl$/urlapi.h 14968576893SDon Lewis 150cdf0e10cSrcweir 151cdf0e10cSrcweir# --- Targets ------------------------------------------------------ 152cdf0e10cSrcweir 153cdf0e10cSrcweir.INCLUDE : set_ext.mk 154cdf0e10cSrcweir.INCLUDE : target.mk 155cdf0e10cSrcweir.INCLUDE : tg_ext.mk 156