~ubuntu-branches/ubuntu/saucy/curl/saucy-201307251546

« back to all changes in this revision

Viewing changes to lib/Makefile.netware

  • Committer: Bazaar Package Importer
  • Author(s): Ramakrishnan Muthukrishnan
  • Date: 2010-10-18 11:13:17 UTC
  • mto: (3.6.1 experimental) (1.3.1)
  • mto: This revision was merged to the branch mainline in revision 44.
  • Revision ID: james.westby@ubuntu.com-20101018111317-9rkas34ecwtq0upn
Tags: upstream-7.21.2
ImportĀ upstreamĀ versionĀ 7.21.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
 
25
25
# Edit the path below to point to the base of your LibSSH2 package.
26
26
ifndef LIBSSH2_PATH
27
 
LIBSSH2_PATH = ../../libssh2-1.2.6
 
27
LIBSSH2_PATH = ../../libssh2-1.2.7
28
28
endif
29
29
 
30
30
# Edit the path below to point to the base of your libidn package.
32
32
LIBIDN_PATH = ../../libidn-1.18
33
33
endif
34
34
 
 
35
# Edit the path below to point to the base of your librtmp package.
 
36
ifndef LIBRTMP_PATH
 
37
LIBRTMP_PATH = ../../librtmp-2.3
 
38
endif
 
39
 
35
40
# Edit the path below to point to the base of your c-ares package.
36
41
ifndef LIBCARES_PATH
37
42
LIBCARES_PATH = ../ares
84
89
        CC = gcc
85
90
endif
86
91
PERL    = perl
87
 
# a native win32 awk can be downloaded from here:
 
92
# Here you can find a native Win32 binary of the original awk:
88
93
# http://www.gknw.net/development/prgtools/awk-20070501.zip
89
94
AWK     = awk
90
 
YACC    = bison -y
91
95
CP      = cp -afv
92
96
MKDIR   = mkdir
93
97
# RM    = rm -f
94
 
# if you want to mark the target as MTSAFE you will need a tool for
 
98
# If you want to mark the target as MTSAFE you will need a tool for
95
99
# generating the xdc data for the linker; here's a minimal tool:
96
100
# http://www.gknw.net/development/prgtools/mkxdc.zip
97
101
MPKXDC  = mkxdc
117
121
#CFLAGS += -w on
118
122
ifeq ($(LIBARCH),LIBC)
119
123
ifeq ($(POSIXFL),1)
120
 
        PRELUDE = $(SDK_LIBC)/imports/posixpre.o
 
124
        PRELUDE = $(NDK_LIBC)/imports/posixpre.o
121
125
else
122
 
        PRELUDE = $(SDK_LIBC)/imports/libcpre.o
 
126
        PRELUDE = $(NDK_LIBC)/imports/libcpre.o
123
127
endif
124
128
        CFLAGS += -align 4
125
129
else
126
 
        # PRELUDE = $(SDK_CLIB)/imports/clibpre.o
 
130
        # PRELUDE = $(NDK_CLIB)/imports/clibpre.o
127
131
        # to avoid the __init_* / __deinit_* whoes dont use prelude from NDK
128
132
        PRELUDE = "$(MWCW_PATH)/libraries/runtime/prelude.obj"
129
133
        # CFLAGS += -include "$(MWCW_PATH)/headers/nlm_clib_prefix.h"
140
144
CFLAGS  += -Wall # -pedantic
141
145
ifeq ($(LIBARCH),LIBC)
142
146
ifeq ($(POSIXFL),1)
143
 
        PRELUDE = $(SDK_LIBC)/imports/posixpre.gcc.o
 
147
        PRELUDE = $(NDK_LIBC)/imports/posixpre.gcc.o
144
148
else
145
 
        PRELUDE = $(SDK_LIBC)/imports/libcpre.gcc.o
 
149
        PRELUDE = $(NDK_LIBC)/imports/libcpre.gcc.o
146
150
endif
147
151
else
148
 
        PRELUDE = $(SDK_CLIB)/imports/clibpre.gcc.o
 
