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

« back to all changes in this revision

Viewing changes to src/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
85
90
        CC = gcc
86
91
endif
87
92
PERL    = perl
88
 
# a native win32 awk can be downloaded from here:
 
93
# Here you can find a native Win32 binary of the original awk:
89
94
# http://www.gknw.net/development/prgtools/awk-20070501.zip
90
95
AWK     = awk
91
96
CP      = cp -afv
92
97
MKDIR   = mkdir
93
98
# RM    = rm -f
94
 
# if you want to mark the target as MTSAFE you will need a tool for
 
99
# If you want to mark the target as MTSAFE you will need a tool for
95
100
# generating the xdc data for the linker; here's a minimal tool:
96
101
# http://www.gknw.net/development/prgtools/mkxdc.zip
97
102
MPKXDC  = mkxdc
114
119
#CFLAGS += -w on
115
120
ifeq ($(LIBARCH),LIBC)
116
121
ifeq ($(POSIXFL),1)
117
 
        PRELUDE = $(SDK_LIBC)/imports/posixpre.o
 
122
        PRELUDE = $(NDK_LIBC)/imports/posixpre.o
118
123
else
119
 
        PRELUDE = $(SDK_LIBC)/imports/libcpre.o
 
124
        PRELUDE = $(NDK_LIBC)/imports/libcpre.o
120
125
endif
121
126
        CFLAGS += -align 4
122
127
else
123
 
        # PRELUDE = $(SDK_CLIB)/imports/clibpre.o
 
128
        # PRELUDE = $(NDK_CLIB)/imports/clibpre.o
124
129
        # to avoid the __init_* / __deinit_* whoes dont use prelude from NDK
125
130
        PRELUDE = "$(MWCW_PATH)/libraries/runtime/prelude.obj"
126
131
        # CFLAGS += -include "$(MWCW_PATH)/headers/nlm_clib_prefix.h"
134
139
CFLAGS  += -Wall # -pedantic
135
140
ifeq ($(LIBARCH),LIBC)
136
141
ifeq ($(POSIXFL),1)
137
 
        PRELUDE = $(SDK_LIBC)/imports/posixpre.gcc.o
 
142
        PRELUDE = $(NDK_LIBC)/imports/posixpre.gcc.o
138
143
else
139
 
        PRELUDE = $(SDK_LIBC)/imports/libcpre.gcc.o
 
144
        PRELUDE = $(NDK_LIBC)/imports/libcpre.gcc.o
140
145
endif
141
146
else
142
 
        # PRELUDE = $(SDK_CLIB)/imports/clibpre.gcc.o
 
147
        # PRELUDE = $(NDK_CLIB)/imports/clibpre.gcc.o
143
148
        # to avoid the __init_* / __deinit_* whoes dont use prelude from NDK
144
149
        # http://www.gknw.net/development/mk_nlm/gcc_pre.zip
145
150
        PRELUDE = $(NDK_ROOT)/pre/prelude.o
148
153
endif
149
154
 
150
155
NDK_ROOT = $(NDKBASE)/ndk
151
 
SDK_CLIB = $(NDK_ROOT)/nwsdk
152
 
SDK_LIBC = $(NDK_ROOT)/libc
153
 
SDK_LDAP = $(NDK_ROOT)/cldapsdk/netware
 
156
ifndef NDK_CLIB
 
157
NDK_CLIB = $(NDK_ROOT)/nwsdk
 
158
endif
 
159
ifndef NDK_LIBC
 
160
NDK_LIBC = $(NDK_ROOT)/libc
 
161
endif
 
162
ifndef NDK_LDAP
 
163
NDK_LDAP = $(NDK_ROOT)/cldapsdk/netware
 
164
endif
154
165
CURL_INC = ../include
155
166
CURL_LIB = ../lib
156
167
 
174
185
        IMPORTS += @$(LIBSSH2_PATH)/nw/libssh2.imp
175
186
endif
176
187
endif
 
188
ifdef WITH_RTMP
 
189
        # INCLUDES += -I$(LIBRTMP_PATH)
 
190
ifdef LINK_STATIC
 
191
        LDLIBS += $(LIBRTMP_PATH)/librtmp/librtmp.$(LIBEXT)
 
192
endif
 
193
endif
177
194
ifdef WITH_SSL
178
195
        INCLUDES += -I$(OPENSSL_PATH)/outinc_nw_$(LIBARCH_L)
179
196
        LDLIBS += $(OPENSSL_PATH)/out_nw_$(LIBARCH_L)/ssl.$(LIBEXT)
195
212
endif
196
213
 
197
214
ifeq ($(LIBARCH),LIBC)
198
 
        INCLUDES += -I$(SDK_LIBC)/include
199
 
        # INCLUDES += -I$(SDK_LIBC)/include/nks
