~ubuntu-branches/ubuntu/vivid/curl/vivid

« back to all changes in this revision

Viewing changes to src/Makefile.netware

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Schuldei
  • Date: 2009-04-02 23:35:45 UTC
  • mto: (1.2.1 upstream) (3.2.3 sid)
  • mto: This revision was merged to the branch mainline in revision 38.
  • Revision ID: james.westby@ubuntu.com-20090402233545-geixkwhe3izccjt7
Tags: upstream-7.19.4
ImportĀ upstreamĀ versionĀ 7.19.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#################################################################
2
 
# $Id: Makefile.netware,v 1.73 2008-04-02 03:08:21 gknauf Exp $
 
2
# $Id: Makefile.netware,v 1.97 2008-12-30 08:16:24 gknauf Exp $
3
3
#
4
4
## Makefile for building curl.nlm (NetWare version - gnu make)
5
5
## Use: make -f Makefile.netware
20
20
 
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
24
24
endif
25
25
 
26
26
# Edit the path below to point to the base of your LibSSH2 package.
28
28
LIBSSH2_PATH = ../../libssh2-0.18
29
29
endif
30
30
 
 
31
# Edit the path below to point to the base of your libidn package.
 
32
ifndef LIBIDN_PATH
 
33
LIBIDN_PATH = ../../libidn-1.11
 
34
endif
 
35
 
31
36
ifndef INSTDIR
32
37
INSTDIR = ..$(DS)curl-$(LIBCURL_VERSION_STR)-bin-nw
33
38
endif
94
99
-include $(OBJDIR)/version.inc
95
100
 
96
101
# Global flags for all compilers
97
 
CFLAGS  = $(OPT) -D$(DB) -DNETWARE -DHAVE_CONFIG_H -nostdinc
 
102
CFLAGS  += $(OPT) -D$(DB) -DNETWARE -DHAVE_CONFIG_H -nostdinc
98
103
 
99
104
ifeq ($(CC),mwccnlm)
100
105
LD      = mwldnlm
167
172
endif
168
173
endif
169
174
ifdef WITH_SSL
 
175
        INCLUDES += -I$(OPENSSL_PATH)/outinc_nw_$(LIBARCH_L)
170
176
        LDLIBS += $(OPENSSL_PATH)/out_nw_$(LIBARCH_L)/ssl.$(LIBEXT)
171
177
        LDLIBS += $(OPENSSL_PATH)/out_nw_$(LIBARCH_L)/crypto.$(LIBEXT)
172
178
        IMPORTS += GetProcessSwitchCount RunningProcess
180
186
        IMPORTS += @$(ZLIB_PATH)/nw/$(LIBARCH)/libz.imp
181
187
endif
182
188
endif
 
189
ifdef WITH_IDN
 
190
        # INCLUDES += -I$(LIBIDN_PATH)/include
 
191
        LDLIBS += $(LIBIDN_PATH)/lib/libidn.$(LIBEXT)
 
192
endif
183
193
 
184
194
ifeq ($(LIBARCH),LIBC)
185
195
        INCLUDES += -I$(SDK_LIBC)/include
208
218
ifeq ($(findstring linux,$(OSTYPE)),linux)
209
219
DL      = '
210
220
DS      = /
 
221
PCT     = %
211
222
#-include $(NDKBASE)/nlmconv/ncpfs.inc
212
223
else
213
224
DS      = \\
 
225
PCT     = %%
214
226
endif
215
227
 
216
228
# Makefile.inc provides the CSOURCES and HHEADERS defines
364
376
        @echo $(DL)#define OS "i586-pc-clib-NetWare"$(DL) >> $@
365
377
        @echo $(DL)#define NETDB_USE_INTERNET 1$(DL) >> $@
366
378
        @echo $(DL)#define HAVE_STRICMP 1$(DL) >> $@
 
379
        @echo $(DL)#define HAVE_STRNICMP 1$(DL) >> $@
367
380
        @echo $(DL)#define RECV_TYPE_ARG1 int$(DL) >> $@
