Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 442 lines (410 sloc) 14.938 kb
cf062b5 @gknauf added NetWare makefile.
gknauf authored
1 #################################################################
2 #
afa85a5 @gknauf fixed ARFLAGS for CodeWarrior build.
gknauf authored
3 ## Makefile for building libcares (NetWare version - gnu make)
cf062b5 @gknauf added NetWare makefile.
gknauf authored
4 ## Use: make -f Makefile.netware
5 ##
f637292 @gknauf fixed build to use compiler-default lib extension.
gknauf authored
6 ## Comments to: Guenter Knauf http://www.gknw.de/phpbb
cf062b5 @gknauf added NetWare makefile.
gknauf authored
7 #
8 #################################################################
9
10 # Edit the path below to point to the base of your Novell NDK.
11 ifndef NDKBASE
12 NDKBASE = c:/novell
13 endif
14
15 ifndef INSTDIR
f1a9913 @gknauf a couple of small fixes to the makefile:
gknauf authored
16 INSTDIR = ../ares-$(LIBCARES_VERSION_STR)-bin-nw
cf062b5 @gknauf added NetWare makefile.
gknauf authored
17 endif
18
19 # Edit the vars below to change NLM target settings.
40fdf49 Added build of acountry.nlm.
Gisle Vanem authored
20 TARGETS = adig.nlm ahost.nlm acountry.nlm
f637292 @gknauf fixed build to use compiler-default lib extension.
gknauf authored
21 LTARGET = libcares.$(LIBEXT)
55ee00c @gknauf minor cleanup.
gknauf authored
22 VERSION = $(LIBCARES_VERSION)
5e7a4dc @gknauf Added copyright string to ares_version.h and make use of it in other …
gknauf authored
23 COPYR = $(LIBCARES_COPYRIGHT_STR)
55ee00c @gknauf minor cleanup.
gknauf authored
24 DESCR = cURL $(subst .def,,$(notdir $@)) $(LIBCARES_VERSION_STR) - http://curl.haxx.se
cf062b5 @gknauf added NetWare makefile.
gknauf authored
25 MTSAFE = YES
26 STACK = 64000
27 SCREEN = none
28 #EXPORTS =
29 # Comment the line below if you dont want to load protected automatically.
30 #LDRING = 3
31
32 # Edit the var below to point to your lib architecture.
33 ifndef LIBARCH
34 LIBARCH = LIBC
35 endif
36
c6a9531 @gknauf sync'd with lib makefile changes: use var for awk; fixed RECV* / SEND…
gknauf authored
37 # must be equal to NDEBUG or DEBUG, CURLDEBUG
38 ifndef DB
cf062b5 @gknauf added NetWare makefile.
gknauf authored
39 DB = NDEBUG
c6a9531 @gknauf sync'd with lib makefile changes: use var for awk; fixed RECV* / SEND…
gknauf authored
40 endif
cf062b5 @gknauf added NetWare makefile.
gknauf authored
41 # Optimization: -O<n> or debugging: -g
42 ifeq ($(DB),NDEBUG)
43 OPT = -O2
44 OBJDIR = release
45 else
46 OPT = -g
47 OBJDIR = debug
48 endif
49
50 # Include the version info retrieved from curlver.h
51 -include $(OBJDIR)/version.inc
52
1c91a98 @gknauf added better CodeWarrior detection.
gknauf authored
53 # The following lines defines your compiler.
54 ifdef CWFolder
55 METROWERKS = $(CWFolder)
56 endif
cf062b5 @gknauf added NetWare makefile.
gknauf authored
57 ifdef METROWERKS
c6a9531 @gknauf sync'd with lib makefile changes: use var for awk; fixed RECV* / SEND…
gknauf authored
58 # MWCW_PATH = $(subst \,/,$(METROWERKS))/Novell Support
59 MWCW_PATH = $(subst \,/,$(METROWERKS))/Novell Support/Metrowerks Support
cf062b5 @gknauf added NetWare makefile.
gknauf authored
60 CC = mwccnlm
61 else
62 CC = gcc
63 endif
c6a9531 @gknauf sync'd with lib makefile changes: use var for awk; fixed RECV* / SEND…
gknauf authored
64 # a native win32 awk can be downloaded from here:
f1a9913 @gknauf a couple of small fixes to the makefile:
gknauf authored
65 # http://www.gknw.net/development/prgtools/awk-20070501.zip
c6a9531 @gknauf sync'd with lib makefile changes: use var for awk; fixed RECV* / SEND…
gknauf authored
66 AWK = awk
cf062b5 @gknauf added NetWare makefile.
gknauf authored
67 YACC = bison -y
68 CP = cp -afv
f1a9913 @gknauf a couple of small fixes to the makefile:
gknauf authored
69 MKDIR = mkdir
cf062b5 @gknauf added NetWare makefile.
gknauf authored
70 # RM = rm -f
71 # if you want to mark the target as MTSAFE you will need a tool for
72 # generating the xdc data for the linker; here's a minimal tool:
f1a9913 @gknauf a couple of small fixes to the makefile:
gknauf authored
73 # http://www.gknw.net/development/prgtools/mkxdc.zip
cf062b5 @gknauf added NetWare makefile.
gknauf authored
74 MPKXDC = mkxdc
75
76 # Global flags for all compilers
d29c66e @gknauf enable additional CFLAGS from commandline.
gknauf authored
77 CFLAGS += $(OPT) -D$(DB) -DNETWARE -DHAVE_CONFIG_H -nostdinc
cf062b5 @gknauf added NetWare makefile.
gknauf authored
78
79 ifeq ($(CC),mwccnlm)
80 LD = mwldnlm
72beefe @gknauf ares_getopt() command-line parser function does not belong to actual …
gknauf authored
81 LDFLAGS = -nostdlib $(PRELUDE) $(OBJEXE) $(<:.def=.o) -o $@ -commandfile
cf062b5 @gknauf added NetWare makefile.
gknauf authored
82 AR = mwldnlm
afa85a5 @gknauf fixed ARFLAGS for CodeWarrior build.
gknauf authored
83 ARFLAGS = -nostdlib -type library -o
f637292 @gknauf fixed build to use compiler-default lib extension.
gknauf authored
84 LIBEXT = lib
5e98ddf @gknauf added ranlib when library is created with ar.
gknauf authored
85 #RANLIB =
cf062b5 @gknauf added NetWare makefile.
gknauf authored
86 CFLAGS += -msgstyle gcc -gccinc -inline off -opt nointrinsics -proc 586
87 CFLAGS += -relax_pointers
88 #CFLAGS += -w on
89 ifeq ($(LIBARCH),LIBC)
90 PRELUDE = $(SDK_LIBC)/imports/libcpre.o
91 CFLAGS += -align 4
92 else
c6a9531 @gknauf sync'd with lib makefile changes: use var for awk; fixed RECV* / SEND…
gknauf authored
93 # PRELUDE = $(SDK_CLIB)/imports/clibpre.o
95a1092 @gknauf changed to build for CLIB / LIBC.
gknauf authored
94 # to avoid the __init_* / __deinit_* whoes dont use prelude from NDK
c6a9531 @gknauf sync'd with lib makefile changes: use var for awk; fixed RECV* / SEND…
gknauf authored
95 PRELUDE = "$(MWCW_PATH)/libraries/runtime/prelude.obj"
96 # CFLAGS += -include "$(MWCW_PATH)/headers/nlm_clib_prefix.h"
cf062b5 @gknauf added NetWare makefile.
gknauf authored
97 CFLAGS += -align 1
98 endif
99 else
100 LD = nlmconv
101 LDFLAGS = -T
102 AR = ar
103 ARFLAGS = -cq
f637292 @gknauf fixed build to use compiler-default lib extension.
gknauf authored
104 LIBEXT = a
5e98ddf @gknauf added ranlib when library is created with ar.
gknauf authored
105 RANLIB = ranlib
6e3e66d @gknauf Fixed CFLAGS for NetWare.
gknauf authored
106 CFLAGS += -m32
107 CFLAGS += -fno-builtin -fno-strict-aliasing
108 ifeq ($(findstring gcc,$(CC)),gcc)
109 CFLAGS += -fpcc-struct-return
110 endif
111 CFLAGS += -Wall # -pedantic
cf062b5 @gknauf added NetWare makefile.
gknauf authored
112 ifeq ($(LIBARCH),LIBC)
113 PRELUDE = $(SDK_LIBC)/imports/libcpre.gcc.o
114 else
95a1092 @gknauf changed to build for CLIB / LIBC.
gknauf authored
115 # PRELUDE = $(SDK_CLIB)/imports/clibpre.gcc.o
116 # to avoid the __init_* / __deinit_* whoes dont use prelude from NDK
117 # http://www.gknw.net/development/mk_nlm/gcc_pre.zip
118 PRELUDE = $(NDK_ROOT)/pre/prelude.o
cf062b5 @gknauf added NetWare makefile.
gknauf authored
119 CFLAGS += -include $(NDKBASE)/nlmconv/genlm.h
120 endif
121 endif
122
123 NDK_ROOT = $(NDKBASE)/ndk
124 SDK_CLIB = $(NDK_ROOT)/nwsdk
125 SDK_LIBC = $(NDK_ROOT)/libc
126
127 ifeq ($(LIBARCH),LIBC)
5afa20d @gknauf removed some obsolete include paths and defines.
gknauf authored
128 INCLUDES += -I$(SDK_LIBC)/include
129 # INCLUDES += -I$(SDK_LIBC)/include/nks
26d72f7 @gknauf minor Makefile fix.
gknauf authored
130 # INCLUDES += -I$(SDK_LIBC)/include/winsock
cf062b5 @gknauf added NetWare makefile.
gknauf authored
131 CFLAGS += -D_POSIX_SOURCE
132 else
5afa20d @gknauf removed some obsolete include paths and defines.
gknauf authored
133 INCLUDES += -I$(SDK_CLIB)/include/nlm
cf062b5 @gknauf added NetWare makefile.
gknauf authored
134 # INCLUDES += -I$(SDK_CLIB)/include/nlm/obsolete
5afa20d @gknauf removed some obsolete include paths and defines.
gknauf authored
135 # INCLUDES += -I$(SDK_CLIB)/include
cf062b5 @gknauf added NetWare makefile.
gknauf authored
136 endif
d750fa4 @gknauf added curl include for debug builds.
gknauf authored
137 ifeq ($(DB),CURLDEBUG)
138 INCLUDES += -I../include
139 endif
34a8688 @gknauf minor fix for compiling on Linux.
gknauf authored
140 CFLAGS += -I. $(INCLUDES)
cf062b5 @gknauf added NetWare makefile.
gknauf authored
141
142 ifeq ($(MTSAFE),YES)
143 XDCOPT = -n
144 endif
145 ifeq ($(MTSAFE),NO)
146 XDCOPT = -u
147 endif
148
e6b38cd @gknauf Block created ares_build.h for NetWare to avoid usage from other plat…
gknauf authored
149 ifeq ($(findstring /sh,$(SHELL)),/sh)
cf062b5 @gknauf added NetWare makefile.
gknauf authored
150 DL = '
151 #-include $(NDKBASE)/nlmconv/ncpfs.inc
152 endif
153
1a230e9 @gknauf changes for building with IPV6.
gknauf authored
154 # Makefile.inc provides the CSOURCES and HHEADERS defines
155 include Makefile.inc
156
72beefe @gknauf ares_getopt() command-line parser function does not belong to actual …
gknauf authored
157 OBJLIB := $(patsubst %.c,$(OBJDIR)/%.o,$(strip $(CSOURCES)))
95a1092 @gknauf changed to build for CLIB / LIBC.
gknauf authored
158 OBJEXE = $(OBJLIB) $(OBJDIR)/ares_getopt.o
cf062b5 @gknauf added NetWare makefile.
gknauf authored
159
55ee00c @gknauf minor cleanup.
gknauf authored
160 .PHONY: lib nlm prebuild dist install clean
cf062b5 @gknauf added NetWare makefile.
gknauf authored
161
8652fc9 @gknauf update to build both test apps.
gknauf authored
162 lib: prebuild $(LTARGET)
cf062b5 @gknauf added NetWare makefile.
gknauf authored
163
95a1092 @gknauf changed to build for CLIB / LIBC.
gknauf authored
164 nlm: prebuild $(TARGETS)
cf062b5 @gknauf added NetWare makefile.
gknauf authored
165
e391db0 @gknauf renamed generated config.h to ares_config.h in order to avoid clashes…
gknauf authored
166 prebuild: $(OBJDIR) ares_build.h $(OBJDIR)/version.inc ares_config.h
cf062b5 @gknauf added NetWare makefile.
gknauf authored
167
168 install: $(INSTDIR) all
8652fc9 @gknauf update to build both test apps.
gknauf authored
169 @$(CP) *.nlm $(INSTDIR)
cf062b5 @gknauf added NetWare makefile.
gknauf authored
170 @$(CP) ../CHANGES $(INSTDIR)
171 @$(CP) ../COPYING $(INSTDIR)
172 @$(CP) ../README $(INSTDIR)
173 @$(CP) ../RELEASE-NOTES $(INSTDIR)
174
175 clean:
e391db0 @gknauf renamed generated config.h to ares_config.h in order to avoid clashes…
gknauf authored
176 -$(RM) $(LTARGET) $(TARGETS) ares_config.h
cf062b5 @gknauf added NetWare makefile.
gknauf authored
177 -$(RM) -r $(OBJDIR)
178 -$(RM) -r arpa
179
72beefe @gknauf ares_getopt() command-line parser function does not belong to actual …
gknauf authored
180 %.$(LIBEXT): $(OBJLIB)
8652fc9 @gknauf update to build both test apps.
gknauf authored
181 @echo Creating $@
182 @-$(RM) $@
183 @$(AR) $(ARFLAGS) $@ $^
5e98ddf @gknauf added ranlib when library is created with ar.
gknauf authored
184 ifdef RANLIB
185 @$(RANLIB) $@
186 endif
8652fc9 @gknauf update to build both test apps.
gknauf authored
187
72beefe @gknauf ares_getopt() command-line parser function does not belong to actual …
gknauf authored
188 %.nlm: $(OBJDIR)/%.def $(OBJDIR)/%.o $(OBJDIR)/%.xdc $(OBJEXE)
8652fc9 @gknauf update to build both test apps.
gknauf authored
189 @echo Linking $@
190 @-$(RM) $@
55ee00c @gknauf minor cleanup.
gknauf authored
191 @$(LD) $(LDFLAGS) $<
8652fc9 @gknauf update to build both test apps.
gknauf authored
192
f1a9913 @gknauf a couple of small fixes to the makefile:
gknauf authored
193 $(OBJDIR) $(INSTDIR):
194 @$(MKDIR) $@
cf062b5 @gknauf added NetWare makefile.
gknauf authored
195
8652fc9 @gknauf update to build both test apps.
gknauf authored
196 $(OBJDIR)/%.o: %.c
197 # @echo Compiling $<
198 $(CC) $(CFLAGS) -c $< -o $@
cf062b5 @gknauf added NetWare makefile.
gknauf authored
199
55ee00c @gknauf minor cleanup.
gknauf authored
200 $(OBJDIR)/version.inc: ares_version.h $(OBJDIR)
8652fc9 @gknauf update to build both test apps.
gknauf authored
201 @echo Creating $@
f1a9913 @gknauf a couple of small fixes to the makefile:
gknauf authored
202 @$(AWK) -f get_ver.awk $< > $@
cf062b5 @gknauf added NetWare makefile.
gknauf authored
203
204 $(OBJDIR)/%.xdc: Makefile.netware
205 @echo Creating $@
206 @$(MPKXDC) $(XDCOPT) $@
207
208 $(OBJDIR)/%.def: Makefile.netware
8652fc9 @gknauf update to build both test apps.
gknauf authored
209 @echo Creating $@
cf062b5 @gknauf added NetWare makefile.
gknauf authored
210 @echo $(DL)# DEF file for linking with $(LD)$(DL) > $@
211 @echo $(DL)# Do not edit this file - it is created by make!$(DL) >> $@
212 @echo $(DL)# All your changes will be lost!!$(DL) >> $@
213 @echo $(DL)#$(DL) >> $@
214 @echo $(DL)copyright "$(COPYR)"$(DL) >> $@
215 @echo $(DL)description "$(DESCR)"$(DL) >> $@
216 @echo $(DL)version $(VERSION)$(DL) >> $@
217 ifdef NLMTYPE
218 @echo $(DL)type $(NLMTYPE)$(DL) >> $@
219 endif
220 ifdef STACK
221 @echo $(DL)stack $(STACK)$(DL) >> $@
222 endif
223 ifdef SCREEN
224 @echo $(DL)screenname "$(SCREEN)"$(DL) >> $@
225 else
226 @echo $(DL)screenname "DEFAULT"$(DL) >> $@
227 endif
228 ifeq ($(DB),DEBUG)
229 @echo $(DL)debug$(DL) >> $@
230 endif
8652fc9 @gknauf update to build both test apps.
gknauf authored
231 @echo $(DL)threadname "$^"$(DL) >> $@
232 ifdef XDCOPT
55ee00c @gknauf minor cleanup.
gknauf authored
233 @echo $(DL)xdcdata $(@:.def=.xdc)$(DL) >> $@
cf062b5 @gknauf added NetWare makefile.
gknauf authored
234 endif
235 ifeq ($(LDRING),0)
236 @echo $(DL)flag_on 16$(DL) >> $@
237 endif
238 ifeq ($(LDRING),3)
239 @echo $(DL)flag_on 512$(DL) >> $@
240 endif
241 ifeq ($(LIBARCH),CLIB)
242 @echo $(DL)start _Prelude$(DL) >> $@
243 @echo $(DL)exit _Stop$(DL) >> $@
244 @echo $(DL)import @$(SDK_CLIB)/imports/clib.imp$(DL) >> $@
245 @echo $(DL)import @$(SDK_CLIB)/imports/threads.imp$(DL) >> $@
246 @echo $(DL)import @$(SDK_CLIB)/imports/nlmlib.imp$(DL) >> $@
247 @echo $(DL)import @$(SDK_CLIB)/imports/socklib.imp$(DL) >> $@
248 @echo $(DL)module clib$(DL) >> $@
249 else
250 @echo $(DL)flag_on 64$(DL) >> $@
251 @echo $(DL)pseudopreemption$(DL) >> $@
252 @echo $(DL)start _LibCPrelude$(DL) >> $@
253 @echo $(DL)exit _LibCPostlude$(DL) >> $@
254 @echo $(DL)check _LibCCheckUnload$(DL) >> $@
255 @echo $(DL)import @$(SDK_LIBC)/imports/libc.imp$(DL) >> $@
256 @echo $(DL)import @$(SDK_LIBC)/imports/netware.imp$(DL) >> $@
257 @echo $(DL)module libc$(DL) >> $@
258 endif
259 ifdef MODULES
260 @echo $(DL)module $(MODULES)$(DL) >> $@
261 endif
262 ifdef EXPORTS
263 @echo $(DL)export $(EXPORTS)$(DL) >> $@
264 endif
265 ifdef IMPORTS
266 @echo $(DL)import $(IMPORTS)$(DL) >> $@
267 endif
268 ifeq ($(LD),nlmconv)
269 @echo $(DL)input $(PRELUDE)$(DL) >> $@
e6dbd9b @gknauf fixed linker def file for tools when compiled with gcc/nlmconv.
gknauf authored
270 @echo $(DL)input $(OBJEXE)$(DL) >> $@
271 @echo $(DL)input $(@:.def=.o)$(DL) >> $@
8652fc9 @gknauf update to build both test apps.
gknauf authored
272 @echo $(DL)output $(notdir $(@:.def=.nlm))$(DL) >> $@
cf062b5 @gknauf added NetWare makefile.
gknauf authored
273 endif
274
e391db0 @gknauf renamed generated config.h to ares_config.h in order to avoid clashes…
gknauf authored
275 ares_config.h: Makefile.netware
cf062b5 @gknauf added NetWare makefile.
gknauf authored
276 @echo Creating $@
277 @echo $(DL)/* $@ for NetWare target.$(DL) > $@
278 @echo $(DL)** Do not edit this file - it is created by make!$(DL) >> $@
279 @echo $(DL)** All your changes will be lost!!$(DL) >> $@
280 @echo $(DL)*/$(DL) >> $@
c719f57 @gknauf added variadic macro stuff.
gknauf authored
281 @echo $(DL)#ifndef NETWARE$(DL) >> $@
282 @echo $(DL)#error This $(notdir $@) is created for NetWare platform!$(DL) >> $@
283 @echo $(DL)#endif$(DL) >> $@
cdd3f45 @gknauf minor Makefile fix - let's go 2006;
gknauf authored
284 @echo $(DL)#define VERSION "$(LIBCARES_VERSION_STR)"$(DL) >> $@
285 @echo $(DL)#define PACKAGE_BUGREPORT "a suitable curl mailing list => http://curl.haxx.se/mail/"$(DL) >> $@
95a1092 @gknauf changed to build for CLIB / LIBC.
gknauf authored
286 ifeq ($(LIBARCH),CLIB)
287 @echo $(DL)#define OS "i586-pc-clib-NetWare"$(DL) >> $@
25d9912 @yangtse NetWare CLIB target has stricmp() and strnicmp()
yangtse authored
288 @echo $(DL)#define HAVE_STRICMP 1$(DL) >> $@
289 @echo $(DL)#define HAVE_STRNICMP 1$(DL) >> $@
95a1092 @gknauf changed to build for CLIB / LIBC.
gknauf authored
290 @echo $(DL)#define NETDB_USE_INTERNET 1$(DL) >> $@
291 @echo $(DL)#define RECV_TYPE_ARG1 int$(DL) >> $@
292 @echo $(DL)#define RECV_TYPE_ARG2 char *$(DL) >> $@
293 @echo $(DL)#define RECV_TYPE_ARG3 int$(DL) >> $@
294 @echo $(DL)#define RECV_TYPE_ARG4 int$(DL) >> $@
295 @echo $(DL)#define RECV_TYPE_RETV int$(DL) >> $@
7dd6d7c @yangtse Configure process now checks availability of recvfrom() socket functi…
yangtse authored
296 @echo $(DL)#define RECVFROM_TYPE_ARG1 int$(DL) >> $@
2aeb031 @yangtse RECVFROM_TYPE_ARG2, RECVFROM_TYPE_ARG5 and RECVFROM_TYPE_ARG6 are now…
yangtse authored
297 @echo $(DL)#define RECVFROM_TYPE_ARG2 char$(DL) >> $@
7dd6d7c @yangtse Configure process now checks availability of recvfrom() socket functi…
yangtse authored
298 @echo $(DL)#define RECVFROM_TYPE_ARG3 int$(DL) >> $@
299 @echo $(DL)#define RECVFROM_TYPE_ARG4 int$(DL) >> $@
2aeb031 @yangtse RECVFROM_TYPE_ARG2, RECVFROM_TYPE_ARG5 and RECVFROM_TYPE_ARG6 are now…
yangtse authored
300 @echo $(DL)#define RECVFROM_TYPE_ARG5 struct sockaddr$(DL) >> $@
301 @echo $(DL)#define RECVFROM_TYPE_ARG6 int$(DL) >> $@
7dd6d7c @yangtse Configure process now checks availability of recvfrom() socket functi…
yangtse authored
302 @echo $(DL)#define RECVFROM_TYPE_RETV int$(DL) >> $@
95a1092 @gknauf changed to build for CLIB / LIBC.
gknauf authored
303 @echo $(DL)#define SEND_QUAL_ARG2$(DL) >> $@
304 @echo $(DL)#define SEND_TYPE_ARG1 int$(DL) >> $@
305 @echo $(DL)#define SEND_TYPE_ARG2 char *$(DL) >> $@
306 @echo $(DL)#define SEND_TYPE_ARG3 int$(DL) >> $@
307 @echo $(DL)#define SEND_TYPE_ARG4 int$(DL) >> $@
308 @echo $(DL)#define SEND_TYPE_RETV int$(DL) >> $@
a04dbb4 @yangtse build: provide SIZEOF_SIZE_T netware definition
yangtse authored
309 @echo $(DL)#define SIZEOF_SIZE_T 4$(DL) >> $@
95a1092 @gknauf changed to build for CLIB / LIBC.
gknauf authored
310 else
311 @echo $(DL)#define OS "i586-pc-libc-NetWare"$(DL) >> $@
312 @echo $(DL)#define HAVE_DLFCN_H 1$(DL) >> $@
313 @echo $(DL)#define HAVE_DLOPEN 1$(DL) >> $@
314 @echo $(DL)#define HAVE_FTRUNCATE 1$(DL) >> $@
315 @echo $(DL)#define HAVE_GETTIMEOFDAY 1$(DL) >> $@
316 @echo $(DL)#define HAVE_INTTYPES_H 1$(DL) >> $@
317 @echo $(DL)#define HAVE_LONGLONG 1$(DL) >> $@
318 @echo $(DL)#define HAVE_STDINT_H 1$(DL) >> $@
319 @echo $(DL)#define HAVE_STRCASECMP 1$(DL) >> $@
320 @echo $(DL)#define HAVE_STRLCAT 1$(DL) >> $@
321 @echo $(DL)#define HAVE_STRLCPY 1$(DL) >> $@
322 @echo $(DL)#define HAVE_STRTOLL 1$(DL) >> $@
323 @echo $(DL)#define HAVE_SYS_PARAM_H 1$(DL) >> $@
324 @echo $(DL)#define HAVE_SYS_SELECT_H 1$(DL) >> $@
325 @echo $(DL)#define HAVE_TERMIOS_H 1$(DL) >> $@
326 @echo $(DL)#define HAVE_AF_INET6 1$(DL) >> $@
327 @echo $(DL)#define HAVE_PF_INET6 1$(DL) >> $@
bcb85d3 @gknauf added HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID to ares Makefile.netware and sy…
gknauf authored
328 @echo $(DL)#define HAVE_FREEADDRINFO 1$(DL) >> $@
329 @echo $(DL)#define HAVE_GETADDRINFO 1$(DL) >> $@
330 @echo $(DL)#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1$(DL) >> $@
95a1092 @gknauf changed to build for CLIB / LIBC.
gknauf authored
331 @echo $(DL)#define HAVE_STRUCT_IN6_ADDR 1$(DL) >> $@
332 @echo $(DL)#define HAVE_STRUCT_SOCKADDR_IN6 1$(DL) >> $@
333 @echo $(DL)#define RECV_TYPE_ARG1 int$(DL) >> $@
334 @echo $(DL)#define RECV_TYPE_ARG2 void *$(DL) >> $@
335 @echo $(DL)#define RECV_TYPE_ARG3 size_t$(DL) >> $@
336 @echo $(DL)#define RECV_TYPE_ARG4 int$(DL) >> $@
337 @echo $(DL)#define RECV_TYPE_RETV ssize_t$(DL) >> $@
7dd6d7c @yangtse Configure process now checks availability of recvfrom() socket functi…
yangtse authored
338 @echo $(DL)#define RECVFROM_TYPE_ARG1 int$(DL) >> $@
2aeb031 @yangtse RECVFROM_TYPE_ARG2, RECVFROM_TYPE_ARG5 and RECVFROM_TYPE_ARG6 are now…
yangtse authored
339 @echo $(DL)#define RECVFROM_TYPE_ARG2 void$(DL) >> $@
7dd6d7c @yangtse Configure process now checks availability of recvfrom() socket functi…
yangtse authored
340 @echo $(DL)#define RECVFROM_TYPE_ARG3 size_t$(DL) >> $@
341 @echo $(DL)#define RECVFROM_TYPE_ARG4 int$(DL) >> $@
2aeb031 @yangtse RECVFROM_TYPE_ARG2, RECVFROM_TYPE_ARG5 and RECVFROM_TYPE_ARG6 are now…
yangtse authored
342 @echo $(DL)#define RECVFROM_TYPE_ARG5 struct sockaddr$(DL) >> $@
d7c0917 @yangtse Adjust recvfrom's sixth arg data type definition for NetWare (LIBC)
yangtse authored
343 @echo $(DL)#define RECVFROM_TYPE_ARG6 size_t$(DL) >> $@
7dd6d7c @yangtse Configure process now checks availability of recvfrom() socket functi…
yangtse authored
344 @echo $(DL)#define RECVFROM_TYPE_RETV ssize_t$(DL) >> $@
44ae9e4 @yangtse when recvfrom prototype uses a void pointer for arguments 2, 5 or 6 t…
yangtse authored
345 @echo $(DL)#define RECVFROM_TYPE_ARG2_IS_VOID 1$(DL) >> $@
95a1092 @gknauf changed to build for CLIB / LIBC.
gknauf authored
346 @echo $(DL)#define SEND_QUAL_ARG2$(DL) >> $@
347 @echo $(DL)#define SEND_TYPE_ARG1 int$(DL) >> $@
348 @echo $(DL)#define SEND_TYPE_ARG2 void *$(DL) >> $@
349 @echo $(DL)#define SEND_TYPE_ARG3 size_t$(DL) >> $@
350 @echo $(DL)#define SEND_TYPE_ARG4 int$(DL) >> $@
351 @echo $(DL)#define SEND_TYPE_RETV ssize_t$(DL) >> $@
a04dbb4 @yangtse build: provide SIZEOF_SIZE_T netware definition
yangtse authored
352 @echo $(DL)#define SIZEOF_SIZE_T 8$(DL) >> $@
95a1092 @gknauf changed to build for CLIB / LIBC.
gknauf authored
353 @echo $(DL)#define SIZEOF_STRUCT_IN6_ADDR 16$(DL) >> $@
354 endif
cf062b5 @gknauf added NetWare makefile.
gknauf authored
355 @echo $(DL)#define HAVE_ARPA_INET_H 1$(DL) >> $@
356 @echo $(DL)#define HAVE_ASSERT_H 1$(DL) >> $@
9099a9e @yangtse System's errno.h inclusion cleanup follow-up.
yangtse authored
357 @echo $(DL)#define HAVE_ERRNO_H 1$(DL) >> $@
cf062b5 @gknauf added NetWare makefile.
gknauf authored
358 @echo $(DL)#define HAVE_ERR_H 1$(DL) >> $@
359 @echo $(DL)#define HAVE_FCNTL_H 1$(DL) >> $@
822fd0f @yangtse build: use getenv() replacement function for systems which lack it
yangtse authored
360 @echo $(DL)#define HAVE_GETENV 1$(DL) >> $@
cf062b5 @gknauf added NetWare makefile.
gknauf authored
361 @echo $(DL)#define HAVE_GETHOSTBYADDR 1$(DL) >> $@
95a1092 @gknauf changed to build for CLIB / LIBC.
gknauf authored
362 @echo $(DL)#define HAVE_GETHOSTBYNAME 1$(DL) >> $@
7bd83c2 @dfandrich Netware has gethostname()
dfandrich authored
363 @echo $(DL)#define HAVE_GETHOSTNAME 1$(DL) >> $@
95a1092 @gknauf changed to build for CLIB / LIBC.
gknauf authored
364 @echo $(DL)#define HAVE_GETPROTOBYNAME 1$(DL) >> $@
365 @echo $(DL)#define HAVE_GMTIME_R 1$(DL) >> $@
cf062b5 @gknauf added NetWare makefile.
gknauf authored
366 @echo $(DL)#define HAVE_INET_ADDR 1$(DL) >> $@
65cafbe @yangtse Refactor configure script detection of functions used to set sockets …
yangtse authored
367 @echo $(DL)#define HAVE_IOCTL 1$(DL) >> $@
368 @echo $(DL)#define HAVE_IOCTL_FIONBIO 1$(DL) >> $@
4ecce9f @yangtse moved HAVE_LIMITS_H to common defines
yangtse authored
369 @echo $(DL)#define HAVE_LIMITS_H 1$(DL) >> $@
95a1092 @gknauf changed to build for CLIB / LIBC.
gknauf authored
370 @echo $(DL)#define HAVE_LL 1$(DL) >> $@
371 @echo $(DL)#define HAVE_LOCALTIME_R 1$(DL) >> $@
cf062b5 @gknauf added NetWare makefile.
gknauf authored
372 @echo $(DL)#define HAVE_MALLOC_H 1$(DL) >> $@
373 @echo $(DL)#define HAVE_NETINET_IN_H 1$(DL) >> $@
6438dff @yangtse Provide definitions needed for macros sread() and swrite() in config …
yangtse authored
374 @echo $(DL)#define HAVE_RECV 1$(DL) >> $@
7dd6d7c @yangtse Configure process now checks availability of recvfrom() socket functi…
yangtse authored
375 @echo $(DL)#define HAVE_RECVFROM 1$(DL) >> $@
cf062b5 @gknauf added NetWare makefile.
gknauf authored
376 @echo $(DL)#define HAVE_SELECT 1$(DL) >> $@
6438dff @yangtse Provide definitions needed for macros sread() and swrite() in config …
yangtse authored
377 @echo $(DL)#define HAVE_SEND 1$(DL) >> $@
cf062b5 @gknauf added NetWare makefile.
gknauf authored
378 @echo $(DL)#define HAVE_SETJMP_H 1$(DL) >> $@
379 @echo $(DL)#define HAVE_SIGNAL 1$(DL) >> $@
286eafa @yangtse Define HAVE_SIGNAL_H, HAVE_SIG_ATOMIC_T and HAVE_SIG_ATOMIC_T_VOLATILE
yangtse authored
380 @echo $(DL)#define HAVE_SIGNAL_H 1$(DL) >> $@
381 @echo $(DL)#define HAVE_SIG_ATOMIC_T 1$(DL) >> $@
cf062b5 @gknauf added NetWare makefile.
gknauf authored
382 @echo $(DL)#define HAVE_SOCKET 1$(DL) >> $@
383 @echo $(DL)#define HAVE_STDLIB_H 1$(DL) >> $@
384 @echo $(DL)#define HAVE_STRDUP 1$(DL) >> $@
385 @echo $(DL)#define HAVE_STRFTIME 1$(DL) >> $@
386 @echo $(DL)#define HAVE_STRING_H 1$(DL) >> $@
387 @echo $(DL)#define HAVE_STRSTR 1$(DL) >> $@
c6a9531 @gknauf sync'd with lib makefile changes: use var for awk; fixed RECV* / SEND…
gknauf authored
388 @echo $(DL)#define HAVE_STRUCT_ADDRINFO 1$(DL) >> $@
389 @echo $(DL)#define HAVE_STRUCT_TIMEVAL 1$(DL) >> $@
95a1092 @gknauf changed to build for CLIB / LIBC.
gknauf authored
390 @echo $(DL)#define HAVE_SYS_IOCTL_H 1$(DL) >> $@
cf062b5 @gknauf added NetWare makefile.
gknauf authored
391 @echo $(DL)#define HAVE_SYS_STAT_H 1$(DL) >> $@
392 @echo $(DL)#define HAVE_SYS_TIME_H 1$(DL) >> $@
393 @echo $(DL)#define HAVE_TIME_H 1$(DL) >> $@
394 @echo $(DL)#define HAVE_UNAME 1$(DL) >> $@
395 @echo $(DL)#define HAVE_UNISTD_H 1$(DL) >> $@
95a1092 @gknauf changed to build for CLIB / LIBC.
gknauf authored
396 @echo $(DL)#define HAVE_UTIME 1$(DL) >> $@
397 @echo $(DL)#define HAVE_UTIME_H 1$(DL) >> $@
afb0533 @yangtse NetWare seems to have writev()
yangtse authored
398 @echo $(DL)#define HAVE_WRITEV 1$(DL) >> $@
cf062b5 @gknauf added NetWare makefile.
gknauf authored
399 @echo $(DL)#define RETSIGTYPE void$(DL) >> $@
561d3d8 @yangtse Added SIZEOF_INT definition
yangtse authored
400 @echo $(DL)#define SIZEOF_INT 4$(DL) >> $@
440b5d4 @yangtse Makefile.netware: SIZEOF_SHORT definition
yangtse authored
401 @echo $(DL)#define SIZEOF_SHORT 2$(DL) >> $@
c6a9531 @gknauf sync'd with lib makefile changes: use var for awk; fixed RECV* / SEND…
gknauf authored
402 @echo $(DL)#define SIZEOF_STRUCT_IN_ADDR 4$(DL) >> $@
cf062b5 @gknauf added NetWare makefile.
gknauf authored
403 @echo $(DL)#define STDC_HEADERS 1$(DL) >> $@
404 @echo $(DL)#define TIME_WITH_SYS_TIME 1$(DL) >> $@
405 ifdef NW_WINSOCK
406 @echo $(DL)#define HAVE_CLOSESOCKET 1$(DL) >> $@
407 else
408 @echo $(DL)#define HAVE_SYS_TYPES_H 1$(DL) >> $@
409 @echo $(DL)#define HAVE_SYS_SOCKET_H 1$(DL) >> $@
410 @echo $(DL)#define HAVE_SYS_SOCKIO_H 1$(DL) >> $@
411 @echo $(DL)#define HAVE_NETDB_H 1$(DL) >> $@
412 endif
c719f57 @gknauf added variadic macro stuff.
gknauf authored
413 @echo $(DL)#ifdef __GNUC__$(DL) >> $@
414 @echo $(DL)#define HAVE_VARIADIC_MACROS_GCC 1$(DL) >> $@
415 @echo $(DL)#else$(DL) >> $@
416 @echo $(DL)#define HAVE_VARIADIC_MACROS_C99 1$(DL) >> $@
417 @echo $(DL)#endif$(DL) >> $@
cf062b5 @gknauf added NetWare makefile.
gknauf authored
418
f370102 @yangtse ares_build.h NetWare follow-up
yangtse authored
419 FORCE: ;
420
6f1b99c @yangtse ares_build.h NetWare attempt
yangtse authored
421 ares_build.h: Makefile.netware FORCE
422 @echo Creating $@
423 @echo $(DL)/* $@ intended for NetWare target.$(DL) > $@
424 @echo $(DL)** Do not edit this file - it is created by make!$(DL) >> $@
425 @echo $(DL)** All your changes will be lost!!$(DL) >> $@
426 @echo $(DL)*/$(DL) >> $@
e6b38cd @gknauf Block created ares_build.h for NetWare to avoid usage from other plat…
gknauf authored
427 @echo $(DL)#ifndef NETWARE$(DL) >> $@
428 @echo $(DL)#error This $(notdir $@) is created for NetWare platform!$(DL) >> $@
429 @echo $(DL)#endif$(DL) >> $@
6f1b99c @yangtse ares_build.h NetWare attempt
yangtse authored
430 @echo $(DL)#ifndef __CARES_BUILD_H$(DL) >> $@
431 @echo $(DL)#define __CARES_BUILD_H$(DL) >> $@
432 ifeq ($(LIBARCH),CLIB)
433 @echo $(DL)#define CARES_TYPEOF_ARES_SOCKLEN_T int$(DL) >> $@
434 @echo $(DL)#define CARES_SIZEOF_ARES_SOCKLEN_T 4$(DL) >> $@
435 else
f444fb7 @yangtse Use 'unsigned int' instead of size_t attempting to avoid header inclu…
yangtse authored
436 @echo $(DL)#define CARES_TYPEOF_ARES_SOCKLEN_T unsigned int$(DL) >> $@
6f1b99c @yangtse ares_build.h NetWare attempt
yangtse authored
437 @echo $(DL)#define CARES_SIZEOF_ARES_SOCKLEN_T 4$(DL) >> $@
438 endif
439 @echo $(DL)#define CARES_SIZEOF_LONG 4$(DL) >> $@
440 @echo $(DL)typedef CARES_TYPEOF_ARES_SOCKLEN_T ares_socklen_t;$(DL) >> $@
441 @echo $(DL)#endif /* __CARES_BUILD_H */$(DL) >> $@
Something went wrong with that request. Please try again.