1
1
#################################################################
2
# $Id: Makefile.netware,v 1.83 2008-03-31 12:51:44 gknauf Exp $
2
# $Id: Makefile.netware,v 1.118 2008-12-30 08:16:24 gknauf Exp $
4
4
## Makefile for building libcurl.nlm (NetWare version - gnu make)
5
5
## Use: make -f Makefile.netware
21
21
# Edit the path below to point to the base of your OpenSSL package.
22
22
ifndef OPENSSL_PATH
23
OPENSSL_PATH = ../../openssl-0.9.8g
23
OPENSSL_PATH = ../../openssl-0.9.8i
26
26
# Edit the path below to point to the base of your LibSSH2 package.
171
INCLUDES += -I$(OPENSSL_PATH)/outinc_nw_$(LIBARCH_L) -I$(OPENSSL_PATH)/outinc_nw_$(LIBARCH_L)/openssl
176
INCLUDES += -I$(OPENSSL_PATH)/outinc_nw_$(LIBARCH_L)
172
177
LDLIBS += $(OPENSSL_PATH)/out_nw_$(LIBARCH_L)/ssl.$(LIBEXT)
173
178
LDLIBS += $(OPENSSL_PATH)/out_nw_$(LIBARCH_L)/crypto.$(LIBEXT)
174
179
IMPORTS += GetProcessSwitchCount RunningProcess
377
388
@echo $(DL)#define OS "i586-pc-clib-NetWare"$(DL) >> $@
378
389
@echo $(DL)#define NETDB_USE_INTERNET 1$(DL) >> $@
379
390
@echo $(DL)#define HAVE_STRICMP 1$(DL) >> $@
391
@echo $(DL)#define HAVE_STRNICMP 1$(DL) >> $@
380
392
@echo $(DL)#define RECV_TYPE_ARG1 int$(DL) >> $@
381
393
@echo $(DL)#define RECV_TYPE_ARG2 char *$(DL) >> $@
382
394
@echo $(DL)#define RECV_TYPE_ARG3 int$(DL) >> $@
383
395
@echo $(DL)#define RECV_TYPE_ARG4 int$(DL) >> $@
384
396
@echo $(DL)#define RECV_TYPE_RETV int$(DL) >> $@
397
@echo $(DL)#define RECVFROM_TYPE_ARG1 int$(DL) >> $@
398
@echo $(DL)#define RECVFROM_TYPE_ARG2 char$(DL) >> $@
399
@echo $(DL)#define RECVFROM_TYPE_ARG3 int$(DL) >> $@
400
@echo $(DL)#define RECVFROM_TYPE_ARG4 int$(DL) >> $@
401
@echo $(DL)#define RECVFROM_TYPE_ARG5 struct sockaddr$(DL) >> $@
402
@echo $(DL)#define RECVFROM_TYPE_ARG6 int$(DL) >> $@
403
@echo $(DL)#define RECVFROM_TYPE_RETV int$(DL) >> $@
385
404
@echo $(DL)#define SEND_QUAL_ARG2$(DL) >> $@
386
405
@echo $(DL)#define SEND_TYPE_ARG1 int$(DL) >> $@
387
406
@echo $(DL)#define SEND_TYPE_ARG2 char *$(DL) >> $@
389
408
@echo $(DL)#define SEND_TYPE_ARG4 int$(DL) >> $@
390
409
@echo $(DL)#define SEND_TYPE_RETV int$(DL) >> $@
391
410
@echo $(DL)#define socklen_t int$(DL) >> $@
411
@echo $(DL)#define pressanykey PressAnyKeyToContinue$(DL) >> $@
393
413
@echo $(DL)#define OS "i586-pc-libc-NetWare"$(DL) >> $@
394
414
@echo $(DL)#define HAVE_FTRUNCATE 1$(DL) >> $@
395
415
@echo $(DL)#define HAVE_GETTIMEOFDAY 1$(DL) >> $@
396
@echo $(DL)#define HAVE_INET_PTON 1$(DL) >> $@
397
416
@echo $(DL)#define HAVE_INTTYPES_H 1$(DL) >> $@
398
417
@echo $(DL)#define HAVE_LIMITS_H 1$(DL) >> $@
399
418
@echo $(DL)#define HAVE_LONGLONG 1$(DL) >> $@
407
426
@echo $(DL)#define HAVE_TERMIOS_H 1$(DL) >> $@
408
427
@echo $(DL)#define HAVE_AF_INET6 1$(DL) >> $@
409
428
@echo $(DL)#define HAVE_PF_INET6 1$(DL) >> $@
429
@echo $(DL)#define HAVE_FREEADDRINFO 1$(DL) >> $@
430
@echo $(DL)#define HAVE_GETADDRINFO 1$(DL) >> $@
431
@echo $(DL)#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1$(DL) >> $@
410
432
@echo $(DL)#define HAVE_STRUCT_IN6_ADDR 1$(DL) >> $@
411
433
@echo $(DL)#define HAVE_STRUCT_SOCKADDR_IN6 1$(DL) >> $@
412
434
@echo $(DL)#define RECV_TYPE_ARG1 int$(DL) >> $@
414
436
@echo $(DL)#define RECV_TYPE_ARG3 size_t$(DL) >> $@
415
437
@echo $(DL)#define RECV_TYPE_ARG4 int$(DL) >> $@
416
438
@echo $(DL)#define RECV_TYPE_RETV ssize_t$(DL) >> $@
439
@echo $(DL)#define RECVFROM_TYPE_ARG1 int$(DL) >> $@
440
@echo $(DL)#define RECVFROM_TYPE_ARG2 void$(DL) >> $@
441
@echo $(DL)#define RECVFROM_TYPE_ARG3 size_t$(DL) >> $@
442
@echo $(DL)#define RECVFROM_TYPE_ARG4 int$(DL) >> $@
443
@echo $(DL)#define RECVFROM_TYPE_ARG5 struct sockaddr$(DL) >> $@
444
@echo $(DL)#define RECVFROM_TYPE_ARG6 size_t$(DL) >> $@
445
@echo $(DL)#define RECVFROM_TYPE_RETV ssize_t$(DL) >> $@
446
@echo $(DL)#define RECVFROM_TYPE_ARG2_IS_VOID 1$(DL) >> $@
417
447
@echo $(DL)#define SEND_QUAL_ARG2$(DL) >> $@
418
448
@echo $(DL)#define SEND_TYPE_ARG1 int$(DL) >> $@
419
449
@echo $(DL)#define SEND_TYPE_ARG2 void *$(DL) >> $@
421
451
@echo $(DL)#define SEND_TYPE_ARG4 int$(DL) >> $@
422
452
@echo $(DL)#define SEND_TYPE_RETV ssize_t$(DL) >> $@
423
453
@echo $(DL)#define SIZEOF_STRUCT_IN6_ADDR 16$(DL) >> $@
454
@echo $(DL)#define SIZEOF_OFF_T 8$(DL) >> $@
455
@echo $(DL)#define _LARGEFILE 1$(DL) >> $@
424
456
ifdef ENABLE_IPV6
425
457
@echo $(DL)#define ENABLE_IPV6 1$(DL) >> $@
460
@echo $(DL)#define USE_MANUAL 1$(DL) >> $@
428
461
@echo $(DL)#define HAVE_ARPA_INET_H 1$(DL) >> $@
429
462
@echo $(DL)#define HAVE_ASSERT_H 1$(DL) >> $@
430
463
@echo $(DL)#define HAVE_ERR_H 1$(DL) >> $@
431
464
@echo $(DL)#define HAVE_FCNTL_H 1$(DL) >> $@
432
@echo $(DL)#define HAVE_FIONBIO 1$(DL) >> $@
433
465
@echo $(DL)#define HAVE_GETHOSTBYADDR 1$(DL) >> $@
434
466
@echo $(DL)#define HAVE_GETHOSTBYNAME 1$(DL) >> $@
435
467
@echo $(DL)#define HAVE_GETPROTOBYNAME 1$(DL) >> $@
436
468
@echo $(DL)#define HAVE_GMTIME_R 1$(DL) >> $@
437
469
@echo $(DL)#define HAVE_INET_ADDR 1$(DL) >> $@
438
@echo $(DL)#define HAVE_INET_NTOA 1$(DL) >> $@
470
@echo $(DL)#define HAVE_IOCTL 1$(DL) >> $@
471
@echo $(DL)#define HAVE_IOCTL_FIONBIO 1$(DL) >> $@
439
472
@echo $(DL)#define HAVE_LL 1$(DL) >> $@
473
@echo $(DL)#define HAVE_LOCALE_H 1$(DL) >> $@
440
474
@echo $(DL)#define HAVE_LOCALTIME_R 1$(DL) >> $@
441
475
@echo $(DL)#define HAVE_MALLOC_H 1$(DL) >> $@
442
476
@echo $(DL)#define HAVE_NETINET_IN_H 1$(DL) >> $@
443
477
@echo $(DL)#define HAVE_RECV 1$(DL) >> $@
478
@echo $(DL)#define HAVE_RECVFROM 1$(DL) >> $@
444
479
@echo $(DL)#define HAVE_SELECT 1$(DL) >> $@
445
480
@echo $(DL)#define HAVE_SEND 1$(DL) >> $@
446
481
@echo $(DL)#define HAVE_SETJMP_H 1$(DL) >> $@
482
@echo $(DL)#define HAVE_SETLOCALE 1$(DL) >> $@
447
483
@echo $(DL)#define HAVE_SIGNAL 1$(DL) >> $@
448
484
@echo $(DL)#define HAVE_SIGNAL_H 1$(DL) >> $@
449
485
@echo $(DL)#define HAVE_SIG_ATOMIC_T 1$(DL) >> $@
463
499
@echo $(DL)#define HAVE_UNISTD_H 1$(DL) >> $@
464
500
@echo $(DL)#define HAVE_UTIME 1$(DL) >> $@
465
501
@echo $(DL)#define HAVE_UTIME_H 1$(DL) >> $@
502
@echo $(DL)#define HAVE_WRITEV 1$(DL) >> $@
466
503
@echo $(DL)#define RETSIGTYPE void$(DL) >> $@
467
@echo $(DL)#define SIZEOF_CURL_OFF_T 4$(DL) >> $@
468
504
@echo $(DL)#define SIZEOF_STRUCT_IN_ADDR 4$(DL) >> $@
469
505
@echo $(DL)#define STDC_HEADERS 1$(DL) >> $@
470
506
@echo $(DL)#define TIME_WITH_SYS_TIME 1$(DL) >> $@
512
548
@echo $(DL)#define USE_LIBSSH2 1$(DL) >> $@
513
549
@echo $(DL)#define HAVE_LIBSSH2_H 1$(DL) >> $@
552
@echo $(DL)#define HAVE_LIBIDN 1$(DL) >> $@
553
@echo $(DL)#define HAVE_TLD_H 1$(DL) >> $@
515
555
@echo $(DL)#ifdef __GNUC__$(DL) >> $@
516
556
@echo $(DL)#define HAVE_VARIADIC_MACROS_GCC 1$(DL) >> $@
517
557
@echo $(DL)#else$(DL) >> $@
569
609
@echo Creating $@
570
610
@-$(PERL) $< -b -n $@
612
$(CURL_INC)/curl/curlbuild.h: Makefile.netware FORCE
614
@echo $(DL)/* $@ intended for NetWare target.$(DL) > $@
615
@echo $(DL)** Do not edit this file - it is created by make!$(DL) >> $@
616
@echo $(DL)** All your changes will be lost!!$(DL) >> $@
617
@echo $(DL)*/$(DL) >> $@
618
@echo $(DL)#ifndef __CURL_CURLBUILD_H$(DL) >> $@
619
@echo $(DL)#define __CURL_CURLBUILD_H$(DL) >> $@
620
ifeq ($(LIBARCH),LIBC)
621
@echo $(DL)#define CURL_SIZEOF_LONG 4$(DL) >> $@
622
@echo $(DL)#define CURL_TYPEOF_CURL_OFF_T long long$(DL) >> $@
623
@echo $(DL)#define CURL_FORMAT_CURL_OFF_T "lld"$(DL) >> $@
624
@echo $(DL)#define CURL_FORMAT_CURL_OFF_TU "llu"$(DL) >> $@
625
@echo $(DL)#define CURL_FORMAT_OFF_T "$(PCT)lld"$(DL) >> $@
626
@echo $(DL)#define CURL_SIZEOF_CURL_OFF_T 8$(DL) >> $@
627
@echo $(DL)#define CURL_SUFFIX_CURL_OFF_T LL$(DL) >> $@
628
@echo $(DL)#define CURL_SUFFIX_CURL_OFF_TU ULL$(DL) >> $@
630
@echo $(DL)#define CURL_SIZEOF_LONG 4$(DL) >> $@
631
@echo $(DL)#define CURL_TYPEOF_CURL_OFF_T long$(DL) >> $@
632
@echo $(DL)#define CURL_FORMAT_CURL_OFF_T "ld"$(DL) >> $@
633
@echo $(DL)#define CURL_FORMAT_CURL_OFF_TU "lu"$(DL) >> $@
634
@echo $(DL)#define CURL_FORMAT_OFF_T "$(PCT)ld"$(DL) >> $@
635
@echo $(DL)#define CURL_SIZEOF_CURL_OFF_T 4$(DL) >> $@
636
@echo $(DL)#define CURL_SUFFIX_CURL_OFF_T L$(DL) >> $@
637
@echo $(DL)#define CURL_SUFFIX_CURL_OFF_TU UL$(DL) >> $@
639
@echo $(DL)typedef CURL_TYPEOF_CURL_OFF_T curl_off_t;$(DL) >> $@
640
@echo $(DL)#endif /* __CURL_CURLBUILD_H */$(DL) >> $@