368
381
        @echo $(DL)#define RECV_TYPE_ARG2 char *$(DL) >> $@
369
382
        @echo $(DL)#define RECV_TYPE_ARG3 int$(DL) >> $@
370
383
        @echo $(DL)#define RECV_TYPE_ARG4 int$(DL) >> $@
371
384
        @echo $(DL)#define RECV_TYPE_RETV int$(DL) >> $@
 
385
        @echo $(DL)#define RECVFROM_TYPE_ARG1 int$(DL) >> $@
 
386
        @echo $(DL)#define RECVFROM_TYPE_ARG2 char$(DL) >> $@
 
387
        @echo $(DL)#define RECVFROM_TYPE_ARG3 int$(DL) >> $@
 
388
        @echo $(DL)#define RECVFROM_TYPE_ARG4 int$(DL) >> $@
 
389
        @echo $(DL)#define RECVFROM_TYPE_ARG5 struct sockaddr$(DL) >> $@
 
390
        @echo $(DL)#define RECVFROM_TYPE_ARG6 int$(DL) >> $@
 
391
        @echo $(DL)#define RECVFROM_TYPE_RETV int$(DL) >> $@
372
392
        @echo $(DL)#define SEND_QUAL_ARG2$(DL) >> $@
373
393
        @echo $(DL)#define SEND_TYPE_ARG1 int$(DL) >> $@
374
394
        @echo $(DL)#define SEND_TYPE_ARG2 char *$(DL) >> $@
381
401
        @echo $(DL)#define OS "i586-pc-libc-NetWare"$(DL) >> $@
382
402
        @echo $(DL)#define HAVE_FTRUNCATE 1$(DL) >> $@
383
403
        @echo $(DL)#define HAVE_GETTIMEOFDAY 1$(DL) >> $@
384
 
        @echo $(DL)#define HAVE_INET_PTON 1$(DL) >> $@
385
404
        @echo $(DL)#define HAVE_INTTYPES_H 1$(DL) >> $@
386
405
        @echo $(DL)#define HAVE_LIMITS_H 1$(DL) >> $@
387
406
        @echo $(DL)#define HAVE_LONGLONG 1$(DL) >> $@
389
408
        @echo $(DL)#define HAVE_STRCASECMP 1$(DL) >> $@
390
409
        @echo $(DL)#define HAVE_STRLCAT 1$(DL) >> $@
391
410
        @echo $(DL)#define HAVE_STRLCPY 1$(DL) >> $@
 
411
        @echo $(DL)#define HAVE_STRTOLL 1$(DL) >> $@
392
412
        @echo $(DL)#define HAVE_SYS_PARAM_H 1$(DL) >> $@
393
413
        @echo $(DL)#define HAVE_SYS_SELECT_H 1$(DL) >> $@
394
414
        @echo $(DL)#define HAVE_TERMIOS_H 1$(DL) >> $@
 
415
        @echo $(DL)#define HAVE_AF_INET6 1$(DL) >> $@
 
416
        @echo $(DL)#define HAVE_PF_INET6 1$(DL) >> $@
 
417
        @echo $(DL)#define HAVE_FREEADDRINFO 1$(DL) >> $@
 
418
        @echo $(DL)#define HAVE_GETADDRINFO 1$(DL) >> $@
 
419
        @echo $(DL)#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1$(DL) >> $@
 
420
        @echo $(DL)#define HAVE_STRUCT_IN6_ADDR 1$(DL) >> $@
 
421
        @echo $(DL)#define HAVE_STRUCT_SOCKADDR_IN6 1$(DL) >> $@
395
422
        @echo $(DL)#define RECV_TYPE_ARG1 int$(DL) >> $@
396
423
        @echo $(DL)#define RECV_TYPE_ARG2 void *$(DL) >> $@
397
424
        @echo $(DL)#define RECV_TYPE_ARG3 size_t$(DL) >> $@
398
425
        @echo $(DL)#define RECV_TYPE_ARG4 int$(DL) >> $@