200
 
        # INCLUDES += -I$(SDK_LIBC)/include/winsock
 
215
        INCLUDES += -I$(NDK_LIBC)/include
 
216
        # INCLUDES += -I$(NDK_LIBC)/include/nks
 
217
        # INCLUDES += -I$(NDK_LIBC)/include/winsock
201
218
        CFLAGS += -D_POSIX_SOURCE
202
219
else
203
 
        INCLUDES += -I$(SDK_CLIB)/include/nlm
204
 
        # INCLUDES += -I$(SDK_CLIB)/include
 
220
        INCLUDES += -I$(NDK_CLIB)/include/nlm
 
221
        # INCLUDES += -I$(NDK_CLIB)/include
205
222
endif
206
223
ifndef DISABLE_LDAP
207
 
        # INCLUDES += -I$(SDK_LDAP)/$(LIBARCH_L)/inc
 
224
        # INCLUDES += -I$(NDK_LDAP)/$(LIBARCH_L)/inc
208
225
endif
209
226
CFLAGS  += $(INCLUDES)
210
227
 
263
280
        -$(RM) curl_config.h
264
281
        -$(RM) -r $(OBJDIR)
265
282
 
266
 
distclean: clean
 
283
distclean vclean: clean
267
284
        -$(RM) $(TARGET).nlm
268
285
 
269
286
$(OBJDIR) $(INSTDIR):
313
330
ifeq ($(LIBARCH),CLIB)
314
331
        @echo $(DL)start _Prelude$(DL) >> $@
315
332
        @echo $(DL)exit _Stop$(DL) >> $@
316
 
        @echo $(DL)import @$(SDK_CLIB)/imports/clib.imp$(DL) >> $@
317
 
        @echo $(DL)import @$(SDK_CLIB)/imports/threads.imp$(DL) >> $@
318
 
        @echo $(DL)import @$(SDK_CLIB)/imports/nlmlib.imp$(DL) >> $@
319
 
        @echo $(DL)import @$(SDK_CLIB)/imports/socklib.imp$(DL) >> $@
 
333
        @echo $(DL)import @$(NDK_CLIB)/imports/clib.imp$(DL) >> $@
 
334
        @echo $(DL)import @$(NDK_CLIB)/imports/threads.imp$(DL) >> $@
 
335
        @echo $(DL)import @$(NDK_CLIB)/imports/nlmlib.imp$(DL) >> $@
 
336
        @echo $(DL)import @$(NDK_CLIB)/imports/socklib.imp$(DL) >> $@
320
337
        @echo $(DL)module clib$(DL) >> $@
321
338
ifndef DISABLE_LDAP
322
 
        @echo $(DL)import @$(SDK_LDAP)/clib/imports/ldapsdk.imp$(DL) >> $@
323
 
        @echo $(DL)import @$(SDK_LDAP)/clib/imports/ldapssl.imp$(DL) >> $@
324
 
#       @echo $(DL)import @$(SDK_LDAP)/clib/imports/ldapx.imp$(DL) >> $@
 
339
        @echo $(DL)import @$(NDK_LDAP)/clib/imports/ldapsdk.imp$(DL) >> $@
 
340
        @echo $(DL)import @$(NDK_LDAP)/clib/imports/ldapssl.imp$(DL) >> $@
 
341
#       @echo $(DL)import @$(NDK_LDAP)/clib/imports/ldapx.imp$(DL) >> $@
325
342
        @echo $(DL)module ldapsdk ldapssl$(DL) >> $@
326
343
endif
327
344
else
339
356
        @echo $(DL)exit _LibCPostlude$(DL) >> $@
340
357
        @echo $(DL)check _LibCCheckUnload$(DL) >> $@
341
358
endif
342
 
        @echo $(DL)import @$(SDK_LIBC)/imports/libc.imp$(DL) >> $@
343
 
        @echo $(DL)import @$(SDK_LIBC)/imports/netware.imp$(DL) >> $@
 
359
        @echo $(DL)import @$(NDK_LIBC)/imports/libc.imp$(DL) >> $@
 
360
        @echo $(DL)import @$(NDK_LIBC)/imports/netware.imp$(DL) >> $@
344
361
        @echo $(DL)module libc$(DL) >> $@
345
362
ifndef DISABLE_LDAP
346
 
        @echo $(DL)import @$(SDK_LDAP)/libc/imports/lldapsdk.imp$(DL) >> $@
347
 
        @echo $(DL)import @$(SDK_LDAP)/libc/imports/lldapssl.imp$(DL) >> $@
348
 
#       @echo $(DL)import @$(SDK_LDAP)/libc/imports/lldapx.imp$(DL) >> $@
 
363
        @echo $(DL)import @$(NDK_LDAP)/libc/imports/lldapsdk.imp$(DL) >> $@
 
