1 #################################################################
3 ## Makefile for building libcurl.nlm (NetWare version - gnu make)
4 ## Use: make -f Makefile.netware
6 ## Comments to: Guenter Knauf http://www.gknw.net/phpbb
8 #################################################################
10 # Edit the path below to point to the base of your Novell NDK.
15 # Edit the path below to point to the base of your Zlib sources.
17 ZLIB_PATH = ../../zlib-1.2.8
20 # Edit the path below to point to the base of your OpenSSL package.
22 OPENSSL_PATH = ../../openssl-0.9.8zc
25 # Edit the path below to point to the base of your LibSSH2 package.
27 LIBSSH2_PATH = ../../libssh2-1.4.3
30 # Edit the path below to point to the base of your axTLS package.
32 AXTLS_PATH = ../../axTLS-1.2.7
35 # Edit the path below to point to the base of your libidn package.
37 LIBIDN_PATH = ../../libidn-1.18
40 # Edit the path below to point to the base of your librtmp package.
42 LIBRTMP_PATH = ../../librtmp-2.3
45 # Edit the path below to point to the base of your nghttp2 package.
47 NGHTTP2_PATH = ../../nghttp2-0.6.7
50 # Edit the path below to point to the base of your fbopenssl package.
52 FBOPENSSL_PATH = ../../fbopenssl-0.4
55 # Edit the path below to point to the base of your c-ares package.
57 LIBCARES_PATH = ../ares
61 INSTDIR = ..$(DS)curl-$(LIBCURL_VERSION_STR)-bin-nw
64 # Edit the vars below to change NLM target settings.
66 VERSION = $(LIBCURL_VERSION)
67 COPYR = Copyright (C) $(LIBCURL_COPYRIGHT_STR)
68 DESCR = cURL libcurl $(LIBCURL_VERSION_STR) ($(LIBARCH)) - http://curl.haxx.se
72 EXPORTF = $(TARGET).imp
75 # Uncomment the next line to enable linking with POSIX semantics.
78 # Edit the var below to point to your lib architecture.
83 # must be equal to NDEBUG or DEBUG, CURLDEBUG
87 # Optimization: -O<n> or debugging: -g
96 # The following lines defines your compiler.
98 METROWERKS = $(CWFolder)
101 # MWCW_PATH = $(subst \,/,$(METROWERKS))/Novell Support
102 MWCW_PATH = $(subst \,/,$(METROWERKS))/Novell Support/Metrowerks Support
108 # Here you can find a native Win32 binary of the original awk:
109 # http://www.gknw.net/development/prgtools/awk-20100523.zip
114 # If you want to mark the target as MTSAFE you will need a tool for
115 # generating the xdc data for the linker; here's a minimal tool:
116 # http://www.gknw.net/development/prgtools/mkxdc.zip
119 # LIBARCH_U = $(shell $(AWK) 'BEGIN {print toupper(ARGV[1])}' $(LIBARCH))
120 LIBARCH_L = $(shell $(AWK) 'BEGIN {print tolower(ARGV[1])}' $(LIBARCH))
122 # Include the version info retrieved from curlver.h
123 -include $(OBJDIR)/version.inc
125 # Global flags for all compilers
126 CFLAGS += $(OPT) -D$(DB) -DNETWARE -DHAVE_CONFIG_H -nostdinc
130 LDFLAGS = -nostdlib $(PRELUDE) $(OBJL) -o $@ -commandfile
132 ARFLAGS = -nostdlib -type library -o
135 CFLAGS += -msgstyle gcc -gccinc -inline off -opt nointrinsics -proc 586
136 CFLAGS += -relax_pointers
138 ifeq ($(LIBARCH),LIBC)
140 PRELUDE = $(NDK_LIBC)/imports/posixpre.o
142 PRELUDE = $(NDK_LIBC)/imports/libcpre.o
146 # PRELUDE = $(NDK_CLIB)/imports/clibpre.o
147 # to avoid the __init_* / __deinit_* whoes dont use prelude from NDK
148 PRELUDE = "$(MWCW_PATH)/libraries/runtime/prelude.obj"
149 # CFLAGS += -include "$(MWCW_PATH)/headers/nlm_clib_prefix.h"
160 CFLAGS += -fno-builtin -fno-strict-aliasing
161 ifeq ($(findstring gcc,$(CC)),gcc)
162 CFLAGS += -fpcc-struct-return
164 CFLAGS += -Wall # -pedantic
165 ifeq ($(LIBARCH),LIBC)
167 PRELUDE = $(NDK_LIBC)/imports/posixpre.gcc.o
169 PRELUDE = $(NDK_LIBC)/imports/libcpre.gcc.o
172 PRELUDE = $(NDK_CLIB)/imports/clibpre.gcc.o
173 # to avoid the __init_* / __deinit_* whoes dont use prelude from NDK
174 # http://www.gknw.net/development/mk_nlm/gcc_pre.zip
175 # PRELUDE = $(NDK_ROOT)/pre/prelude.o
176 CFLAGS += -include $(NDKBASE)/nlmconv/genlm.h
180 NDK_ROOT = $(NDKBASE)/ndk
182 NDK_CLIB = $(NDK_ROOT)/nwsdk
185 NDK_LIBC = $(NDK_ROOT)/libc
188 NDK_LDAP = $(NDK_ROOT)/cldapsdk/netware
190 CURL_INC = ../include
193 INCLUDES = -I$(CURL_INC) -I$(CURL_LIB)
195 ifeq ($(findstring -static,$(CFG)),-static)
198 ifeq ($(findstring -ares,$(CFG)),-ares)
201 ifeq ($(findstring -rtmp,$(CFG)),-rtmp)
206 ifeq ($(findstring -ssh2,$(CFG)),-ssh2)
211 ifeq ($(findstring -axtls,$(CFG)),-axtls)
215 ifeq ($(findstring -ssl,$(CFG)),-ssl)
217 ifeq ($(findstring -srp,$(CFG)),-srp)
218 ifeq "$(wildcard $(OPENSSL_PATH)/outinc_nw_$(LIBARCH_L)/openssl/srp.h)" "$(OPENSSL_PATH)/outinc_nw_$(LIBARCH_L)/openssl/srp.h"
224 ifeq ($(findstring -zlib,$(CFG)),-zlib)
227 ifeq ($(findstring -idn,$(CFG)),-idn)
230 ifeq ($(findstring -nghttp2,$(CFG)),-nghttp2)
233 ifeq ($(findstring -ipv6,$(CFG)),-ipv6)
238 INCLUDES += -I$(LIBCARES_PATH)
239 LDLIBS += $(LIBCARES_PATH)/libcares.$(LIBEXT)
242 INCLUDES += -I$(LIBSSH2_PATH)/include
244 LDLIBS += $(LIBSSH2_PATH)/nw/libssh2.$(LIBEXT)
246 MODULES += libssh2.nlm
247 IMPORTS += @$(LIBSSH2_PATH)/nw/libssh2.imp
251 INCLUDES += -I$(LIBRTMP_PATH)
252 LDLIBS += $(LIBRTMP_PATH)/librtmp/librtmp.$(LIBEXT)
255 INCLUDES += -I$(OPENSSL_PATH)/outinc_nw_$(LIBARCH_L)
256 LDLIBS += $(OPENSSL_PATH)/out_nw_$(LIBARCH_L)/ssl.$(LIBEXT)
257 LDLIBS += $(OPENSSL_PATH)/out_nw_$(LIBARCH_L)/crypto.$(LIBEXT)
258 IMPORTS += GetProcessSwitchCount RunningProcess
259 INSTDEP += ca-bundle.crt
262 INCLUDES += -I$(AXTLS_PATH)/inc
264 LDLIBS += $(AXTLS_PATH)/lib/libaxtls.$(LIBEXT)
266 MODULES += libaxtls.nlm
267 IMPORTS += $(AXTLS_PATH)/lib/libaxtls.imp
269 INSTDEP += ca-bundle.crt
273 INCLUDES += -I$(ZLIB_PATH)
275 LDLIBS += $(ZLIB_PATH)/nw/$(LIBARCH)/libz.$(LIBEXT)
278 IMPORTS += @$(ZLIB_PATH)/nw/$(LIBARCH)/libz.imp
282 INCLUDES += -I$(LIBIDN_PATH)/include
283 LDLIBS += $(LIBIDN_PATH)/lib/libidn.$(LIBEXT)
286 INCLUDES += -I$(NGHTTP2_PATH)/include
287 LDLIBS += $(NGHTTP2_PATH)/lib/libnghttp2.$(LIBEXT)
290 ifeq ($(LIBARCH),LIBC)
291 INCLUDES += -I$(NDK_LIBC)/include
292 # INCLUDES += -I$(NDK_LIBC)/include/nks
293 # INCLUDES += -I$(NDK_LIBC)/include/winsock
294 CFLAGS += -D_POSIX_SOURCE
296 INCLUDES += -I$(NDK_CLIB)/include/nlm
297 # INCLUDES += -I$(NDK_CLIB)/include/nlm/obsolete
298 # INCLUDES += -I$(NDK_CLIB)/include
301 INCLUDES += -I$(NDK_LDAP)/$(LIBARCH_L)/inc
303 CFLAGS += $(INCLUDES)
312 XDCDATA = $(OBJDIR)/$(TARGET).xdc
315 ifeq ($(findstring /sh,$(SHELL)),/sh)
319 #-include $(NDKBASE)/nlmconv/ncpfs.inc
325 # Makefile.inc provides the CSOURCES and HHEADERS defines
328 OBJS := $(patsubst %.c,$(OBJDIR)/%.o,$(strip $(notdir $(CSOURCES)))) $(OBJDIR)/nwos.o
330 OBJL = $(OBJS) $(OBJDIR)/nwlib.o $(LDLIBS)
336 nlm: prebuild $(TARGET).nlm
338 lib: prebuild $(TARGET).$(LIBEXT)
340 prebuild: $(OBJDIR) $(CURL_INC)/curl/curlbuild.h $(OBJDIR)/version.inc curl_config.h
344 $(CC) $(CFLAGS) -c $< -o $@
346 $(OBJDIR)/version.inc: $(CURL_INC)/curl/curlver.h $(OBJDIR)
348 @$(AWK) -f ../packages/NetWare/get_ver.awk $< > $@
350 install: $(INSTDIR) all $(INSTDEP)
351 @$(CP) $(TARGET).nlm $(INSTDIR)
352 @$(CP) $(TARGET).$(LIBEXT) $(INSTDIR)
353 @$(CP) ../CHANGES $(INSTDIR)
354 @$(CP) ../COPYING $(INSTDIR)
355 @$(CP) ../README $(INSTDIR)
356 @$(CP) ../RELEASE-NOTES $(INSTDIR)
358 @-$(CP) ca-bundle.crt $(INSTDIR)/ca-bundle.crt
365 distclean vclean: clean
366 -$(RM) $(TARGET).$(LIBEXT) $(TARGET).nlm $(TARGET).imp
367 -$(RM) certdata.txt ca-bundle.crt
369 $(OBJDIR) $(INSTDIR):
372 $(TARGET).$(LIBEXT): $(OBJS)
375 @$(AR) $(ARFLAGS) $@ $^
380 $(TARGET).nlm: $(OBJDIR)/$(TARGET).def $(OBJL) $(EXPORTF) $(XDCDATA)
385 $(OBJDIR)/%.xdc: Makefile.netware
387 @$(MPKXDC) $(XDCOPT) $@
389 $(OBJDIR)/%.def: Makefile.netware
390 @echo $(DL)# DEF file for linking with $(LD)$(DL) > $@
391 @echo $(DL)# Do not edit this file - it is created by make!$(DL) >> $@
392 @echo $(DL)# All your changes will be lost!!$(DL) >> $@
393 @echo $(DL)#$(DL) >> $@
394 @echo $(DL)copyright "$(COPYR)"$(DL) >> $@
395 @echo $(DL)description "$(DESCR)"$(DL) >> $@
396 @echo $(DL)version $(VERSION)$(DL) >> $@
398 @echo $(DL)type $(NLMTYPE)$(DL) >> $@
401 @echo $(DL)stack $(STACK)$(DL) >> $@
404 @echo $(DL)screenname "$(SCREEN)"$(DL) >> $@
406 @echo $(DL)screenname "DEFAULT"$(DL) >> $@
409 @echo $(DL)debug$(DL) >> $@
411 @echo $(DL)threadname "$(TARGET)"$(DL) >> $@
413 @echo $(DL)xdcdata $(XDCDATA)$(DL) >> $@
415 @echo $(DL)flag_on 64$(DL) >> $@
416 ifeq ($(LIBARCH),CLIB)
417 @echo $(DL)start _Prelude$(DL) >> $@
418 @echo $(DL)exit _Stop$(DL) >> $@
419 @echo $(DL)import @$(NDK_CLIB)/imports/clib.imp$(DL) >> $@
420 @echo $(DL)import @$(NDK_CLIB)/imports/threads.imp$(DL) >> $@
421 @echo $(DL)import @$(NDK_CLIB)/imports/nlmlib.imp$(DL) >> $@
422 @echo $(DL)import @$(NDK_CLIB)/imports/socklib.imp$(DL) >> $@
423 @echo $(DL)module clib$(DL) >> $@
425 @echo $(DL)import @$(NDK_LDAP)/clib/imports/ldapsdk.imp$(DL) >> $@
426 @echo $(DL)import @$(NDK_LDAP)/clib/imports/ldapssl.imp$(DL) >> $@
427 # @echo $(DL)import @$(NDK_LDAP)/clib/imports/ldapx.imp$(DL) >> $@
428 @echo $(DL)module ldapsdk ldapssl$(DL) >> $@
432 @echo $(DL)flag_on 4194304$(DL) >> $@
434 @echo $(DL)pseudopreemption$(DL) >> $@
435 ifeq ($(findstring posixpre,$(PRELUDE)),posixpre)
436 @echo $(DL)start POSIX_Start$(DL) >> $@
437 @echo $(DL)exit POSIX_Stop$(DL) >> $@
438 @echo $(DL)check POSIX_CheckUnload$(DL) >> $@
440 @echo $(DL)start _LibCPrelude$(DL) >> $@
441 @echo $(DL)exit _LibCPostlude$(DL) >> $@
442 @echo $(DL)check _LibCCheckUnload$(DL) >> $@
444 @echo $(DL)import @$(NDK_LIBC)/imports/libc.imp$(DL) >> $@
445 @echo $(DL)import @$(NDK_LIBC)/imports/netware.imp$(DL) >> $@
446 @echo $(DL)module libc$(DL) >> $@
448 @echo $(DL)import @$(NDK_LDAP)/libc/imports/lldapsdk.imp$(DL) >> $@
449 @echo $(DL)import @$(NDK_LDAP)/libc/imports/lldapssl.imp$(DL) >> $@
450 # @echo $(DL)import @$(NDK_LDAP)/libc/imports/lldapx.imp$(DL) >> $@
451 @echo $(DL)module lldapsdk lldapssl$(DL) >> $@
455 @echo $(DL)module $(MODULES)$(DL) >> $@
458 @echo $(DL)export $(EXPORTS)$(DL) >> $@
461 @echo $(DL)import $(IMPORTS)$(DL) >> $@
463 ifeq ($(findstring nlmconv,$(LD)),nlmconv)
464 @echo $(DL)input $(PRELUDE)$(DL) >> $@
465 @echo $(DL)input $(OBJL)$(DL) >> $@
467 # @echo $(DL)input $(LDLIBS)$(DL) >> $@
469 @echo $(DL)output $(TARGET).nlm$(DL) >> $@
472 curl_config.h: Makefile.netware
474 @echo $(DL)/* $@ for NetWare target.$(DL) > $@
475 @echo $(DL)** Do not edit this file - it is created by make!$(DL) >> $@
476 @echo $(DL)** All your changes will be lost!!$(DL) >> $@
477 @echo $(DL)*/$(DL) >> $@
478 @echo $(DL)#ifndef NETWARE$(DL) >> $@
479 @echo $(DL)#error This $(notdir $@) is created for NetWare platform!$(DL) >> $@
480 @echo $(DL)#endif$(DL) >> $@
481 @echo $(DL)#define VERSION "$(LIBCURL_VERSION_STR)"$(DL) >> $@
482 @echo $(DL)#define PACKAGE_BUGREPORT "a suitable curl mailing list => http://curl.haxx.se/mail/"$(DL) >> $@
483 ifeq ($(LIBARCH),CLIB)
484 @echo $(DL)#define OS "i586-pc-clib-NetWare"$(DL) >> $@
485 @echo $(DL)#define NETDB_USE_INTERNET 1$(DL) >> $@
486 @echo $(DL)#define HAVE_STRICMP 1$(DL) >> $@
487 @echo $(DL)#define HAVE_STRNICMP 1$(DL) >> $@
488 @echo $(DL)#define RECV_TYPE_ARG1 int$(DL) >> $@
489 @echo $(DL)#define RECV_TYPE_ARG2 char *$(DL) >> $@
490 @echo $(DL)#define RECV_TYPE_ARG3 int$(DL) >> $@
491 @echo $(DL)#define RECV_TYPE_ARG4 int$(DL) >> $@
492 @echo $(DL)#define RECV_TYPE_RETV int$(DL) >> $@
493 @echo $(DL)#define RECVFROM_TYPE_ARG1 int$(DL) >> $@
494 @echo $(DL)#define RECVFROM_TYPE_ARG2 char$(DL) >> $@
495 @echo $(DL)#define RECVFROM_TYPE_ARG3 int$(DL) >> $@
496 @echo $(DL)#define RECVFROM_TYPE_ARG4 int$(DL) >> $@
497 @echo $(DL)#define RECVFROM_TYPE_ARG5 struct sockaddr$(DL) >> $@
498 @echo $(DL)#define RECVFROM_TYPE_ARG6 int$(DL) >> $@
499 @echo $(DL)#define RECVFROM_TYPE_RETV int$(DL) >> $@
500 @echo $(DL)#define SEND_QUAL_ARG2$(DL) >> $@
501 @echo $(DL)#define SEND_TYPE_ARG1 int$(DL) >> $@
502 @echo $(DL)#define SEND_TYPE_ARG2 char *$(DL) >> $@
503 @echo $(DL)#define SEND_TYPE_ARG3 int$(DL) >> $@
504 @echo $(DL)#define SEND_TYPE_ARG4 int$(DL) >> $@
505 @echo $(DL)#define SEND_TYPE_RETV int$(DL) >> $@
506 @echo $(DL)#define SIZEOF_SIZE_T 4$(DL) >> $@
507 @echo $(DL)#define pressanykey PressAnyKeyToContinue$(DL) >> $@
509 @echo $(DL)#define OS "i586-pc-libc-NetWare"$(DL) >> $@
510 @echo $(DL)#define HAVE_FTRUNCATE 1$(DL) >> $@
511 @echo $(DL)#define HAVE_GETTIMEOFDAY 1$(DL) >> $@
512 @echo $(DL)#define HAVE_INTTYPES_H 1$(DL) >> $@
513 @echo $(DL)#define HAVE_LONGLONG 1$(DL) >> $@
514 @echo $(DL)#define HAVE_STDINT_H 1$(DL) >> $@
515 @echo $(DL)#define HAVE_STRCASECMP 1$(DL) >> $@
516 @echo $(DL)#define HAVE_STRLCAT 1$(DL) >> $@
517 @echo $(DL)#define HAVE_STRLCPY 1$(DL) >> $@
518 @echo $(DL)#define HAVE_STRTOLL 1$(DL) >> $@
519 @echo $(DL)#define HAVE_SYS_PARAM_H 1$(DL) >> $@
520 @echo $(DL)#define HAVE_SYS_SELECT_H 1$(DL) >> $@
521 @echo $(DL)#define HAVE_TERMIOS_H 1$(DL) >> $@
522 @echo $(DL)#define RECV_TYPE_ARG1 int$(DL) >> $@
523 @echo $(DL)#define RECV_TYPE_ARG2 void *$(DL) >> $@
524 @echo $(DL)#define RECV_TYPE_ARG3 size_t$(DL) >> $@
525 @echo $(DL)#define RECV_TYPE_ARG4 int$(DL) >> $@
526 @echo $(DL)#define RECV_TYPE_RETV ssize_t$(DL) >> $@
527 @echo $(DL)#define RECVFROM_TYPE_ARG1 int$(DL) >> $@
528 @echo $(DL)#define RECVFROM_TYPE_ARG2 void$(DL) >> $@
529 @echo $(DL)#define RECVFROM_TYPE_ARG3 size_t$(DL) >> $@
530 @echo $(DL)#define RECVFROM_TYPE_ARG4 int$(DL) >> $@
531 @echo $(DL)#define RECVFROM_TYPE_ARG5 struct sockaddr$(DL) >> $@
532 @echo $(DL)#define RECVFROM_TYPE_ARG6 size_t$(DL) >> $@
533 @echo $(DL)#define RECVFROM_TYPE_RETV ssize_t$(DL) >> $@
534 @echo $(DL)#define RECVFROM_TYPE_ARG2_IS_VOID 1$(DL) >> $@
535 @echo $(DL)#define SEND_QUAL_ARG2$(DL) >> $@
536 @echo $(DL)#define SEND_TYPE_ARG1 int$(DL) >> $@
537 @echo $(DL)#define SEND_TYPE_ARG2 void *$(DL) >> $@
538 @echo $(DL)#define SEND_TYPE_ARG3 size_t$(DL) >> $@
539 @echo $(DL)#define SEND_TYPE_ARG4 int$(DL) >> $@
540 @echo $(DL)#define SEND_TYPE_RETV ssize_t$(DL) >> $@
541 @echo $(DL)#define SIZEOF_OFF_T 8$(DL) >> $@
542 @echo $(DL)#define SIZEOF_SIZE_T 8$(DL) >> $@
543 @echo $(DL)#define _LARGEFILE 1$(DL) >> $@
545 @echo $(DL)#define ENABLE_IPV6 1$(DL) >> $@
546 @echo $(DL)#define HAVE_AF_INET6 1$(DL) >> $@
547 @echo $(DL)#define HAVE_PF_INET6 1$(DL) >> $@
548 @echo $(DL)#define HAVE_FREEADDRINFO 1$(DL) >> $@
549 @echo $(DL)#define HAVE_GETADDRINFO 1$(DL) >> $@
550 @echo $(DL)#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1$(DL) >> $@
551 @echo $(DL)#define HAVE_STRUCT_ADDRINFO 1$(DL) >> $@
552 @echo $(DL)#define HAVE_STRUCT_IN6_ADDR 1$(DL) >> $@
553 @echo $(DL)#define HAVE_STRUCT_SOCKADDR_IN6 1$(DL) >> $@
554 @echo $(DL)#define SIZEOF_STRUCT_IN6_ADDR 16$(DL) >> $@
557 @echo $(DL)#define USE_MANUAL 1$(DL) >> $@
558 @echo $(DL)#define HAVE_ARPA_INET_H 1$(DL) >> $@
559 @echo $(DL)#define HAVE_ASSERT_H 1$(DL) >> $@
560 @echo $(DL)#define HAVE_ERRNO_H 1$(DL) >> $@
561 @echo $(DL)#define HAVE_ERR_H 1$(DL) >> $@
562 @echo $(DL)#define HAVE_FCNTL_H 1$(DL) >> $@
563 @echo $(DL)#define HAVE_GETHOSTBYADDR 1$(DL) >> $@
564 @echo $(DL)#define HAVE_GETHOSTBYNAME 1$(DL) >> $@
565 @echo $(DL)#define HAVE_GETPROTOBYNAME 1$(DL) >> $@
566 @echo $(DL)#define HAVE_GMTIME_R 1$(DL) >> $@
567 @echo $(DL)#define HAVE_INET_ADDR 1$(DL) >> $@
568 @echo $(DL)#define HAVE_IOCTL 1$(DL) >> $@
569 @echo $(DL)#define HAVE_IOCTL_FIONBIO 1$(DL) >> $@
570 @echo $(DL)#define HAVE_LIMITS_H 1$(DL) >> $@
571 @echo $(DL)#define HAVE_LL 1$(DL) >> $@
572 @echo $(DL)#define HAVE_LOCALE_H 1$(DL) >> $@
573 @echo $(DL)#define HAVE_LOCALTIME_R 1$(DL) >> $@
574 @echo $(DL)#define HAVE_MALLOC_H 1$(DL) >> $@
575 @echo $(DL)#define HAVE_NETINET_IN_H 1$(DL) >> $@
576 @echo $(DL)#define HAVE_RECV 1$(DL) >> $@
577 @echo $(DL)#define HAVE_RECVFROM 1$(DL) >> $@
578 @echo $(DL)#define HAVE_SELECT 1$(DL) >> $@
579 @echo $(DL)#define HAVE_SEND 1$(DL) >> $@
580 @echo $(DL)#define HAVE_SETJMP_H 1$(DL) >> $@
581 @echo $(DL)#define HAVE_SETLOCALE 1$(DL) >> $@
582 @echo $(DL)#define HAVE_SIGNAL 1$(DL) >> $@
583 @echo $(DL)#define HAVE_SIGNAL_H 1$(DL) >> $@
584 @echo $(DL)#define HAVE_SIG_ATOMIC_T 1$(DL) >> $@
585 @echo $(DL)#define HAVE_SOCKET 1$(DL) >> $@
586 @echo $(DL)#define HAVE_STDLIB_H 1$(DL) >> $@
587 @echo $(DL)#define HAVE_STRDUP 1$(DL) >> $@
588 @echo $(DL)#define HAVE_STRFTIME 1$(DL) >> $@
589 @echo $(DL)#define HAVE_STRING_H 1$(DL) >> $@
590 @echo $(DL)#define HAVE_STRSTR 1$(DL) >> $@
591 @echo $(DL)#define HAVE_STRUCT_TIMEVAL 1$(DL) >> $@
592 @echo $(DL)#define HAVE_SYS_IOCTL_H 1$(DL) >> $@
593 @echo $(DL)#define HAVE_SYS_STAT_H 1$(DL) >> $@
594 @echo $(DL)#define HAVE_SYS_TIME_H 1$(DL) >> $@
595 @echo $(DL)#define HAVE_TIME_H 1$(DL) >> $@
596 @echo $(DL)#define HAVE_UNAME 1$(DL) >> $@
597 @echo $(DL)#define HAVE_UNISTD_H 1$(DL) >> $@
598 @echo $(DL)#define HAVE_UTIME 1$(DL) >> $@
599 @echo $(DL)#define HAVE_UTIME_H 1$(DL) >> $@
600 @echo $(DL)#define HAVE_WRITEV 1$(DL) >> $@
601 @echo $(DL)#define RETSIGTYPE void$(DL) >> $@
602 @echo $(DL)#define SIZEOF_INT 4$(DL) >> $@
603 @echo $(DL)#define SIZEOF_SHORT 2$(DL) >> $@
604 @echo $(DL)#define SIZEOF_STRUCT_IN_ADDR 4$(DL) >> $@
605 @echo $(DL)#define STDC_HEADERS 1$(DL) >> $@
606 @echo $(DL)#define TIME_WITH_SYS_TIME 1$(DL) >> $@
608 @echo $(DL)#define CURL_DISABLE_LDAP 1$(DL) >> $@
610 @echo $(DL)#define CURL_HAS_NOVELL_LDAPSDK 1$(DL) >> $@
612 @echo $(DL)#define HAVE_LDAP_SSL 1$(DL) >> $@
614 @echo $(DL)#define HAVE_LDAP_SSL_H 1$(DL) >> $@
615 @echo $(DL)#define HAVE_LDAP_URL_PARSE 1$(DL) >> $@
618 @echo $(DL)#define HAVE_CLOSESOCKET 1$(DL) >> $@
620 @echo $(DL)#define USE_BSD_SOCKETS 1$(DL) >> $@
621 @echo $(DL)#define HAVE_SYS_TYPES_H 1$(DL) >> $@
622 @echo $(DL)#define HAVE_SYS_SOCKET_H 1$(DL) >> $@
623 @echo $(DL)#define HAVE_SYS_SOCKIO_H 1$(DL) >> $@
624 @echo $(DL)#define HAVE_NETDB_H 1$(DL) >> $@
627 @echo $(DL)#define USE_ARES 1$(DL) >> $@
630 @echo $(DL)#define HAVE_ZLIB_H 1$(DL) >> $@
631 @echo $(DL)#define HAVE_LIBZ 1$(DL) >> $@
634 @echo $(DL)#define USE_SSLEAY 1$(DL) >> $@
635 @echo $(DL)#define USE_OPENSSL 1$(DL) >> $@
636 @echo $(DL)#define HAVE_OPENSSL_X509_H 1$(DL) >> $@
637 @echo $(DL)#define HAVE_OPENSSL_SSL_H 1$(DL) >> $@
638 @echo $(DL)#define HAVE_OPENSSL_RSA_H 1$(DL) >> $@
639 @echo $(DL)#define HAVE_OPENSSL_PEM_H 1$(DL) >> $@
640 @echo $(DL)#define HAVE_OPENSSL_ERR_H 1$(DL) >> $@
641 @echo $(DL)#define HAVE_OPENSSL_CRYPTO_H 1$(DL) >> $@
642 @echo $(DL)#define HAVE_OPENSSL_ENGINE_H 1$(DL) >> $@
643 @echo $(DL)#define HAVE_LIBSSL 1$(DL) >> $@
644 @echo $(DL)#define HAVE_LIBCRYPTO 1$(DL) >> $@
645 @echo $(DL)#define OPENSSL_NO_KRB5 1$(DL) >> $@
647 @echo $(DL)#define HAVE_SSLEAY_SRP 1$(DL) >> $@
648 @echo $(DL)#define USE_TLS_SRP 1$(DL) >> $@
651 @echo $(DL)#define HAVE_SPNEGO 1$(DL) >> $@
655 @echo $(DL)#define USE_AXTLS 1$(DL) >> $@
659 @echo $(DL)#define USE_LIBSSH2 1$(DL) >> $@
660 @echo $(DL)#define HAVE_LIBSSH2_H 1$(DL) >> $@
663 @echo $(DL)#define HAVE_LIBIDN 1$(DL) >> $@
664 @echo $(DL)#define HAVE_TLD_H 1$(DL) >> $@
667 @echo $(DL)#define USE_LIBRTMP 1$(DL) >> $@
670 @echo $(DL)#define USE_NGHTTP2 1$(DL) >> $@
672 @echo $(DL)#ifdef __GNUC__$(DL) >> $@
673 @echo $(DL)#define HAVE_VARIADIC_MACROS_GCC 1$(DL) >> $@
674 @echo $(DL)#else$(DL) >> $@
675 @echo $(DL)#define HAVE_VARIADIC_MACROS_C99 1$(DL) >> $@
676 @echo $(DL)#endif$(DL) >> $@
678 @echo $(DL)#define CURL_CA_BUNDLE "$(CABUNDLE)"$(DL) >> $@
680 @echo $(DL)#define CURL_CA_BUNDLE getenv("CURL_CA_BUNDLE")$(DL) >> $@
683 $(EXPORTF): $(CURL_INC)/curl/curl.h $(CURL_INC)/curl/easy.h $(CURL_INC)/curl/multi.h $(CURL_INC)/curl/mprintf.h
685 @$(AWK) -f ../packages/NetWare/get_exp.awk $^ > $@
689 info: $(OBJDIR)/version.inc
690 @echo Configured to build $(TARGET) with these options:
691 @echo libarchitecture: $(LIBARCH)
692 @echo curl version: $(LIBCURL_VERSION_STR)
693 @echo compiler/linker: $(CC) / $(LD)
695 @echo ca-bundle path: $(CABUNDLE)
698 @echo SSL support: enabled (OpenSSL)
700 @echo SSL support: no
703 @echo SRP support: enabled
705 @echo SRP support: no
708 @echo SSH2 support: enabled (libssh2)
710 @echo SSH2 support: no
713 @echo zlib support: enabled
715 @echo zlib support: no
718 @echo http2 support: enabled
720 @echo http2 support: no
723 @echo c-ares support: enabled
725 @echo c-ares support: no
728 @echo IPv6 support: enabled
730 @echo IPv6 support: no
733 $(CURL_INC)/curl/curlbuild.h: Makefile.netware FORCE
735 @echo $(DL)/* $@ intended for NetWare target.$(DL) > $@
736 @echo $(DL)** Do not edit this file - it is created by make!$(DL) >> $@
737 @echo $(DL)** All your changes will be lost!!$(DL) >> $@
738 @echo $(DL)*/$(DL) >> $@
739 @echo $(DL)#ifndef NETWARE$(DL) >> $@
740 @echo $(DL)#error This $(notdir $@) is created for NetWare platform!$(DL) >> $@
741 @echo $(DL)#endif$(DL) >> $@
742 @echo $(DL)#ifndef __CURL_CURLBUILD_H$(DL) >> $@
743 @echo $(DL)#define __CURL_CURLBUILD_H$(DL) >> $@
744 ifeq ($(LIBARCH),LIBC)
745 @echo $(DL)#define CURL_SIZEOF_LONG 4$(DL) >> $@
746 @echo $(DL)#define CURL_TYPEOF_CURL_SOCKLEN_T unsigned int$(DL) >> $@
747 @echo $(DL)#define CURL_SIZEOF_CURL_SOCKLEN_T 4$(DL) >> $@
748 @echo $(DL)#define CURL_TYPEOF_CURL_OFF_T long long$(DL) >> $@
749 @echo $(DL)#define CURL_FORMAT_CURL_OFF_T "lld"$(DL) >> $@
750 @echo $(DL)#define CURL_FORMAT_CURL_OFF_TU "llu"$(DL) >> $@
751 @echo $(DL)#define CURL_FORMAT_OFF_T "$(PCT)lld"$(DL) >> $@
752 @echo $(DL)#define CURL_SIZEOF_CURL_OFF_T 8$(DL) >> $@
753 @echo $(DL)#define CURL_SUFFIX_CURL_OFF_T LL$(DL) >> $@
754 @echo $(DL)#define CURL_SUFFIX_CURL_OFF_TU ULL$(DL) >> $@
756 @echo $(DL)#define CURL_SIZEOF_LONG 4$(DL) >> $@
757 @echo $(DL)#define CURL_TYPEOF_CURL_SOCKLEN_T int$(DL) >> $@
758 @echo $(DL)#define CURL_SIZEOF_CURL_SOCKLEN_T 4$(DL) >> $@
759 @echo $(DL)#define CURL_TYPEOF_CURL_OFF_T long$(DL) >> $@
760 @echo $(DL)#define CURL_FORMAT_CURL_OFF_T "ld"$(DL) >> $@
761 @echo $(DL)#define CURL_FORMAT_CURL_OFF_TU "lu"$(DL) >> $@
762 @echo $(DL)#define CURL_FORMAT_OFF_T "$(PCT)ld"$(DL) >> $@
763 @echo $(DL)#define CURL_SIZEOF_CURL_OFF_T 4$(DL) >> $@
764 @echo $(DL)#define CURL_SUFFIX_CURL_OFF_T L$(DL) >> $@
765 @echo $(DL)#define CURL_SUFFIX_CURL_OFF_TU UL$(DL) >> $@
767 @echo $(DL)typedef CURL_TYPEOF_CURL_SOCKLEN_T curl_socklen_t;$(DL) >> $@
768 @echo $(DL)typedef CURL_TYPEOF_CURL_OFF_T curl_off_t;$(DL) >> $@
769 @echo $(DL)#endif /* __CURL_CURLBUILD_H */$(DL) >> $@
771 $(LIBCARES_PATH)/libcares.$(LIBEXT):
772 $(MAKE) -C $(LIBCARES_PATH) -f Makefile.netware lib
774 ca-bundle.crt: mk-ca-bundle.pl
776 @-$(PERL) $< -b -n $@