399
426
        @echo $(DL)#define RECV_TYPE_RETV ssize_t$(DL) >> $@
 
427
        @echo $(DL)#define RECVFROM_TYPE_ARG1 int$(DL) >> $@
 
428
        @echo $(DL)#define RECVFROM_TYPE_ARG2 void$(DL) >> $@
 
429
        @echo $(DL)#define RECVFROM_TYPE_ARG3 size_t$(DL) >> $@
 
430
        @echo $(DL)#define RECVFROM_TYPE_ARG4 int$(DL) >> $@
 
431
        @echo $(DL)#define RECVFROM_TYPE_ARG5 struct sockaddr$(DL) >> $@
 
432
        @echo $(DL)#define RECVFROM_TYPE_ARG6 size_t$(DL) >> $@
 
433
        @echo $(DL)#define RECVFROM_TYPE_RETV ssize_t$(DL) >> $@
 
434
        @echo $(DL)#define RECVFROM_TYPE_ARG2_IS_VOID 1$(DL) >> $@
400
435
        @echo $(DL)#define SEND_QUAL_ARG2$(DL) >> $@
401
436
        @echo $(DL)#define SEND_TYPE_ARG1 int$(DL) >> $@
402
437
        @echo $(DL)#define SEND_TYPE_ARG2 void *$(DL) >> $@
403
438
        @echo $(DL)#define SEND_TYPE_ARG3 size_t$(DL) >> $@
404
439
        @echo $(DL)#define SEND_TYPE_ARG4 int$(DL) >> $@
405
440
        @echo $(DL)#define SEND_TYPE_RETV ssize_t$(DL) >> $@
 
441
        @echo $(DL)#define SIZEOF_STRUCT_IN6_ADDR 16$(DL) >> $@
 
442
        @echo $(DL)#define SIZEOF_OFF_T 8$(DL) >> $@
 
443
        @echo $(DL)#define _LARGEFILE 1$(DL) >> $@
406
444
ifdef ENABLE_IPV6
407
445
        @echo $(DL)#define ENABLE_IPV6 1$(DL) >> $@
408
446
endif
412
450
        @echo $(DL)#define HAVE_ASSERT_H 1$(DL) >> $@
413
451
        @echo $(DL)#define HAVE_ERR_H 1$(DL) >> $@
414
452
        @echo $(DL)#define HAVE_FCNTL_H 1$(DL) >> $@
415
 
        @echo $(DL)#define HAVE_FIONBIO 1$(DL) >> $@
416
453
        @echo $(DL)#define HAVE_GETHOSTBYADDR 1$(DL) >> $@
 
454
        @echo $(DL)#define HAVE_GETHOSTBYNAME 1$(DL) >> $@
 
455
        @echo $(DL)#define HAVE_GETPROTOBYNAME 1$(DL) >> $@
 
456
        @echo $(DL)#define HAVE_GMTIME_R 1$(DL) >> $@
417
457
        @echo $(DL)#define HAVE_INET_ADDR 1$(DL) >> $@
418
 
        @echo $(DL)#define HAVE_INET_NTOA 1$(DL) >> $@
 
458
        @echo $(DL)#define HAVE_IOCTL 1$(DL) >> $@
 
459
        @echo $(DL)#define HAVE_IOCTL_FIONBIO 1$(DL) >> $@
419
460
        @echo $(DL)#define HAVE_LL 1$(DL) >> $@
420
461
        @echo $(DL)#define HAVE_LOCALE_H 1$(DL) >> $@
 
462
        @echo $(DL)#define HAVE_LOCALTIME_R 1$(DL) >> $@
421
463
        @echo $(DL)#define HAVE_MALLOC_H 1$(DL) >> $@
422
464
        @echo $(DL)#define HAVE_NETINET_IN_H 1$(DL) >> $@
423
465
        @echo $(DL)#define HAVE_RECV 1$(DL) >> $@
 
466
        @echo $(DL)#define HAVE_RECVFROM 1$(DL) >> $@
