1################################################################# 2# 3## Makefile for building libcurl.nlm (NetWare version - gnu make) 4## Use: make -f Makefile.netware 5## 6## Comments to: Guenter Knauf http://www.gknw.net/phpbb 7# 8################################################################# 9 10# Edit the path below to point to the base of your Novell NDK. 11ifndef NDKBASE 12NDKBASE = c:/novell 13endif 14 15# Edit the path below to point to the base of your Zlib sources. 16ifndef ZLIB_PATH 17ZLIB_PATH = ../../zlib-1.2.5 18endif 19 20# Edit the path below to point to the base of your OpenSSL package. 21ifndef OPENSSL_PATH 22OPENSSL_PATH = ../../openssl-0.9.8r 23endif 24 25# Edit the path below to point to the base of your LibSSH2 package. 26ifndef LIBSSH2_PATH 27LIBSSH2_PATH = ../../libssh2-1.3.0 28endif 29 30# Edit the path below to point to the base of your axTLS package. 31ifndef AXTLS_PATH 32AXTLS_PATH = ../../axTLS-1.2.7 33endif 34 35# Edit the path below to point to the base of your libidn package. 36ifndef LIBIDN_PATH 37LIBIDN_PATH = ../../libidn-1.18 38endif 39 40# Edit the path below to point to the base of your librtmp package. 41ifndef LIBRTMP_PATH 42LIBRTMP_PATH = ../../librtmp-2.3 43endif 44 45# Edit the path below to point to the base of your fbopenssl package. 46ifndef FBOPENSSL_PATH 47FBOPENSSL_PATH = ../../fbopenssl-0.4 48endif 49 50# Edit the path below to point to the base of your c-ares package. 51ifndef LIBCARES_PATH 52LIBCARES_PATH = ../ares 53endif 54 55ifndef INSTDIR 56INSTDIR = ..$(DS)curl-$(LIBCURL_VERSION_STR)-bin-nw 57endif 58 59# Edit the vars below to change NLM target settings. 60TARGET = libcurl 61VERSION = $(LIBCURL_VERSION) 62COPYR = Copyright (C) $(LIBCURL_COPYRIGHT_STR) 63DESCR = cURL libcurl $(LIBCURL_VERSION_STR) ($(LIBARCH)) - http://curl.haxx.se 64MTSAFE = YES 65STACK = 64000 66SCREEN = none 67EXPORTS = @libcurl.imp 68 69# Uncomment the next line to enable linking with POSIX semantics. 70# POSIXFL = 1 71 72# Edit the var below to point to your lib architecture. 73ifndef LIBARCH 74LIBARCH = LIBC 75endif 76 77# must be equal to NDEBUG or DEBUG, CURLDEBUG 78ifndef DB 79DB = NDEBUG 80endif 81# Optimization: -O<n> or debugging: -g 82ifeq ($(DB),NDEBUG) 83 OPT = -O2 84 OBJDIR = release 85else 86 OPT = -g 87 OBJDIR = debug 88endif 89 90# The following lines defines your compiler. 91ifdef CWFolder 92 METROWERKS = $(CWFolder) 93endif 94ifdef METROWERKS 95 # MWCW_PATH = $(subst \,/,$(METROWERKS))/Novell Support 96 MWCW_PATH = $(subst \,/,$(METROWERKS))/Novell Support/Metrowerks Support 97 CC = mwccnlm 98else 99 CC = gcc 100endif 101PERL = perl 102# Here you can find a native Win32 binary of the original awk: 103# http://www.gknw.net/development/prgtools/awk-20100523.zip 104AWK = awk 105CP = cp -afv 106MKDIR = mkdir 107# RM = rm -f 108# If you want to mark the target as MTSAFE you will need a tool for 109# generating the xdc data for the linker; here's a minimal tool: 110# http://www.gknw.net/development/prgtools/mkxdc.zip 111MPKXDC = mkxdc 112 113# LIBARCH_U = $(shell $(AWK) 'BEGIN {print toupper(ARGV[1])}' $(LIBARCH)) 114LIBARCH_L = $(shell $(AWK) 'BEGIN {print tolower(ARGV[1])}' $(LIBARCH)) 115 116# Include the version info retrieved from curlver.h 117-include $(OBJDIR)/version.inc 118 119# Global flags for all compilers 120CFLAGS += $(OPT) -D$(DB) -DNETWARE -DHAVE_CONFIG_H -nostdinc 121 122ifeq ($(CC),mwccnlm) 123LD = mwldnlm 124LDFLAGS = -nostdlib $(PRELUDE) $(OBJL) -o $@ -commandfile 125AR = mwldnlm 126ARFLAGS = -nostdlib -type library -o 127LIBEXT = lib 128#RANLIB = 129CFLAGS += -msgstyle gcc -gccinc -inline off -opt nointrinsics -proc 586 130CFLAGS += -relax_pointers 131#CFLAGS += -w on 132ifeq ($(LIBARCH),LIBC) 133ifeq ($(POSIXFL),1) 134 PRELUDE = $(NDK_LIBC)/imports/posixpre.o 135else 136 PRELUDE = $(NDK_LIBC)/imports/libcpre.o 137endif 138 CFLAGS += -align 4 139else 140 # PRELUDE = $(NDK_CLIB)/imports/clibpre.o 141 # to avoid the __init_* / __deinit_* whoes dont use prelude from NDK 142 PRELUDE = "$(MWCW_PATH)/libraries/runtime/prelude.obj" 143 # CFLAGS += -include "$(MWCW_PATH)/headers/nlm_clib_prefix.h" 144 CFLAGS += -align 1 145endif 146else 147LD = nlmconv 148LDFLAGS = -T 149AR = ar 150ARFLAGS = -cq 151LIBEXT = a 152RANLIB = ranlib 153CFLAGS += -m32 154CFLAGS += -fno-builtin -fno-strict-aliasing 155ifeq ($(findstring gcc,$(CC)),gcc) 156CFLAGS += -fpcc-struct-return 157endif 158CFLAGS += -Wall # -pedantic 159ifeq ($(LIBARCH),LIBC) 160ifeq ($(POSIXFL),1) 161 PRELUDE = $(NDK_LIBC)/imports/posixpre.gcc.o 162else 163 PRELUDE = $(NDK_LIBC)/imports/libcpre.gcc.o 164endif 165else 166 PRELUDE = $(NDK_CLIB)/imports/clibpre.gcc.o 167 # to avoid the __init_* / __deinit_* whoes dont use prelude from NDK 168 # http://www.gknw.net/development/mk_nlm/gcc_pre.zip 169 # PRELUDE = $(NDK_ROOT)/pre/prelude.o 170 CFLAGS += -include $(NDKBASE)/nlmconv/genlm.h 171endif 172endif 173 174NDK_ROOT = $(NDKBASE)/ndk 175ifndef NDK_CLIB 176NDK_CLIB = $(NDK_ROOT)/nwsdk 177endif 178ifndef NDK_LIBC 179NDK_LIBC = $(NDK_ROOT)/libc 180endif 181ifndef NDK_LDAP 182NDK_LDAP = $(NDK_ROOT)/cldapsdk/netware 183endif 184CURL_INC = ../include 185CURL_LIB = ../lib 186 187INCLUDES = -I$(CURL_INC) -I$(CURL_LIB) 188 189ifeq ($(findstring -static,$(CFG)),-static) 190LINK_STATIC = 1 191endif 192ifeq ($(findstring -ares,$(CFG)),-ares) 193WITH_ARES = 1 194endif 195ifeq ($(findstring -rtmp,$(CFG)),-rtmp) 196WITH_RTMP = 1 197WITH_SSL = 1 198WITH_ZLIB = 1 199endif 200ifeq ($(findstring -ssh2,$(CFG)),-ssh2) 201WITH_SSH2 = 1 202WITH_SSL = 1 203WITH_ZLIB = 1 204endif 205ifeq ($(findstring -axtls,$(CFG)),-axtls) 206WITH_AXTLS = 1 207WITH_SSL = 208else 209ifeq ($(findstring -ssl,$(CFG)),-ssl) 210WITH_SSL = 1 211endif 212endif 213ifeq ($(findstring -zlib,$(CFG)),-zlib) 214WITH_ZLIB = 1 215endif 216ifeq ($(findstring -idn,$(CFG)),-idn) 217WITH_IDN = 1 218endif 219ifeq ($(findstring -spnego,$(CFG)),-spnego) 220WITH_SPNEGO = 1 221endif 222ifeq ($(findstring -ipv6,$(CFG)),-ipv6) 223ENABLE_IPV6 = 1 224endif 225 226ifdef WITH_ARES 227 INCLUDES += -I$(LIBCARES_PATH) 228 LDLIBS += $(LIBCARES_PATH)/libcares.$(LIBEXT) 229endif 230ifdef WITH_SSH2 231 INCLUDES += -I$(LIBSSH2_PATH)/include 232ifdef LINK_STATIC 233 LDLIBS += $(LIBSSH2_PATH)/nw/libssh2.$(LIBEXT) 234else 235 MODULES += libssh2.nlm 236 IMPORTS += @$(LIBSSH2_PATH)/nw/libssh2.imp 237endif 238endif 239ifdef WITH_RTMP 240 INCLUDES += -I$(LIBRTMP_PATH) 241 LDLIBS += $(LIBRTMP_PATH)/librtmp/librtmp.$(LIBEXT) 242endif 243ifdef WITH_SSL 244 INCLUDES += -I$(OPENSSL_PATH)/outinc_nw_$(LIBARCH_L) 245 LDLIBS += $(OPENSSL_PATH)/out_nw_$(LIBARCH_L)/ssl.$(LIBEXT) 246 LDLIBS += $(OPENSSL_PATH)/out_nw_$(LIBARCH_L)/crypto.$(LIBEXT) 247 IMPORTS += GetProcessSwitchCount RunningProcess 248 INSTDEP += ca-bundle.crt 249ifdef WITH_SPNEGO 250 INCLUDES += -I$(FBOPENSSL_PATH)/include 251 LDLIBS += $(FBOPENSSL_PATH)/nw/fbopenssl.$(LIBEXT) 252endif 253else 254ifdef WITH_AXTLS 255 INCLUDES += -I$(AXTLS_PATH)/inc 256ifdef LINK_STATIC 257 LDLIBS += $(AXTLS_PATH)/lib/libaxtls.$(LIBEXT) 258else 259 MODULES += libaxtls.nlm 260 IMPORTS += $(AXTLS_PATH)/lib/libaxtls.imp 261endif 262 INSTDEP += ca-bundle.crt 263endif 264endif 265ifdef WITH_ZLIB 266 INCLUDES += -I$(ZLIB_PATH) 267ifdef LINK_STATIC 268 LDLIBS += $(ZLIB_PATH)/nw/$(LIBARCH)/libz.$(LIBEXT) 269else 270 MODULES += libz.nlm 271 IMPORTS += @$(ZLIB_PATH)/nw/$(LIBARCH)/libz.imp 272endif 273endif 274ifdef WITH_IDN 275 INCLUDES += -I$(LIBIDN_PATH)/include 276 LDLIBS += $(LIBIDN_PATH)/lib/libidn.$(LIBEXT) 277endif 278 279ifeq ($(LIBARCH),LIBC) 280 INCLUDES += -I$(NDK_LIBC)/include 281 # INCLUDES += -I$(NDK_LIBC)/include/nks 282 # INCLUDES += -I$(NDK_LIBC)/include/winsock 283 CFLAGS += -D_POSIX_SOURCE 284else 285 INCLUDES += -I$(NDK_CLIB)/include/nlm 286 # INCLUDES += -I$(NDK_CLIB)/include/nlm/obsolete 287 # INCLUDES += -I$(NDK_CLIB)/include 288endif 289ifndef DISABLE_LDAP 290 INCLUDES += -I$(NDK_LDAP)/$(LIBARCH_L)/inc 291endif 292CFLAGS += $(INCLUDES) 293 294ifeq ($(MTSAFE),YES) 295 XDCOPT = -n 296endif 297ifeq ($(MTSAFE),NO) 298 XDCOPT = -u 299endif 300ifdef XDCOPT 301 XDCDATA = $(OBJDIR)/$(TARGET).xdc 302endif 303 304ifeq ($(findstring /sh,$(SHELL)),/sh) 305DL = ' 306DS = / 307PCT = % 308#-include $(NDKBASE)/nlmconv/ncpfs.inc 309else 310DS = \\ 311PCT = %% 312endif 313 314# Makefile.inc provides the CSOURCES and HHEADERS defines 315include Makefile.inc 316 317OBJS := $(patsubst %.c,$(OBJDIR)/%.o,$(strip $(CSOURCES))) $(OBJDIR)/nwos.o 318 319OBJL = $(OBJS) $(OBJDIR)/nwlib.o $(LDLIBS) 320 321all: lib nlm 322 323nlm: prebuild $(TARGET).nlm 324 325lib: prebuild $(TARGET).$(LIBEXT) 326 327prebuild: $(OBJDIR) $(CURL_INC)/curl/curlbuild.h $(OBJDIR)/version.inc curl_config.h 328 329$(OBJDIR)/%.o: %.c 330# @echo Compiling $< 331 $(CC) $(CFLAGS) -c $< -o $@ 332 333$(OBJDIR)/version.inc: ../include/curl/curlver.h $(OBJDIR) 334 @echo Creating $@ 335 @$(AWK) -f ../packages/NetWare/get_ver.awk $< > $@ 336 337install: $(INSTDIR) all $(INSTDEP) 338 @$(CP) $(TARGET).nlm $(INSTDIR) 339 @$(CP) $(TARGET).$(LIBEXT) $(INSTDIR) 340 @$(CP) ../CHANGES $(INSTDIR) 341 @$(CP) ../COPYING $(INSTDIR) 342 @$(CP) ../README $(INSTDIR) 343 @$(CP) ../RELEASE-NOTES $(INSTDIR) 344ifdef WITH_SSL 345 @-$(CP) ca-bundle.crt $(INSTDIR)/ca-bundle.crt 346endif 347 348clean: 349 -$(RM) curl_config.h 350 -$(RM) -r $(OBJDIR) 351 352distclean vclean: clean 353 -$(RM) $(TARGET).$(LIBEXT) $(TARGET).nlm 354 -$(RM) certdata.txt ca-bundle.crt 355 356$(OBJDIR) $(INSTDIR): 357 @$(MKDIR) $@ 358 359$(TARGET).$(LIBEXT): $(OBJS) 360 @echo Creating $@ 361 @-$(RM) $@ 362 @$(AR) $(ARFLAGS) $@ $^ 363ifdef RANLIB 364 @$(RANLIB) $@ 365endif 366 367$(TARGET).nlm: $(OBJDIR)/$(TARGET).def $(OBJL) $(XDCDATA) 368 @echo Linking $@ 369 @-$(RM) $@ 370 @$(LD) $(LDFLAGS) $< 371 372$(OBJDIR)/%.xdc: Makefile.netware 373 @echo Creating $@ 374 @$(MPKXDC) $(XDCOPT) $@ 375 376$(OBJDIR)/%.def: Makefile.netware 377 @echo $(DL)# DEF file for linking with $(LD)$(DL) > $@ 378 @echo $(DL)# Do not edit this file - it is created by make!$(DL) >> $@ 379 @echo $(DL)# All your changes will be lost!!$(DL) >> $@ 380 @echo $(DL)#$(DL) >> $@ 381 @echo $(DL)copyright "$(COPYR)"$(DL) >> $@ 382 @echo $(DL)description "$(DESCR)"$(DL) >> $@ 383 @echo $(DL)version $(VERSION)$(DL) >> $@ 384ifdef NLMTYPE 385 @echo $(DL)type $(NLMTYPE)$(DL) >> $@ 386endif 387ifdef STACK 388 @echo $(DL)stack $(STACK)$(DL) >> $@ 389endif 390ifdef SCREEN 391 @echo $(DL)screenname "$(SCREEN)"$(DL) >> $@ 392else 393 @echo $(DL)screenname "DEFAULT"$(DL) >> $@ 394endif 395ifneq ($(DB),NDEBUG) 396 @echo $(DL)debug$(DL) >> $@ 397endif 398 @echo $(DL)threadname "$(TARGET)"$(DL) >> $@ 399ifdef XDCDATA 400 @echo $(DL)xdcdata $(XDCDATA)$(DL) >> $@ 401endif 402 @echo $(DL)flag_on 64$(DL) >> $@ 403ifeq ($(LIBARCH),CLIB) 404 @echo $(DL)start _Prelude$(DL) >> $@ 405 @echo $(DL)exit _Stop$(DL) >> $@ 406 @echo $(DL)import @$(NDK_CLIB)/imports/clib.imp$(DL) >> $@ 407 @echo $(DL)import @$(NDK_CLIB)/imports/threads.imp$(DL) >> $@ 408 @echo $(DL)import @$(NDK_CLIB)/imports/nlmlib.imp$(DL) >> $@ 409 @echo $(DL)import @$(NDK_CLIB)/imports/socklib.imp$(DL) >> $@ 410 @echo $(DL)module clib$(DL) >> $@ 411ifndef DISABLE_LDAP 412 @echo $(DL)import @$(NDK_LDAP)/clib/imports/ldapsdk.imp$(DL) >> $@ 413 @echo $(DL)import @$(NDK_LDAP)/clib/imports/ldapssl.imp$(DL) >> $@ 414# @echo $(DL)import @$(NDK_LDAP)/clib/imports/ldapx.imp$(DL) >> $@ 415 @echo $(DL)module ldapsdk ldapssl$(DL) >> $@ 416endif 417else 418ifeq ($(POSIXFL),1) 419 @echo $(DL)flag_on 4194304$(DL) >> $@ 420endif 421 @echo $(DL)pseudopreemption$(DL) >> $@ 422ifeq ($(findstring posixpre,$(PRELUDE)),posixpre) 423 @echo $(DL)start POSIX_Start$(DL) >> $@ 424 @echo $(DL)exit POSIX_Stop$(DL) >> $@ 425 @echo $(DL)check POSIX_CheckUnload$(DL) >> $@ 426else 427 @echo $(DL)start _LibCPrelude$(DL) >> $@ 428 @echo $(DL)exit _LibCPostlude$(DL) >> $@ 429 @echo $(DL)check _LibCCheckUnload$(DL) >> $@ 430endif 431 @echo $(DL)import @$(NDK_LIBC)/imports/libc.imp$(DL) >> $@ 432 @echo $(DL)import @$(NDK_LIBC)/imports/netware.imp$(DL) >> $@ 433 @echo $(DL)module libc$(DL) >> $@ 434ifndef DISABLE_LDAP 435 @echo $(DL)import @$(NDK_LDAP)/libc/imports/lldapsdk.imp$(DL) >> $@ 436 @echo $(DL)import @$(NDK_LDAP)/libc/imports/lldapssl.imp$(DL) >> $@ 437# @echo $(DL)import @$(NDK_LDAP)/libc/imports/lldapx.imp$(DL) >> $@ 438 @echo $(DL)module lldapsdk lldapssl$(DL) >> $@ 439endif 440endif 441ifdef MODULES 442 @echo $(DL)module $(MODULES)$(DL) >> $@ 443endif 444ifdef EXPORTS 445 @echo $(DL)export $(EXPORTS)$(DL) >> $@ 446endif 447ifdef IMPORTS 448 @echo $(DL)import $(IMPORTS)$(DL) >> $@ 449endif 450ifeq ($(findstring nlmconv,$(LD)),nlmconv) 451 @echo $(DL)input $(PRELUDE)$(DL) >> $@ 452 @echo $(DL)input $(OBJL)$(DL) >> $@ 453#ifdef LDLIBS 454# @echo $(DL)input $(LDLIBS)$(DL) >> $@ 455#endif 456 @echo $(DL)output $(TARGET).nlm$(DL) >> $@ 457endif 458 459curl_config.h: Makefile.netware 460 @echo Creating $@ 461 @echo $(DL)/* $@ for NetWare target.$(DL) > $@ 462 @echo $(DL)** Do not edit this file - it is created by make!$(DL) >> $@ 463 @echo $(DL)** All your changes will be lost!!$(DL) >> $@ 464 @echo $(DL)*/$(DL) >> $@ 465 @echo $(DL)#ifndef NETWARE$(DL) >> $@ 466 @echo $(DL)#error This $(notdir $@) is created for NetWare platform!$(DL) >> $@ 467 @echo $(DL)#endif$(DL) >> $@ 468 @echo $(DL)#define VERSION "$(LIBCURL_VERSION_STR)"$(DL) >> $@ 469 @echo $(DL)#define PACKAGE_BUGREPORT "a suitable curl mailing list => http://curl.haxx.se/mail/"$(DL) >> $@ 470ifeq ($(LIBARCH),CLIB) 471 @echo $(DL)#define OS "i586-pc-clib-NetWare"$(DL) >> $@ 472 @echo $(DL)#define NETDB_USE_INTERNET 1$(DL) >> $@ 473 @echo $(DL)#define HAVE_STRICMP 1$(DL) >> $@ 474 @echo $(DL)#define HAVE_STRNICMP 1$(DL) >> $@ 475 @echo $(DL)#define RECV_TYPE_ARG1 int$(DL) >> $@ 476 @echo $(DL)#define RECV_TYPE_ARG2 char *$(DL) >> $@ 477 @echo $(DL)#define RECV_TYPE_ARG3 int$(DL) >> $@ 478 @echo $(DL)#define RECV_TYPE_ARG4 int$(DL) >> $@ 479 @echo $(DL)#define RECV_TYPE_RETV int$(DL) >> $@ 480 @echo $(DL)#define RECVFROM_TYPE_ARG1 int$(DL) >> $@ 481 @echo $(DL)#define RECVFROM_TYPE_ARG2 char$(DL) >> $@ 482 @echo $(DL)#define RECVFROM_TYPE_ARG3 int$(DL) >> $@ 483 @echo $(DL)#define RECVFROM_TYPE_ARG4 int$(DL) >> $@ 484 @echo $(DL)#define RECVFROM_TYPE_ARG5 struct sockaddr$(DL) >> $@ 485 @echo $(DL)#define RECVFROM_TYPE_ARG6 int$(DL) >> $@ 486 @echo $(DL)#define RECVFROM_TYPE_RETV int$(DL) >> $@ 487 @echo $(DL)#define SEND_QUAL_ARG2$(DL) >> $@ 488 @echo $(DL)#define SEND_TYPE_ARG1 int$(DL) >> $@ 489 @echo $(DL)#define SEND_TYPE_ARG2 char *$(DL) >> $@ 490 @echo $(DL)#define SEND_TYPE_ARG3 int$(DL) >> $@ 491 @echo $(DL)#define SEND_TYPE_ARG4 int$(DL) >> $@ 492 @echo $(DL)#define SEND_TYPE_RETV int$(DL) >> $@ 493 @echo $(DL)#define SIZEOF_SIZE_T 4$(DL) >> $@ 494 @echo $(DL)#define pressanykey PressAnyKeyToContinue$(DL) >> $@ 495else 496 @echo $(DL)#define OS "i586-pc-libc-NetWare"$(DL) >> $@ 497 @echo $(DL)#define HAVE_FTRUNCATE 1$(DL) >> $@ 498 @echo $(DL)#define HAVE_GETTIMEOFDAY 1$(DL) >> $@ 499 @echo $(DL)#define HAVE_INTTYPES_H 1$(DL) >> $@ 500 @echo $(DL)#define HAVE_LONGLONG 1$(DL) >> $@ 501 @echo $(DL)#define HAVE_STDINT_H 1$(DL) >> $@ 502 @echo $(DL)#define HAVE_STRCASECMP 1$(DL) >> $@ 503 @echo $(DL)#define HAVE_STRLCAT 1$(DL) >> $@ 504 @echo $(DL)#define HAVE_STRLCPY 1$(DL) >> $@ 505 @echo $(DL)#define HAVE_STRTOLL 1$(DL) >> $@ 506 @echo $(DL)#define HAVE_SYS_PARAM_H 1$(DL) >> $@ 507 @echo $(DL)#define HAVE_SYS_SELECT_H 1$(DL) >> $@ 508 @echo $(DL)#define HAVE_TERMIOS_H 1$(DL) >> $@ 509 @echo $(DL)#define RECV_TYPE_ARG1 int$(DL) >> $@ 510 @echo $(DL)#define RECV_TYPE_ARG2 void *$(DL) >> $@ 511 @echo $(DL)#define RECV_TYPE_ARG3 size_t$(DL) >> $@ 512 @echo $(DL)#define RECV_TYPE_ARG4 int$(DL) >> $@ 513 @echo $(DL)#define RECV_TYPE_RETV ssize_t$(DL) >> $@ 514 @echo $(DL)#define RECVFROM_TYPE_ARG1 int$(DL) >> $@ 515 @echo $(DL)#define RECVFROM_TYPE_ARG2 void$(DL) >> $@ 516 @echo $(DL)#define RECVFROM_TYPE_ARG3 size_t$(DL) >> $@ 517 @echo $(DL)#define RECVFROM_TYPE_ARG4 int$(DL) >> $@ 518 @echo $(DL)#define RECVFROM_TYPE_ARG5 struct sockaddr$(DL) >> $@ 519 @echo $(DL)#define RECVFROM_TYPE_ARG6 size_t$(DL) >> $@ 520 @echo $(DL)#define RECVFROM_TYPE_RETV ssize_t$(DL) >> $@ 521 @echo $(DL)#define RECVFROM_TYPE_ARG2_IS_VOID 1$(DL) >> $@ 522 @echo $(DL)#define SEND_QUAL_ARG2$(DL) >> $@ 523 @echo $(DL)#define SEND_TYPE_ARG1 int$(DL) >> $@ 524 @echo $(DL)#define SEND_TYPE_ARG2 void *$(DL) >> $@ 525 @echo $(DL)#define SEND_TYPE_ARG3 size_t$(DL) >> $@ 526 @echo $(DL)#define SEND_TYPE_ARG4 int$(DL) >> $@ 527 @echo $(DL)#define SEND_TYPE_RETV ssize_t$(DL) >> $@ 528 @echo $(DL)#define SIZEOF_OFF_T 8$(DL) >> $@ 529 @echo $(DL)#define SIZEOF_SIZE_T 8$(DL) >> $@ 530 @echo $(DL)#define _LARGEFILE 1$(DL) >> $@ 531ifdef ENABLE_IPV6 532 @echo $(DL)#define ENABLE_IPV6 1$(DL) >> $@ 533 @echo $(DL)#define HAVE_AF_INET6 1$(DL) >> $@ 534 @echo $(DL)#define HAVE_PF_INET6 1$(DL) >> $@ 535 @echo $(DL)#define HAVE_FREEADDRINFO 1$(DL) >> $@ 536 @echo $(DL)#define HAVE_GETADDRINFO 1$(DL) >> $@ 537 @echo $(DL)#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1$(DL) >> $@ 538 @echo $(DL)#define HAVE_STRUCT_ADDRINFO 1$(DL) >> $@ 539 @echo $(DL)#define HAVE_STRUCT_IN6_ADDR 1$(DL) >> $@ 540 @echo $(DL)#define HAVE_STRUCT_SOCKADDR_IN6 1$(DL) >> $@ 541 @echo $(DL)#define SIZEOF_STRUCT_IN6_ADDR 16$(DL) >> $@ 542endif 543endif 544 @echo $(DL)#define USE_MANUAL 1$(DL) >> $@ 545 @echo $(DL)#define HAVE_ARPA_INET_H 1$(DL) >> $@ 546 @echo $(DL)#define HAVE_ASSERT_H 1$(DL) >> $@ 547 @echo $(DL)#define HAVE_ERRNO_H 1$(DL) >> $@ 548 @echo $(DL)#define HAVE_ERR_H 1$(DL) >> $@ 549 @echo $(DL)#define HAVE_FCNTL_H 1$(DL) >> $@ 550 @echo $(DL)#define HAVE_GETHOSTBYADDR 1$(DL) >> $@ 551 @echo $(DL)#define HAVE_GETHOSTBYNAME 1$(DL) >> $@ 552 @echo $(DL)#define HAVE_GETPROTOBYNAME 1$(DL) >> $@ 553 @echo $(DL)#define HAVE_GMTIME_R 1$(DL) >> $@ 554 @echo $(DL)#define HAVE_INET_ADDR 1$(DL) >> $@ 555 @echo $(DL)#define HAVE_IOCTL 1$(DL) >> $@ 556 @echo $(DL)#define HAVE_IOCTL_FIONBIO 1$(DL) >> $@ 557 @echo $(DL)#define HAVE_LIMITS_H 1$(DL) >> $@ 558 @echo $(DL)#define HAVE_LL 1$(DL) >> $@ 559 @echo $(DL)#define HAVE_LOCALE_H 1$(DL) >> $@ 560 @echo $(DL)#define HAVE_LOCALTIME_R 1$(DL) >> $@ 561 @echo $(DL)#define HAVE_MALLOC_H 1$(DL) >> $@ 562 @echo $(DL)#define HAVE_NETINET_IN_H 1$(DL) >> $@ 563 @echo $(DL)#define HAVE_RECV 1$(DL) >> $@ 564 @echo $(DL)#define HAVE_RECVFROM 1$(DL) >> $@ 565 @echo $(DL)#define HAVE_SELECT 1$(DL) >> $@ 566 @echo $(DL)#define HAVE_SEND 1$(DL) >> $@ 567 @echo $(DL)#define HAVE_SETJMP_H 1$(DL) >> $@ 568 @echo $(DL)#define HAVE_SETLOCALE 1$(DL) >> $@ 569 @echo $(DL)#define HAVE_SIGNAL 1$(DL) >> $@ 570 @echo $(DL)#define HAVE_SIGNAL_H 1$(DL) >> $@ 571 @echo $(DL)#define HAVE_SIG_ATOMIC_T 1$(DL) >> $@ 572 @echo $(DL)#define HAVE_SOCKET 1$(DL) >> $@ 573 @echo $(DL)#define HAVE_STDLIB_H 1$(DL) >> $@ 574 @echo $(DL)#define HAVE_STRDUP 1$(DL) >> $@ 575 @echo $(DL)#define HAVE_STRFTIME 1$(DL) >> $@ 576 @echo $(DL)#define HAVE_STRING_H 1$(DL) >> $@ 577 @echo $(DL)#define HAVE_STRSTR 1$(DL) >> $@ 578 @echo $(DL)#define HAVE_STRUCT_TIMEVAL 1$(DL) >> $@ 579 @echo $(DL)#define HAVE_SYS_IOCTL_H 1$(DL) >> $@ 580 @echo $(DL)#define HAVE_SYS_STAT_H 1$(DL) >> $@ 581 @echo $(DL)#define HAVE_SYS_TIME_H 1$(DL) >> $@ 582 @echo $(DL)#define HAVE_TIME_H 1$(DL) >> $@ 583 @echo $(DL)#define HAVE_UNAME 1$(DL) >> $@ 584 @echo $(DL)#define HAVE_UNISTD_H 1$(DL) >> $@ 585 @echo $(DL)#define HAVE_UTIME 1$(DL) >> $@ 586 @echo $(DL)#define HAVE_UTIME_H 1$(DL) >> $@ 587 @echo $(DL)#define HAVE_WRITEV 1$(DL) >> $@ 588 @echo $(DL)#define RETSIGTYPE void$(DL) >> $@ 589 @echo $(DL)#define SIZEOF_INT 4$(DL) >> $@ 590 @echo $(DL)#define SIZEOF_SHORT 2$(DL) >> $@ 591 @echo $(DL)#define SIZEOF_STRUCT_IN_ADDR 4$(DL) >> $@ 592 @echo $(DL)#define STDC_HEADERS 1$(DL) >> $@ 593 @echo $(DL)#define TIME_WITH_SYS_TIME 1$(DL) >> $@ 594ifdef DISABLE_LDAP 595 @echo $(DL)#define CURL_DISABLE_LDAP 1$(DL) >> $@ 596else 597 @echo $(DL)#define CURL_HAS_NOVELL_LDAPSDK 1$(DL) >> $@ 598ifndef DISABLE_LDAPS 599 @echo $(DL)#define HAVE_LDAP_SSL 1$(DL) >> $@ 600endif 601 @echo $(DL)#define HAVE_LDAP_SSL_H 1$(DL) >> $@ 602 @echo $(DL)#define HAVE_LDAP_URL_PARSE 1$(DL) >> $@ 603endif 604ifdef NW_WINSOCK 605 @echo $(DL)#define HAVE_CLOSESOCKET 1$(DL) >> $@ 606else 607 @echo $(DL)#define USE_BSD_SOCKETS 1$(DL) >> $@ 608 @echo $(DL)#define HAVE_SYS_TYPES_H 1$(DL) >> $@ 609 @echo $(DL)#define HAVE_SYS_SOCKET_H 1$(DL) >> $@ 610 @echo $(DL)#define HAVE_SYS_SOCKIO_H 1$(DL) >> $@ 611 @echo $(DL)#define HAVE_NETDB_H 1$(DL) >> $@ 612endif 613ifdef WITH_ARES 614 @echo $(DL)#define USE_ARES 1$(DL) >> $@ 615endif 616ifdef WITH_ZLIB 617 @echo $(DL)#define HAVE_ZLIB_H 1$(DL) >> $@ 618 @echo $(DL)#define HAVE_LIBZ 1$(DL) >> $@ 619endif 620ifdef WITH_SSL 621 @echo $(DL)#define USE_SSLEAY 1$(DL) >> $@ 622 @echo $(DL)#define USE_OPENSSL 1$(DL) >> $@ 623 @echo $(DL)#define HAVE_OPENSSL_X509_H 1$(DL) >> $@ 624 @echo $(DL)#define HAVE_OPENSSL_SSL_H 1$(DL) >> $@ 625 @echo $(DL)#define HAVE_OPENSSL_RSA_H 1$(DL) >> $@ 626 @echo $(DL)#define HAVE_OPENSSL_PEM_H 1$(DL) >> $@ 627 @echo $(DL)#define HAVE_OPENSSL_ERR_H 1$(DL) >> $@ 628 @echo $(DL)#define HAVE_OPENSSL_CRYPTO_H 1$(DL) >> $@ 629 @echo $(DL)#define HAVE_OPENSSL_ENGINE_H 1$(DL) >> $@ 630 @echo $(DL)#define HAVE_LIBSSL 1$(DL) >> $@ 631 @echo $(DL)#define HAVE_LIBCRYPTO 1$(DL) >> $@ 632 @echo $(DL)#define OPENSSL_NO_KRB5 1$(DL) >> $@ 633ifdef WITH_SPNEGO 634 @echo $(DL)#define HAVE_SPNEGO 1$(DL) >> $@ 635endif 636else 637ifdef WITH_AXTLS 638 @echo $(DL)#define USE_AXTLS 1$(DL) >> $@ 639endif 640endif 641ifdef WITH_SSH2 642 @echo $(DL)#define USE_LIBSSH2 1$(DL) >> $@ 643 @echo $(DL)#define HAVE_LIBSSH2_H 1$(DL) >> $@ 644endif 645ifdef WITH_IDN 646 @echo $(DL)#define HAVE_LIBIDN 1$(DL) >> $@ 647 @echo $(DL)#define HAVE_TLD_H 1$(DL) >> $@ 648endif 649ifdef WITH_RTMP 650 @echo $(DL)#define USE_LIBRTMP 1$(DL) >> $@ 651endif 652 @echo $(DL)#ifdef __GNUC__$(DL) >> $@ 653 @echo $(DL)#define HAVE_VARIADIC_MACROS_GCC 1$(DL) >> $@ 654 @echo $(DL)#else$(DL) >> $@ 655 @echo $(DL)#define HAVE_VARIADIC_MACROS_C99 1$(DL) >> $@ 656 @echo $(DL)#endif$(DL) >> $@ 657ifdef CABUNDLE 658 @echo $(DL)#define CURL_CA_BUNDLE "$(CABUNDLE)"$(DL) >> $@ 659else 660 @echo $(DL)#define CURL_CA_BUNDLE getenv("CURL_CA_BUNDLE")$(DL) >> $@ 661endif 662 663FORCE: ; 664 665info: $(OBJDIR)/version.inc 666 @echo Configured to build $(TARGET) with these options: 667 @echo libarchitecture: $(LIBARCH) 668 @echo curl version: $(LIBCURL_VERSION_STR) 669 @echo compiler/linker: $(CC) / $(LD) 670ifdef CABUNDLE 671 @echo ca-bundle path: $(CABUNDLE) 672endif 673ifdef WITH_SSL 674 @echo SSL support: enabled (OpenSSL) 675else 676 @echo SSL support: no 677endif 678ifdef WITH_SSH2 679 @echo SSH2 support: enabled (libssh2) 680else 681 @echo SSH2 support: no 682endif 683ifdef WITH_ZLIB 684 @echo zlib support: enabled 685else 686 @echo zlib support: no 687endif 688ifdef WITH_ARES 689 @echo c-ares support: enabled 690else 691 @echo c-ares support: no 692endif 693ifdef ENABLE_IPV6 694 @echo ipv6 support: enabled 695else 696 @echo ipv6 support: no 697endif 698 699$(LIBCARES_PATH)/libcares.$(LIBEXT): 700 $(MAKE) -C $(LIBCARES_PATH) -f Makefile.netware lib 701 702ca-bundle.crt: mk-ca-bundle.pl 703 @echo Creating $@ 704 @-$(PERL) $< -b -n $@ 705 706$(CURL_INC)/curl/curlbuild.h: Makefile.netware FORCE 707 @echo Creating $@ 708 @echo $(DL)/* $@ intended for NetWare target.$(DL) > $@ 709 @echo $(DL)** Do not edit this file - it is created by make!$(DL) >> $@ 710 @echo $(DL)** All your changes will be lost!!$(DL) >> $@ 711 @echo $(DL)*/$(DL) >> $@ 712 @echo $(DL)#ifndef NETWARE$(DL) >> $@ 713 @echo $(DL)#error This $(notdir $@) is created for NetWare platform!$(DL) >> $@ 714 @echo $(DL)#endif$(DL) >> $@ 715 @echo $(DL)#ifndef __CURL_CURLBUILD_H$(DL) >> $@ 716 @echo $(DL)#define __CURL_CURLBUILD_H$(DL) >> $@ 717ifeq ($(LIBARCH),LIBC) 718 @echo $(DL)#define CURL_SIZEOF_LONG 4$(DL) >> $@ 719 @echo $(DL)#define CURL_TYPEOF_CURL_SOCKLEN_T unsigned int$(DL) >> $@ 720 @echo $(DL)#define CURL_SIZEOF_CURL_SOCKLEN_T 4$(DL) >> $@ 721 @echo $(DL)#define CURL_TYPEOF_CURL_OFF_T long long$(DL) >> $@ 722 @echo $(DL)#define CURL_FORMAT_CURL_OFF_T "lld"$(DL) >> $@ 723 @echo $(DL)#define CURL_FORMAT_CURL_OFF_TU "llu"$(DL) >> $@ 724 @echo $(DL)#define CURL_FORMAT_OFF_T "$(PCT)lld"$(DL) >> $@ 725 @echo $(DL)#define CURL_SIZEOF_CURL_OFF_T 8$(DL) >> $@ 726 @echo $(DL)#define CURL_SUFFIX_CURL_OFF_T LL$(DL) >> $@ 727 @echo $(DL)#define CURL_SUFFIX_CURL_OFF_TU ULL$(DL) >> $@ 728else 729 @echo $(DL)#define CURL_SIZEOF_LONG 4$(DL) >> $@ 730 @echo $(DL)#define CURL_TYPEOF_CURL_SOCKLEN_T int$(DL) >> $@ 731 @echo $(DL)#define CURL_SIZEOF_CURL_SOCKLEN_T 4$(DL) >> $@ 732 @echo $(DL)#define CURL_TYPEOF_CURL_OFF_T long$(DL) >> $@ 733 @echo $(DL)#define CURL_FORMAT_CURL_OFF_T "ld"$(DL) >> $@ 734 @echo $(DL)#define CURL_FORMAT_CURL_OFF_TU "lu"$(DL) >> $@ 735 @echo $(DL)#define CURL_FORMAT_OFF_T "$(PCT)ld"$(DL) >> $@ 736 @echo $(DL)#define CURL_SIZEOF_CURL_OFF_T 4$(DL) >> $@ 737 @echo $(DL)#define CURL_SUFFIX_CURL_OFF_T L$(DL) >> $@ 738 @echo $(DL)#define CURL_SUFFIX_CURL_OFF_TU UL$(DL) >> $@ 739endif 740 @echo $(DL)typedef CURL_TYPEOF_CURL_SOCKLEN_T curl_socklen_t;$(DL) >> $@ 741 @echo $(DL)typedef CURL_TYPEOF_CURL_OFF_T curl_off_t;$(DL) >> $@ 742 @echo $(DL)#endif /* __CURL_CURLBUILD_H */$(DL) >> $@ 743 744