152
        PRELUDE = $(NDK_CLIB)/imports/clibpre.gcc.o
149
153
        # to avoid the __init_* / __deinit_* whoes dont use prelude from NDK
150
154
        # http://www.gknw.net/development/mk_nlm/gcc_pre.zip
151
155
        # PRELUDE = $(NDK_ROOT)/pre/prelude.o
154
158
endif
155
159
 
156
160
NDK_ROOT = $(NDKBASE)/ndk
157
 
SDK_CLIB = $(NDK_ROOT)/nwsdk
158
 
SDK_LIBC = $(NDK_ROOT)/libc
159
 
SDK_LDAP = $(NDK_ROOT)/cldapsdk/netware
 
161
ifndef NDK_CLIB
 
162
NDK_CLIB = $(NDK_ROOT)/nwsdk
 
163
endif
 
164
ifndef NDK_LIBC
 
165
NDK_LIBC = $(NDK_ROOT)/libc
 
166
endif
 
167
ifndef NDK_LDAP
 
168
NDK_LDAP = $(NDK_ROOT)/cldapsdk/netware
 
169
endif
160
170
CURL_INC = ../include
161
171
CURL_LIB = ../lib
162
172
 
175
185
        IMPORTS += @$(LIBSSH2_PATH)/nw/libssh2.imp
176
186
endif
177
187
endif
 
188
ifdef WITH_RTMP
 
189
        INCLUDES += -I$(LIBRTMP_PATH)
 
190
        LDLIBS += $(LIBRTMP_PATH)/librtmp/librtmp.$(LIBEXT)
 
191
endif
178
192
ifdef WITH_SSL
179
193
        INCLUDES += -I$(OPENSSL_PATH)/outinc_nw_$(LIBARCH_L)
180
194
        LDLIBS += $(OPENSSL_PATH)/out_nw_$(LIBARCH_L)/ssl.$(LIBEXT)
197
211
endif
198
212
 
199
213
ifeq ($(LIBARCH),LIBC)
200
 
        INCLUDES += -I$(SDK_LIBC)/include
201
 
        # INCLUDES += -I$(SDK_LIBC)/include/nks
202
 
        # INCLUDES += -I$(SDK_LIBC)/include/winsock
 
214
        INCLUDES += -I$(NDK_LIBC)/include
 
215
        # INCLUDES += -I$(NDK_LIBC)/include/nks
 
216
        # INCLUDES += -I$(NDK_LIBC)/include/winsock
203
217
        CFLAGS += -D_POSIX_SOURCE
204
218
else
205
 
        INCLUDES += -I$(SDK_CLIB)/include/nlm
206
 
        # INCLUDES += -I$(SDK_CLIB)/include/nlm/obsolete
207
 
        # INCLUDES += -I$(SDK_CLIB)/include
 
219
        INCLUDES += -I$(NDK_CLIB)/include/nlm
 
220
        # INCLUDES += -I$(NDK_CLIB)/include/nlm/obsolete
 
221
        # INCLUDES += -I$(NDK_CLIB)/include
208
222
endif
209
223
ifndef DISABLE_LDAP
210
 
        INCLUDES += -I$(SDK_LDAP)/$(LIBARCH_L)/inc
 
224
        INCLUDES += -I$(NDK_LDAP)/$(LIBARCH_L)/inc
211
225
endif
212
226
CFLAGS  += $(INCLUDES)
213
227
 
269
283
        -$(RM) curl_config.h
270
284
        -$(RM) -r $(OBJDIR)
271
285
 
272
 
distclean: clean
 
286
distclean vclean: clean
273
287
        -$(RM) $(TARGET).$(LIBEXT) $(TARGET).nlm
274
288
        -$(RM) certdata.txt ca-bundle.crt
275
289
 
323
337
ifeq ($(LIBARCH),CLIB)
324
338
        @echo $(DL)start _Prelude$(DL) >> $@
325
339
        @echo $(DL)exit _Stop$(DL) >> $@