424
467
        @echo $(DL)#define HAVE_SELECT 1$(DL) >> $@
425
468
        @echo $(DL)#define HAVE_SEND 1$(DL) >> $@
426
469
        @echo $(DL)#define HAVE_SETJMP_H 1$(DL) >> $@
434
477
        @echo $(DL)#define HAVE_STRFTIME 1$(DL) >> $@
435
478
        @echo $(DL)#define HAVE_STRING_H 1$(DL) >> $@
436
479
        @echo $(DL)#define HAVE_STRSTR 1$(DL) >> $@
 
480
        @echo $(DL)#define HAVE_STRUCT_ADDRINFO 1$(DL) >> $@
437
481
        @echo $(DL)#define HAVE_STRUCT_TIMEVAL 1$(DL) >> $@
 
482
        @echo $(DL)#define HAVE_SYS_IOCTL_H 1$(DL) >> $@
438
483
        @echo $(DL)#define HAVE_SYS_STAT_H 1$(DL) >> $@
439
484
        @echo $(DL)#define HAVE_SYS_TIME_H 1$(DL) >> $@
440
485
        @echo $(DL)#define HAVE_TIME_H 1$(DL) >> $@
442
487
        @echo $(DL)#define HAVE_UNISTD_H 1$(DL) >> $@
443
488
        @echo $(DL)#define HAVE_UTIME 1$(DL) >> $@
444
489
        @echo $(DL)#define HAVE_UTIME_H 1$(DL) >> $@
 
490
        @echo $(DL)#define HAVE_WRITEV 1$(DL) >> $@
445
491
        @echo $(DL)#define RETSIGTYPE void$(DL) >> $@
446
 
        @echo $(DL)#define SIZEOF_CURL_OFF_T 4$(DL) >> $@
 
492
        @echo $(DL)#define SIZEOF_STRUCT_IN_ADDR 4$(DL) >> $@
447
493
        @echo $(DL)#define STDC_HEADERS 1$(DL) >> $@
448
494
        @echo $(DL)#define TIME_WITH_SYS_TIME 1$(DL) >> $@
449
495
ifdef DISABLE_LDAP
474
520
endif
475
521
ifdef WITH_SSL
476
522
        @echo $(DL)#define USE_SSLEAY 1$(DL) >> $@
 
523
        @echo $(DL)#define USE_OPENSSL 1$(DL) >> $@
477
524
        @echo $(DL)#define HAVE_OPENSSL_X509_H 1$(DL) >> $@
478
525
        @echo $(DL)#define HAVE_OPENSSL_SSL_H 1$(DL) >> $@
479
526
        @echo $(DL)#define HAVE_OPENSSL_RSA_H 1$(DL) >> $@
489
536
        @echo $(DL)#define USE_LIBSSH2 1$(DL) >> $@
490
537
        @echo $(DL)#define HAVE_LIBSSH2_H 1$(DL) >> $@
491
538
endif
 
539
ifdef WITH_IDN
 
540
        @echo $(DL)#define HAVE_LIBIDN 1$(DL) >> $@
 
541
        @echo $(DL)#define HAVE_TLD_H 1$(DL) >> $@
 
542
endif
492
543
        @echo $(DL)#ifdef __GNUC__$(DL) >> $@
493
544
        @echo $(DL)#define HAVE_VARIADIC_MACROS_GCC 1$(DL) >> $@
494
545
        @echo $(DL)#else$(DL) >> $@
497
548
ifdef OLD_NOVELLSDK
498
549
        @echo $(DL)#define socklen_t int$(DL) >> $@
499
550
endif
 
551
ifdef CABUNDLE
 
552
        @echo $(DL)#define CURL_CA_BUNDLE "$(CABUNDLE)"$(DL) >> $@
 
553
else
 
554
        @echo $(DL)#define CURL_CA_BUNDLE getenv("CURL_CA_BUNDLE")$(DL) >> $@
 
555
endif
500
556
 
501
557
hugehelp.c:
502
558
        @echo Creating $@