1#************************************************************** 2# 3# Licensed to the Apache Software Foundation (ASF) under one 4# or more contributor license agreements. See the NOTICE file 5# distributed with this work for additional information 6# regarding copyright ownership. The ASF licenses this file 7# to you under the Apache License, Version 2.0 (the 8# "License"); you may not use this file except in compliance 9# with the License. You may obtain a copy of the License at 10# 11# http://www.apache.org/licenses/LICENSE-2.0 12# 13# Unless required by applicable law or agreed to in writing, 14# software distributed under the License is distributed on an 15# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16# KIND, either express or implied. See the License for the 17# specific language governing permissions and limitations 18# under the License. 19# 20#************************************************************** 21 22 23PRJ=. 24 25PRJNAME=so_curl 26TARGET=so_curl 27 28# --- Settings ----------------------------------------------------- 29 30.INCLUDE : settings.mk 31 32.IF "$(SYSTEM_CURL)" == "YES" 33all: 34 @echo "An already available installation of curl should exist on your system." 35 @echo "Therefore the version provided here does not need to be built in addition." 36.ENDIF 37 38# --- Files -------------------------------------------------------- 39 40TARFILE_NAME=curl-7.61.1 41TARFILE_MD5=4762f41ef0dba751d1c7a3060a1c6ec6 42PATCH_FILES= 43 44#ADDITIONAL_FILES= lib$/config-os2.h lib$/Makefile.os2 45 46.IF "$(GUI)"=="UNX" 47 48.IF "$(SYSBASE)"!="" 49curl_CFLAGS+=-I$(SYSBASE)$/usr$/include 50curl_LDFLAGS+=-L$(SYSBASE)$/usr$/lib 51.ENDIF # "$(SYSBASE)"!="" 52 53.IF "$(OS)$(CPU)"=="SOLARISU" 54curl_CFLAGS+:=$(ARCH_FLAGS) 55curl_LDFLAGS+:=$(ARCH_FLAGS) 56.ENDIF 57 58CONFIGURE_DIR=.$/ 59#relative to CONFIGURE_DIR 60CONFIGURE_ACTION=.$/configure 61CONFIGURE_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)" 62 63BUILD_DIR=$(CONFIGURE_DIR)$/lib 64BUILD_ACTION=$(GNUMAKE) 65BUILD_FLAGS+= -j$(EXTMAXPROCESS) 66 67OUT2LIB=$(BUILD_DIR)$/.libs$/libcurl$(DLLPOST).4 68.ENDIF # "$(GUI)"=="UNX" 69 70 71.IF "$(GUI)"=="WNT" 72.IF "$(COM)"=="GCC" 73curl_CC=$(CC) -mthreads 74.IF "$(MINGW_SHARED_GCCLIB)"=="YES" 75curl_CC+=-shared-libgcc 76.ENDIF 77curl_LIBS=-lws2_32 -lwinmm 78.IF "$(MINGW_SHARED_GXXLIB)"=="YES" 79curl_LIBS+=$(MINGW_SHARED_LIBSTDCPP) 80.ENDIF 81CONFIGURE_DIR=.$/ 82#relative to CONFIGURE_DIR 83CONFIGURE_ACTION=.$/configure 84CONFIGURE_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)" 85BUILD_DIR=$(CONFIGURE_DIR)$/lib 86BUILD_ACTION=make 87OUT2BIN=$(BUILD_DIR)$/.libs$/libcurl*.dll 88OUT2LIB=$(BUILD_DIR)$/.libs$/libcurl*.dll.a 89.ELSE 90# make use of stlport headerfiles 91EXT_USE_STLPORT=TRUE 92 93.IF "$(CCNUMVER)" > "001399999999" 94EXCFLAGS="/EHa /Zc:wchar_t- /D "_CRT_SECURE_NO_DEPRECATE"" 95.ELSE 96EXCFLAGS="/EHsc /YX" 97.ENDIF 98 99.IF "$(CPUNAME)"=="INTEL" 100curl_MACHINE:="X86" 101.ELIF "$(CPUNAME)"=="X86_64" 102curl_MACHINE:="X64" 103.ENDIF 104 105BUILD_DIR=.$/winbuild 106.IF "$(debug)"=="" 107BUILD_ACTION=CC="cl.exe" nmake -f Makefile.vc mode=dll VC=9 EXCFLAGS=$(EXCFLAGS) MACHINE=$(curl_MACHINE) 108.ELSE 109BUILD_ACTION=CC="cl.exe" nmake -f Makefile.vc mode=dll VC=9 DEBUG=yes EXCFLAGS=$(EXCFLAGS) MACHINE=$(curl_MACHINE) 110.ENDIF 111 112OUT2BIN=$(BUILD_DIR)$/../builds/libcurl-vc9-X86-release-dll-ipv6-sspi-winssl-obj-lib/libcurl.dll 113OUT2LIB=$(BUILD_DIR)$/../builds/libcurl-vc9-X86-release-dll-ipv6-sspi-winssl-obj-lib/libcurl.lib 114 115.ENDIF 116.ENDIF # "$(GUI)"=="WNT" 117 118.IF "$(GUI)"=="OS2" 119# make use of stlport headerfiles 120EXT_USE_STLPORT=TRUE 121 122BUILD_DIR=.$/lib 123.IF "$(debug)"=="" 124BUILD_ACTION=make -f Makefile.os2 125.ELSE 126BUILD_ACTION=make -f Makefile.os2 127.ENDIF 128 129OUT2BIN=$(BUILD_DIR)$/libcurl.dll 130OUT2LIB=$(BUILD_DIR)$/libcurl.lib 131 132.ENDIF # "$(GUI)"=="OS2" 133 134OUT2INC= \ 135 include$/curl$/easy.h \ 136 include$/curl$/multi.h \ 137 include$/curl$/curl.h \ 138 include$/curl$/curlver.h \ 139 include$/curl$/typecheck-gcc.h \ 140 include$/curl$/stdcheaders.h \ 141 include$/curl$/mprintf.h \ 142 include$/curl$/system.h 143 144 145# --- Targets ------------------------------------------------------ 146 147.INCLUDE : set_ext.mk 148.INCLUDE : target.mk 149.INCLUDE : tg_ext.mk 150