326
 
        @echo $(DL)import @$(SDK_CLIB)/imports/clib.imp$(DL) >> $@
327
 
        @echo $(DL)import @$(SDK_CLIB)/imports/threads.imp$(DL) >> $@
328
 
        @echo $(DL)import @$(SDK_CLIB)/imports/nlmlib.imp$(DL) >> $@
329
 
        @echo $(DL)import @$(SDK_CLIB)/imports/socklib.imp$(DL) >> $@
 
340
        @echo $(DL)import @$(NDK_CLIB)/imports/clib.imp$(DL) >> $@
 
341
        @echo $(DL)import @$(NDK_CLIB)/imports/threads.imp$(DL) >> $@
 
342
        @echo $(DL)import @$(NDK_CLIB)/imports/nlmlib.imp$(DL) >> $@
 
343
        @echo $(DL)import @$(NDK_CLIB)/imports/socklib.imp$(DL) >> $@
330
344
        @echo $(DL)module clib$(DL) >> $@
331
345
ifndef DISABLE_LDAP
332
 
        @echo $(DL)import @$(SDK_LDAP)/clib/imports/ldapsdk.imp$(DL) >> $@
333
 
        @echo $(DL)import @$(SDK_LDAP)/clib/imports/ldapssl.imp$(DL) >> $@
334
 
#       @echo $(DL)import @$(SDK_LDAP)/clib/imports/ldapx.imp$(DL) >> $@
 
346
        @echo $(DL)import @$(NDK_LDAP)/clib/imports/ldapsdk.imp$(DL) >> $@
 
347
        @echo $(DL)import @$(NDK_LDAP)/clib/imports/ldapssl.imp$(DL) >> $@
 
348
#       @echo $(DL)import @$(NDK_LDAP)/clib/imports/ldapx.imp$(DL) >> $@
335
349
        @echo $(DL)module ldapsdk ldapssl$(DL) >> $@
336
350
endif
337
351
else
348
362
        @echo $(DL)exit _LibCPostlude$(DL) >> $@
349
363
        @echo $(DL)check _LibCCheckUnload$(DL) >> $@
350
364
endif
351
 
        @echo $(DL)import @$(SDK_LIBC)/imports/libc.imp$(DL) >> $@
352
 
        @echo $(DL)import @$(SDK_LIBC)/imports/netware.imp$(DL) >> $@
 
365
        @echo $(DL)import @$(NDK_LIBC)/imports/libc.imp$(DL) >> $@
 
366
        @echo $(DL)import @$(NDK_LIBC)/imports/netware.imp$(DL) >> $@
353
367
        @echo $(DL)module libc$(DL) >> $@
354
368
ifndef DISABLE_LDAP
355
 
        @echo $(DL)import @$(SDK_LDAP)/libc/imports/lldapsdk.imp$(DL) >> $@
356
 
        @echo $(DL)import @$(SDK_LDAP)/libc/imports/lldapssl.imp$(DL) >> $@
357
 
#       @echo $(DL)import @$(SDK_LDAP)/libc/imports/lldapx.imp$(DL) >> $@
 
369
        @echo $(DL)import @$(NDK_LDAP)/libc/imports/lldapsdk.imp$(DL) >> $@
 
370
        @echo $(DL)import @$(NDK_LDAP)/libc/imports/lldapssl.imp$(DL) >> $@
 
371
#       @echo $(DL)import @$(NDK_LDAP)/libc/imports/lldapx.imp$(DL) >> $@
358
372
        @echo $(DL)module lldapsdk lldapssl$(DL) >> $@
359
373
endif
360
374
endif
425
439
        @echo $(DL)#define HAVE_SYS_PARAM_H 1$(DL) >> $@
426
440
        @echo $(DL)#define HAVE_SYS_SELECT_H 1$(DL) >> $@
427
441
        @echo $(DL)#define HAVE_TERMIOS_H 1$(DL) >> $@
428
 
        @echo $(DL)#define HAVE_AF_INET6 1$(DL) >> $@
429
 
        @echo $(DL)#define HAVE_PF_INET6 1$(DL) >> $@