364
        @echo $(DL)import @$(NDK_LDAP)/libc/imports/lldapssl.imp$(DL) >> $@
 
365
#       @echo $(DL)import @$(NDK_LDAP)/libc/imports/lldapx.imp$(DL) >> $@
349
366
        @echo $(DL)module lldapsdk lldapssl$(DL) >> $@
350
367
endif
351
368
endif
416
433
        @echo $(DL)#define HAVE_SYS_PARAM_H 1$(DL) >> $@
417
434
        @echo $(DL)#define HAVE_SYS_SELECT_H 1$(DL) >> $@
418
435
        @echo $(DL)#define HAVE_TERMIOS_H 1$(DL) >> $@
419
 
        @echo $(DL)#define HAVE_AF_INET6 1$(DL) >> $@
420
 
        @echo $(DL)#define HAVE_PF_INET6 1$(DL) >> $@
421
 
        @echo $(DL)#define HAVE_FREEADDRINFO 1$(DL) >> $@
422
 
        @echo $(DL)#define HAVE_GETADDRINFO 1$(DL) >> $@
423
 
        @echo $(DL)#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1$(DL) >> $@
424
 
        @echo $(DL)#define HAVE_STRUCT_IN6_ADDR 1$(DL) >> $@
425
 
        @echo $(DL)#define HAVE_STRUCT_SOCKADDR_IN6 1$(DL) >> $@
426
436
        @echo $(DL)#define RECV_TYPE_ARG1 int$(DL) >> $@
427
437
        @echo $(DL)#define RECV_TYPE_ARG2 void *$(DL) >> $@
428
438
        @echo $(DL)#define RECV_TYPE_ARG3 size_t$(DL) >> $@
442
452
        @echo $(DL)#define SEND_TYPE_ARG3 size_t$(DL) >> $@
443
453
        @echo $(DL)#define SEND_TYPE_ARG4 int$(DL) >> $@
444
454
        @echo $(DL)#define SEND_TYPE_RETV ssize_t$(DL) >> $@
445
 
        @echo $(DL)#define SIZEOF_STRUCT_IN6_ADDR 16$(DL) >> $@
446
455
        @echo $(DL)#define SIZEOF_OFF_T 8$(DL) >> $@
447
456
        @echo $(DL)#define _LARGEFILE 1$(DL) >> $@
448
457
ifdef ENABLE_IPV6
449
458
        @echo $(DL)#define ENABLE_IPV6 1$(DL) >> $@
 
459
        @echo $(DL)#define HAVE_AF_INET6 1$(DL) >> $@
 
460
        @echo $(DL)#define HAVE_PF_INET6 1$(DL) >> $@
 
461
        @echo $(DL)#define HAVE_FREEADDRINFO 1$(DL) >> $@
 
462
        @echo $(DL)#define HAVE_GETADDRINFO 1$(DL) >> $@
 
463
        @echo $(DL)#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1$(DL) >> $@
 
464
        @echo $(DL)#define HAVE_STRUCT_ADDRINFO 1$(DL) >> $@
 
465
        @echo $(DL)#define HAVE_STRUCT_IN6_ADDR 1$(DL) >> $@
 
466
        @echo $(DL)#define HAVE_STRUCT_SOCKADDR_IN6 1$(DL) >> $@
 
467
        @echo $(DL)#define SIZEOF_STRUCT_IN6_ADDR 16$(DL) >> $@
450
468
endif
451
469
endif
452
470
        @echo $(DL)#define USE_MANUAL 1$(DL) >> $@
482
500
        @echo $(DL)#define HAVE_STRFTIME 1$(DL) >> $@
483
501
        @echo $(DL)#define HAVE_STRING_H 1$(DL) >> $@
484
502
        @echo $(DL)#define HAVE_STRSTR 1$(DL) >> $@
485
 
        @echo $(DL)#define HAVE_STRUCT_ADDRINFO 1$(DL) >> $@
486
503
        @echo $(DL)#define HAVE_STRUCT_TIMEVAL 1$(DL) >> $@
487
504
        @echo $(DL)#define HAVE_SYS_IOCTL_H 1$(DL) >> $@
488
505
        @echo $(DL)#define HAVE_SYS_STAT_H 1$(DL) >> $@
547
564
        @echo $(DL)#define HAVE_LIBIDN 1$(DL) >> $@
548
565
        @echo $(DL)#define HAVE_TLD_H 1$(DL) >> $@
549
566
endif
 
567
ifdef WITH_RTMP
 
568
        @echo $(DL)#define USE_LIBRTMP 1$(DL) >> $@
 
569
endif
550
570
        @echo $(DL)#ifdef __GNUC__$(DL) >> $@
551
571
        @echo $(DL)#define HAVE_VARIADIC_MACROS_GCC 1$(DL) >> $@
552
572
        @echo $(DL)#else$(DL) >> $@