Makefile.netware 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466
  1. #################################################################
  2. #
  3. ## Makefile for building libcurl.nlm (NetWare version - gnu make)
  4. ## Use: make -f Makefile.netware
  5. ##
  6. ## Comments to: Guenter Knauf http://www.gknw.de/phpbb
  7. #
  8. #################################################################
  9. # Edit the path below to point to the base of your Novell NDK.
  10. ifndef NDKBASE
  11. NDKBASE = c:/novell
  12. endif
  13. # Edit the path below to point to the base of your Zlib sources.
  14. ifndef ZLIB_PATH
  15. ZLIB_PATH = ../../zlib-1.2.3
  16. endif
  17. # Edit the path below to point to the base of your OpenSSL package.
  18. ifndef OPENSSL_PATH
  19. OPENSSL_PATH = ../../openssl-0.9.8d
  20. endif
  21. # Edit the path below to point to the base of your LibSSH2 package.
  22. ifndef LIBSSH2_PATH
  23. LIBSSH2_PATH = ../../libssh2-0.14
  24. endif
  25. ifndef INSTDIR
  26. INSTDIR = ..$(DS)curl-$(LIBCURL_VERSION_STR)-bin-nw
  27. endif
  28. # Edit the vars below to change NLM target settings.
  29. TARGET = libcurl
  30. VERSION = $(LIBCURL_VERSION)
  31. COPYR = Copyright (C) 1996 - 2007, Daniel Stenberg, <daniel@haxx.se>
  32. DESCR = cURL libcurl $(LIBCURL_VERSION_STR) - http://curl.haxx.se
  33. MTSAFE = YES
  34. STACK = 64000
  35. SCREEN = none
  36. EXPORTS = @libcurl.imp
  37. # Edit the var below to point to your lib architecture.
  38. ifndef LIBARCH
  39. LIBARCH = LIBC
  40. endif
  41. # must be equal to DEBUG or NDEBUG
  42. DB = NDEBUG
  43. # DB = DEBUG
  44. # DB = CURLDEBUG
  45. # Optimization: -O<n> or debugging: -g
  46. ifeq ($(DB),NDEBUG)
  47. OPT = -O2
  48. OBJDIR = release
  49. else
  50. OPT = -g
  51. OBJDIR = debug
  52. endif
  53. # Include the version info retrieved from curlver.h
  54. -include $(OBJDIR)/version.inc
  55. # The following line defines your compiler.
  56. ifdef METROWERKS
  57. CC = mwccnlm
  58. else
  59. CC = gcc
  60. endif
  61. YACC = bison -y
  62. CP = cp -afv
  63. # RM = rm -f
  64. # if you want to mark the target as MTSAFE you will need a tool for
  65. # generating the xdc data for the linker; here's a minimal tool:
  66. # http://www.gknw.net/development/prgtools/mkxdc.zip
  67. MPKXDC = mkxdc
  68. # Global flags for all compilers
  69. CFLAGS = $(OPT) -D$(DB) -DNETWARE -DHAVE_CONFIG_H -nostdinc
  70. ifeq ($(CC),mwccnlm)
  71. LD = mwldnlm
  72. LDFLAGS = -nostdlib $(PRELUDE) $(OBJL) -o $(TARGET).nlm -commandfile
  73. AR = mwldnlm
  74. ARFLAGS = -type library -w nocmdline $(OBJS) -o
  75. CFLAGS += -msgstyle gcc -gccinc -inline off -opt nointrinsics -proc 586
  76. CFLAGS += -relax_pointers
  77. #CFLAGS += -w on
  78. ifeq ($(LIBARCH),LIBC)
  79. PRELUDE = $(SDK_LIBC)/imports/libcpre.o
  80. CFLAGS += -align 4
  81. else
  82. PRELUDE = "$(METROWERKS)/Novell Support/libraries/runtime/prelude.obj"
  83. # CFLAGS += -include "$(METROWERKS)/Novell Support/headers/nlm_prefix.h"
  84. CFLAGS += -align 1
  85. endif
  86. else
  87. LD = nlmconv
  88. LDFLAGS = -T
  89. AR = ar
  90. ARFLAGS = -cq
  91. CFLAGS += -fno-builtin -fpcc-struct-return -fno-strict-aliasing
  92. CFLAGS += -Wall # -pedantic
  93. ifeq ($(LIBARCH),LIBC)
  94. PRELUDE = $(SDK_LIBC)/imports/libcpre.gcc.o
  95. else
  96. PRELUDE = $(SDK_CLIB)/imports/clibpre.gcc.o
  97. CFLAGS += -include $(NDKBASE)/nlmconv/genlm.h
  98. endif
  99. endif
  100. NDK_ROOT = $(NDKBASE)/ndk
  101. SDK_CLIB = $(NDK_ROOT)/nwsdk
  102. SDK_LIBC = $(NDK_ROOT)/libc
  103. SDK_LDAP = $(NDK_ROOT)/cldapsdk/netware
  104. INCLUDES = -I. -I../include
  105. ifdef WITH_ARES
  106. INCLUDES += -I../ares
  107. LDLIBS = ../ares/libcares.lib
  108. endif
  109. ifdef WITH_SSL
  110. INCLUDES += -I$(OPENSSL_PATH)/outinc_nw_libc -I$(OPENSSL_PATH)/outinc_nw_libc/openssl
  111. LDLIBS += $(OPENSSL_PATH)/out_nw_libc/crypto.lib $(OPENSSL_PATH)/out_nw_libc/ssl.lib
  112. IMPORTS += GetProcessSwitchCount RunningProcess
  113. endif
  114. ifdef WITH_SSH2
  115. INCLUDES += -I$(LIBSSH2_PATH)/include
  116. ifdef LINK_STATIC
  117. LDLIBS += $(LIBSSH2_PATH)/nw/libssh2.lib
  118. else
  119. IMPORTS += @$(LIBSSH2_PATH)/nw/libssh2.imp
  120. MODULES += libssh2.nlm
  121. endif
  122. endif
  123. ifdef WITH_ZLIB
  124. INCLUDES += -I$(ZLIB_PATH)
  125. ifdef LINK_STATIC
  126. LDLIBS += $(ZLIB_PATH)/nw/libz.lib
  127. else
  128. IMPORTS += @$(ZLIB_PATH)/nw/libz.imp
  129. MODULES += libz.nlm
  130. endif
  131. endif
  132. ifeq ($(LIBARCH),LIBC)
  133. INCLUDES += -I$(SDK_LIBC)/include -I$(SDK_LIBC)/include/nks
  134. # INCLUDES += -I$(SDK_LIBC)/include/winsock
  135. # INCLUDES += -I$(SDK_LDAP)/libc/inc
  136. CFLAGS += -D_POSIX_SOURCE
  137. # CFLAGS += -D__ANSIC__
  138. else
  139. INCLUDES += -I$(SDK_CLIB)/include/nlm -I$(SDK_CLIB)/include
  140. # INCLUDES += -I$(SDK_CLIB)/include/nlm/obsolete
  141. # INCLUDES += -I$(SDK_LDAP)/clib/inc
  142. CFLAGS += -DNETDB_USE_INTERNET
  143. endif
  144. CFLAGS += $(INCLUDES)
  145. ifeq ($(MTSAFE),YES)
  146. XDCOPT = -n
  147. endif
  148. ifeq ($(MTSAFE),NO)
  149. XDCOPT = -u
  150. endif
  151. ifdef XDCOPT
  152. XDCDATA = $(OBJDIR)/$(TARGET).xdc
  153. endif
  154. ifeq ($(findstring linux,$(OSTYPE)),linux)
  155. DL = '
  156. DS = /
  157. #-include $(NDKBASE)/nlmconv/ncpfs.inc
  158. else
  159. DS = \\
  160. endif
  161. # Makefile.inc provides the CSOURCES and HHEADERS defines
  162. include Makefile.inc
  163. OBJS := $(patsubst %.c,$(OBJDIR)/%.o,$(strip $(CSOURCES))) $(LDLIBS)
  164. OBJL = $(OBJS) $(OBJDIR)/nwlib.o
  165. all: lib nlm
  166. nlm: prebuild $(TARGET).nlm
  167. lib: prebuild $(TARGET).lib
  168. prebuild: $(OBJDIR) $(OBJDIR)/version.inc config.h ca-bundle.h
  169. $(OBJDIR)/%.o: %.c
  170. # @echo Compiling $<
  171. $(CC) $(CFLAGS) -c $< -o $@
  172. $(OBJDIR)/version.inc: ../include/curl/curlver.h $(OBJDIR)
  173. @echo Creating $@
  174. @awk -f ../packages/NetWare/get_ver.awk $< > $@
  175. dist: all
  176. -$(RM) $(OBJDIR)/*.o $(OBJDIR)/$(TARGET).map $(OBJDIR)/$(TARGET).ncv
  177. -$(RM) $(OBJDIR)/$(TARGET).def $(OBJDIR)/version.inc $(XDCDATA)
  178. install: $(INSTDIR) all
  179. @$(CP) $(TARGET).nlm $(INSTDIR)
  180. @$(CP) $(TARGET).lib $(INSTDIR)
  181. @$(CP) ../CHANGES $(INSTDIR)
  182. @$(CP) ../COPYING $(INSTDIR)
  183. @$(CP) ../README $(INSTDIR)
  184. @$(CP) ../RELEASE-NOTES $(INSTDIR)
  185. ifdef WITH_SSL
  186. @$(CP) ca-bundle.crt $(INSTDIR)
  187. endif
  188. clean:
  189. -$(RM) config.h ca-bundle.h
  190. -$(RM) -r $(OBJDIR)
  191. $(INSTDIR):
  192. @mkdir $(INSTDIR)
  193. $(OBJDIR):
  194. @mkdir $(OBJDIR)
  195. $(TARGET).lib: $(OBJS)
  196. @echo Creating $@
  197. @-$(RM) $@
  198. @$(AR) $(ARFLAGS) $@ $^
  199. $(TARGET).nlm: $(OBJDIR)/$(TARGET).def $(OBJL) $(XDCDATA)
  200. @echo Linking $@
  201. @-$(RM) $@
  202. @$(LD) $(LDFLAGS) $<
  203. $(OBJDIR)/%.xdc: Makefile.netware
  204. @echo Creating $@
  205. @$(MPKXDC) $(XDCOPT) $@
  206. $(OBJDIR)/%.def: Makefile.netware
  207. @echo $(DL)# DEF file for linking with $(LD)$(DL) > $@
  208. @echo $(DL)# Do not edit this file - it is created by make!$(DL) >> $@
  209. @echo $(DL)# All your changes will be lost!!$(DL) >> $@
  210. @echo $(DL)#$(DL) >> $@
  211. @echo $(DL)copyright "$(COPYR)"$(DL) >> $@
  212. @echo $(DL)description "$(DESCR)"$(DL) >> $@
  213. @echo $(DL)version $(VERSION)$(DL) >> $@
  214. ifdef NLMTYPE
  215. @echo $(DL)type $(NLMTYPE)$(DL) >> $@
  216. endif
  217. ifdef STACK
  218. @echo $(DL)stack $(STACK)$(DL) >> $@
  219. endif
  220. ifdef SCREEN
  221. @echo $(DL)screenname "$(SCREEN)"$(DL) >> $@
  222. else
  223. @echo $(DL)screenname "DEFAULT"$(DL) >> $@
  224. endif
  225. ifeq ($(DB),DEBUG)
  226. @echo $(DL)debug$(DL) >> $@
  227. endif
  228. @echo $(DL)threadname "$(TARGET)"$(DL) >> $@
  229. ifdef XDCDATA
  230. @echo $(DL)xdcdata $(XDCDATA)$(DL) >> $@
  231. endif
  232. ifeq ($(LIBARCH),CLIB)
  233. @echo $(DL)start _Prelude$(DL) >> $@
  234. @echo $(DL)exit _Stop$(DL) >> $@
  235. @echo $(DL)import @$(SDK_CLIB)/imports/clib.imp$(DL) >> $@
  236. @echo $(DL)import @$(SDK_CLIB)/imports/threads.imp$(DL) >> $@
  237. @echo $(DL)import @$(SDK_CLIB)/imports/nlmlib.imp$(DL) >> $@
  238. @echo $(DL)import @$(SDK_CLIB)/imports/socklib.imp$(DL) >> $@
  239. # @echo $(DL)import @$(SDK_LDAP)/clib/imports/ldapsdk.imp$(DL) >> $@
  240. # @echo $(DL)import @$(SDK_LDAP)/clib/imports/ldapssl.imp$(DL) >> $@
  241. # @echo $(DL)import @$(SDK_LDAP)/clib/imports/ldapx.imp$(DL) >> $@
  242. @echo $(DL)module clib$(DL) >> $@
  243. else
  244. @echo $(DL)flag_on 64$(DL) >> $@
  245. @echo $(DL)pseudopreemption$(DL) >> $@
  246. @echo $(DL)start _LibCPrelude$(DL) >> $@
  247. @echo $(DL)exit _LibCPostlude$(DL) >> $@
  248. @echo $(DL)check _LibCCheckUnload$(DL) >> $@
  249. @echo $(DL)import @$(SDK_LIBC)/imports/libc.imp$(DL) >> $@
  250. @echo $(DL)import @$(SDK_LIBC)/imports/netware.imp$(DL) >> $@
  251. # @echo $(DL)import @$(SDK_LDAP)/libc/imports/lldapsdk.imp$(DL) >> $@
  252. # @echo $(DL)import @$(SDK_LDAP)/libc/imports/lldapssl.imp$(DL) >> $@
  253. # @echo $(DL)import @$(SDK_LDAP)/libc/imports/lldapx.imp$(DL) >> $@
  254. @echo $(DL)module libc$(DL) >> $@
  255. endif
  256. ifdef MODULES
  257. @echo $(DL)module $(MODULES)$(DL) >> $@
  258. endif
  259. ifdef EXPORTS
  260. @echo $(DL)export $(EXPORTS)$(DL) >> $@
  261. endif
  262. ifdef IMPORTS
  263. @echo $(DL)import $(IMPORTS)$(DL) >> $@
  264. endif
  265. ifeq ($(LD),nlmconv)
  266. ifdef LDLIBS
  267. @echo $(DL)input $(LDLIBS)$(DL) >> $@
  268. endif
  269. @echo $(DL)input $(OBJL)$(DL) >> $@
  270. @echo $(DL)input $(PRELUDE)$(DL) >> $@
  271. @echo $(DL)output $(TARGET).nlm$(DL) >> $@
  272. endif
  273. config.h: Makefile.netware
  274. @echo Creating $@
  275. @echo $(DL)/* $@ for NetWare target.$(DL) > $@
  276. @echo $(DL)** Do not edit this file - it is created by make!$(DL) >> $@
  277. @echo $(DL)** All your changes will be lost!!$(DL) >> $@
  278. @echo $(DL)*/$(DL) >> $@
  279. @echo $(DL)#define OS "i586-pc-NetWare"$(DL) >> $@
  280. @echo $(DL)#define VERSION "$(LIBCURL_VERSION_STR)"$(DL) >> $@
  281. @echo $(DL)#define PACKAGE_BUGREPORT "a suitable curl mailing list => http://curl.haxx.se/mail/"$(DL) >> $@
  282. @echo $(DL)#define HAVE_ARPA_INET_H 1$(DL) >> $@
  283. @echo $(DL)#define HAVE_ASSERT_H 1$(DL) >> $@
  284. @echo $(DL)#define HAVE_DLFCN_H 1$(DL) >> $@
  285. @echo $(DL)#define HAVE_DLOPEN 1$(DL) >> $@
  286. @echo $(DL)#define HAVE_ERR_H 1$(DL) >> $@
  287. @echo $(DL)#define HAVE_FCNTL_H 1$(DL) >> $@
  288. @echo $(DL)#define HAVE_FIONBIO 1$(DL) >> $@
  289. @echo $(DL)#define HAVE_GETHOSTBYADDR 1$(DL) >> $@
  290. @echo $(DL)#define HAVE_GETTIMEOFDAY 1$(DL) >> $@
  291. @echo $(DL)#define HAVE_INET_ADDR 1$(DL) >> $@
  292. @echo $(DL)#define HAVE_INET_NTOA 1$(DL) >> $@
  293. @echo $(DL)#define HAVE_INET_PTON 1$(DL) >> $@
  294. @echo $(DL)#define HAVE_INTTYPES_H 1$(DL) >> $@
  295. @echo $(DL)#define HAVE_LIMITS_H 1$(DL) >> $@
  296. @echo $(DL)#define HAVE_LONGLONG 1$(DL) >> $@
  297. @echo $(DL)#define HAVE_MALLOC_H 1$(DL) >> $@
  298. @echo $(DL)#define HAVE_NETINET_IN_H 1$(DL) >> $@
  299. @echo $(DL)#define HAVE_RECV 1$(DL) >> $@
  300. @echo $(DL)#define HAVE_SELECT 1$(DL) >> $@
  301. @echo $(DL)#define HAVE_SEND 1$(DL) >> $@
  302. @echo $(DL)#define HAVE_SETJMP_H 1$(DL) >> $@
  303. @echo $(DL)#define HAVE_SIGNAL 1$(DL) >> $@
  304. @echo $(DL)#define HAVE_SIGNAL_H 1$(DL) >> $@
  305. @echo $(DL)#define HAVE_SIG_ATOMIC_T 1$(DL) >> $@
  306. @echo $(DL)#define HAVE_SOCKET 1$(DL) >> $@
  307. @echo $(DL)#define HAVE_STDINT_H 1$(DL) >> $@
  308. @echo $(DL)#define HAVE_STDLIB_H 1$(DL) >> $@
  309. @echo $(DL)#define HAVE_STRCASECMP 1$(DL) >> $@
  310. @echo $(DL)#define HAVE_STRDUP 1$(DL) >> $@
  311. @echo $(DL)#define HAVE_STRFTIME 1$(DL) >> $@
  312. @echo $(DL)#define HAVE_STRING_H 1$(DL) >> $@
  313. @echo $(DL)#define HAVE_STRLCAT 1$(DL) >> $@
  314. @echo $(DL)#define HAVE_STRLCPY 1$(DL) >> $@
  315. @echo $(DL)#define HAVE_STRSTR 1$(DL) >> $@
  316. @echo $(DL)#define HAVE_SYS_PARAM_H 1$(DL) >> $@
  317. @echo $(DL)#define HAVE_SYS_SELECT_H 1$(DL) >> $@
  318. @echo $(DL)#define HAVE_SYS_STAT_H 1$(DL) >> $@
  319. @echo $(DL)#define HAVE_SYS_TIME_H 1$(DL) >> $@
  320. @echo $(DL)#define HAVE_TERMIOS_H 1$(DL) >> $@
  321. @echo $(DL)#define HAVE_TIME_H 1$(DL) >> $@
  322. @echo $(DL)#define HAVE_UNAME 1$(DL) >> $@
  323. @echo $(DL)#define HAVE_UNISTD_H 1$(DL) >> $@
  324. @echo $(DL)#define RECV_TYPE_ARG1 int$(DL) >> $@
  325. @echo $(DL)#define RECV_TYPE_ARG2 char *$(DL) >> $@
  326. @echo $(DL)#define RECV_TYPE_ARG3 int$(DL) >> $@
  327. @echo $(DL)#define RECV_TYPE_ARG4 int$(DL) >> $@
  328. @echo $(DL)#define RECV_TYPE_RETV int$(DL) >> $@
  329. @echo $(DL)#define RETSIGTYPE void$(DL) >> $@
  330. @echo $(DL)#define SEND_QUAL_ARG2$(DL) >> $@
  331. @echo $(DL)#define SEND_TYPE_ARG1 int$(DL) >> $@
  332. @echo $(DL)#define SEND_TYPE_ARG2 char *$(DL) >> $@
  333. @echo $(DL)#define SEND_TYPE_ARG3 int$(DL) >> $@
  334. @echo $(DL)#define SEND_TYPE_ARG4 int$(DL) >> $@
  335. @echo $(DL)#define SEND_TYPE_RETV int$(DL) >> $@
  336. @echo $(DL)#define SIZEOF_CURL_OFF_T 4$(DL) >> $@
  337. @echo $(DL)#define STDC_HEADERS 1$(DL) >> $@
  338. @echo $(DL)#define TIME_WITH_SYS_TIME 1$(DL) >> $@
  339. @echo $(DL)#define HAVE_AF_INET6 1$(DL) >> $@
  340. @echo $(DL)#define HAVE_PF_INET6 1$(DL) >> $@
  341. @echo $(DL)#define HAVE_STRUCT_ADDRINFO 1$(DL) >> $@
  342. @echo $(DL)#define HAVE_STRUCT_IN6_ADDR 1$(DL) >> $@
  343. @echo $(DL)#define HAVE_STRUCT_SOCKADDR_IN6 1$(DL) >> $@
  344. @echo $(DL)#define HAVE_STRUCT_TIMEVAL 1$(DL) >> $@
  345. @echo $(DL)#define SIZEOF_STRUCT_IN6_ADDR 16$(DL) >> $@
  346. @echo $(DL)#define SIZEOF_STRUCT_IN_ADDR 4$(DL) >> $@
  347. ifdef DISABLE_LDAP
  348. @echo $(DL)#define CURL_DISABLE_LDAP 1$(DL) >> $@
  349. else
  350. @echo $(DL)#define DL_LDAP_FILE "lldapsdk.nlm"$(DL) >> $@
  351. endif
  352. ifdef ENABLE_IPV6
  353. @echo $(DL)#define ENABLE_IPV6 1$(DL) >> $@
  354. endif
  355. ifdef NW_WINSOCK
  356. @echo $(DL)#define HAVE_CLOSESOCKET 1$(DL) >> $@
  357. else
  358. @echo $(DL)#define HAVE_SYS_TYPES_H 1$(DL) >> $@
  359. @echo $(DL)#define HAVE_SYS_SOCKET_H 1$(DL) >> $@
  360. @echo $(DL)#define HAVE_SYS_SOCKIO_H 1$(DL) >> $@
  361. @echo $(DL)#define HAVE_NETDB_H 1$(DL) >> $@
  362. endif
  363. ifdef WITH_ARES
  364. @echo $(DL)#define USE_ARES 1$(DL) >> $@
  365. endif
  366. ifdef WITH_ZLIB
  367. @echo $(DL)#define HAVE_ZLIB_H 1$(DL) >> $@
  368. @echo $(DL)#define HAVE_LIBZ 1$(DL) >> $@
  369. endif
  370. ifdef WITH_SSL
  371. @echo $(DL)#define USE_SSLEAY 1$(DL) >> $@
  372. @echo $(DL)#define USE_OPENSSL 1$(DL) >> $@
  373. @echo $(DL)#define HAVE_OPENSSL_X509_H 1$(DL) >> $@
  374. @echo $(DL)#define HAVE_OPENSSL_SSL_H 1$(DL) >> $@
  375. @echo $(DL)#define HAVE_OPENSSL_RSA_H 1$(DL) >> $@
  376. @echo $(DL)#define HAVE_OPENSSL_PEM_H 1$(DL) >> $@
  377. @echo $(DL)#define HAVE_OPENSSL_ERR_H 1$(DL) >> $@
  378. @echo $(DL)#define HAVE_OPENSSL_CRYPTO_H 1$(DL) >> $@
  379. @echo $(DL)#define HAVE_OPENSSL_ENGINE_H 1$(DL) >> $@
  380. @echo $(DL)#define HAVE_LIBSSL 1$(DL) >> $@
  381. @echo $(DL)#define HAVE_LIBCRYPTO 1$(DL) >> $@
  382. @echo $(DL)#define OPENSSL_NO_KRB5 1$(DL) >> $@
  383. endif
  384. ifdef WITH_SSH2
  385. @echo $(DL)#define USE_LIBSSH2 1$(DL) >> $@
  386. @echo $(DL)#define HAVE_LIBSSH2_H 1$(DL) >> $@
  387. endif
  388. ifdef OLD_NOVELLSDK
  389. @echo $(DL)#define socklen_t int$(DL) >> $@
  390. endif
  391. ca-bundle.h: Makefile.netware
  392. @echo Creating $@
  393. @echo $(DL)/* Do not edit this file - it is created by make!$(DL) > $@
  394. @echo $(DL)** All your changes will be lost!!$(DL) >> $@
  395. @echo $(DL)*/$(DL) >> $@
  396. @echo $(DL)#define CURL_CA_BUNDLE getenv("CURL_CA_BUNDLE")$(DL) >> $@
  397. url.c: ca-bundle.h
  398. info: $(OBJDIR)/version.inc
  399. @echo Configured to build $(TARGET) with these options:
  400. @echo curl version: $(LIBCURL_VERSION_STR)
  401. @echo compiler/linker: $(CC) / $(LD)
  402. ifdef WITH_SSL
  403. @echo SSL support: enabled (OpenSSL)
  404. else
  405. @echo SSL support: no
  406. endif
  407. ifdef WITH_ZLIB
  408. @echo zlib support: enabled
  409. else
  410. @echo zlib support: no
  411. endif
  412. ifdef WITH_ARES
  413. @echo c-ares support: enabled
  414. else
  415. @echo c-ares support: no
  416. endif
  417. ifdef ENABLE_IPV6
  418. @echo ipv6 support: enabled
  419. else
  420. @echo ipv6 support: no
  421. endif
  422. $(LIBCARES):
  423. $(MAKE) -C ../ares -f Makefile.netware lib