430
 
        @echo $(DL)#define HAVE_FREEADDRINFO 1$(DL) >> $@
431
 
        @echo $(DL)#define HAVE_GETADDRINFO 1$(DL) >> $@
432
 
        @echo $(DL)#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1$(DL) >> $@
433
 
        @echo $(DL)#define HAVE_STRUCT_IN6_ADDR 1$(DL) >> $@
434
 
        @echo $(DL)#define HAVE_STRUCT_SOCKADDR_IN6 1$(DL) >> $@
435
442
        @echo $(DL)#define RECV_TYPE_ARG1 int$(DL) >> $@
436
443
        @echo $(DL)#define RECV_TYPE_ARG2 void *$(DL) >> $@
437
444
        @echo $(DL)#define RECV_TYPE_ARG3 size_t$(DL) >> $@
451
458
        @echo $(DL)#define SEND_TYPE_ARG3 size_t$(DL) >> $@
452
459
        @echo $(DL)#define SEND_TYPE_ARG4 int$(DL) >> $@
453
460
        @echo $(DL)#define SEND_TYPE_RETV ssize_t$(DL) >> $@
454
 
        @echo $(DL)#define SIZEOF_STRUCT_IN6_ADDR 16$(DL) >> $@
455
461
        @echo $(DL)#define SIZEOF_OFF_T 8$(DL) >> $@
456
462
        @echo $(DL)#define _LARGEFILE 1$(DL) >> $@
457
463
ifdef ENABLE_IPV6
458
464
        @echo $(DL)#define ENABLE_IPV6 1$(DL) >> $@
 
465
        @echo $(DL)#define HAVE_AF_INET6 1$(DL) >> $@
 
466
        @echo $(DL)#define HAVE_PF_INET6 1$(DL) >> $@
 
467
        @echo $(DL)#define HAVE_FREEADDRINFO 1$(DL) >> $@
 
468
        @echo $(DL)#define HAVE_GETADDRINFO 1$(DL) >> $@
 
469
        @echo $(DL)#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1$(DL) >> $@
 
470
        @echo $(DL)#define HAVE_STRUCT_ADDRINFO 1$(DL) >> $@
 
471
        @echo $(DL)#define HAVE_STRUCT_IN6_ADDR 1$(DL) >> $@
 
472
        @echo $(DL)#define HAVE_STRUCT_SOCKADDR_IN6 1$(DL) >> $@
 
473
        @echo $(DL)#define SIZEOF_STRUCT_IN6_ADDR 16$(DL) >> $@
459
474
endif
460
475
endif
461
476
        @echo $(DL)#define USE_MANUAL 1$(DL) >> $@
491
506
        @echo $(DL)#define HAVE_STRFTIME 1$(DL) >> $@
492
507
        @echo $(DL)#define HAVE_STRING_H 1$(DL) >> $@
493
508
        @echo $(DL)#define HAVE_STRSTR 1$(DL) >> $@
494
 
        @echo $(DL)#define HAVE_STRUCT_ADDRINFO 1$(DL) >> $@
495
509
        @echo $(DL)#define HAVE_STRUCT_TIMEVAL 1$(DL) >> $@
496
510
        @echo $(DL)#define HAVE_SYS_IOCTL_H 1$(DL) >> $@
497
511
        @echo $(DL)#define HAVE_SYS_STAT_H 1$(DL) >> $@
556
570
        @echo $(DL)#define HAVE_LIBIDN 1$(DL) >> $@
557
571
        @echo $(DL)#define HAVE_TLD_H 1$(DL) >> $@
558
572
endif
 
573
ifdef WITH_RTMP
 
574
        @echo $(DL)#define USE_LIBRTMP 1$(DL) >> $@
 
575
endif
559
576
        @echo $(DL)#ifdef __GNUC__$(DL) >> $@
560
577
        @echo $(DL)#define HAVE_VARIADIC_MACROS_GCC 1$(DL) >> $@
561
578
        @echo $(DL)#else$(DL) >> $@