lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | ################################################################# |
| 2 | # |
| 3 | ## Makefile for building libcares (NetWare version - gnu make) |
| 4 | ## Use: make -f Makefile.netware |
| 5 | ## |
| 6 | ## Comments to: Guenter Knauf http://www.gknw.de/phpbb |
| 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 |
| 16 | INSTDIR = ../ares-$(LIBCARES_VERSION_STR)-bin-nw |
| 17 | endif |
| 18 | |
| 19 | # Edit the vars below to change NLM target settings. |
| 20 | TARGETS = adig.nlm ahost.nlm acountry.nlm |
| 21 | LTARGET = libcares.$(LIBEXT) |
| 22 | VERSION = $(LIBCARES_VERSION) |
| 23 | COPYR = $(LIBCARES_COPYRIGHT_STR) |
| 24 | DESCR = cURL $(subst .def,,$(notdir $@)) $(LIBCARES_VERSION_STR) - http://curl.haxx.se |
| 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 | |
| 37 | # must be equal to NDEBUG or DEBUG, CURLDEBUG |
| 38 | ifndef DB |
| 39 | DB = NDEBUG |
| 40 | endif |
| 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 | |
| 53 | # The following lines defines your compiler. |
| 54 | ifdef CWFolder |
| 55 | METROWERKS = $(CWFolder) |
| 56 | endif |
| 57 | ifdef METROWERKS |
| 58 | # MWCW_PATH = $(subst \,/,$(METROWERKS))/Novell Support |
| 59 | MWCW_PATH = $(subst \,/,$(METROWERKS))/Novell Support/Metrowerks Support |
| 60 | CC = mwccnlm |
| 61 | else |
| 62 | CC = gcc |
| 63 | endif |
| 64 | # a native win32 awk can be downloaded from here: |
| 65 | # http://www.gknw.net/development/prgtools/awk-20070501.zip |
| 66 | AWK = awk |
| 67 | YACC = bison -y |
| 68 | CP = cp -afv |
| 69 | MKDIR = mkdir |
| 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: |
| 73 | # http://www.gknw.net/development/prgtools/mkxdc.zip |
| 74 | MPKXDC = mkxdc |
| 75 | |
| 76 | # Global flags for all compilers |
| 77 | CFLAGS += $(OPT) -D$(DB) -DNETWARE -DHAVE_CONFIG_H -nostdinc |
| 78 | |
| 79 | ifeq ($(CC),mwccnlm) |
| 80 | LD = mwldnlm |
| 81 | LDFLAGS = -nostdlib $(PRELUDE) $(OBJEXE) $(<:.def=.o) -o $@ -commandfile |
| 82 | AR = mwldnlm |
| 83 | ARFLAGS = -nostdlib -type library -o |
| 84 | LIBEXT = lib |
| 85 | #RANLIB = |
| 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 |
| 93 | # PRELUDE = $(SDK_CLIB)/imports/clibpre.o |
| 94 | # to avoid the __init_* / __deinit_* whoes dont use prelude from NDK |
| 95 | PRELUDE = "$(MWCW_PATH)/libraries/runtime/prelude.obj" |
| 96 | # CFLAGS += -include "$(MWCW_PATH)/headers/nlm_clib_prefix.h" |
| 97 | CFLAGS += -align 1 |
| 98 | endif |
| 99 | else |
| 100 | LD = nlmconv |
| 101 | LDFLAGS = -T |
| 102 | AR = ar |
| 103 | ARFLAGS = -cq |
| 104 | LIBEXT = a |
| 105 | RANLIB = ranlib |
| 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 |
| 112 | ifeq ($(LIBARCH),LIBC) |
| 113 | PRELUDE = $(SDK_LIBC)/imports/libcpre.gcc.o |
| 114 | else |
| 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 |
| 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) |
| 128 | INCLUDES += -I$(SDK_LIBC)/include |
| 129 | # INCLUDES += -I$(SDK_LIBC)/include/nks |
| 130 | # INCLUDES += -I$(SDK_LIBC)/include/winsock |
| 131 | CFLAGS += -D_POSIX_SOURCE |
| 132 | else |
| 133 | INCLUDES += -I$(SDK_CLIB)/include/nlm |
| 134 | # INCLUDES += -I$(SDK_CLIB)/include/nlm/obsolete |
| 135 | # INCLUDES += -I$(SDK_CLIB)/include |
| 136 | endif |
| 137 | ifeq ($(DB),CURLDEBUG) |
| 138 | INCLUDES += -I../include |
| 139 | endif |
| 140 | CFLAGS += -I. $(INCLUDES) |
| 141 | |
| 142 | ifeq ($(MTSAFE),YES) |
| 143 | XDCOPT = -n |
| 144 | endif |
| 145 | ifeq ($(MTSAFE),NO) |
| 146 | XDCOPT = -u |
| 147 | endif |
| 148 | |
| 149 | ifeq ($(findstring /sh,$(SHELL)),/sh) |
| 150 | DL = ' |
| 151 | #-include $(NDKBASE)/nlmconv/ncpfs.inc |
| 152 | endif |
| 153 | |
| 154 | # Makefile.inc provides the CSOURCES and HHEADERS defines |
| 155 | include Makefile.inc |
| 156 | |
| 157 | OBJLIB := $(patsubst %.c,$(OBJDIR)/%.o,$(strip $(CSOURCES))) |
| 158 | OBJEXE = $(OBJLIB) $(OBJDIR)/ares_getopt.o |
| 159 | |
| 160 | .PHONY: lib nlm prebuild dist install clean |
| 161 | |
| 162 | lib: prebuild $(LTARGET) |
| 163 | |
| 164 | nlm: prebuild $(TARGETS) |
| 165 | |
| 166 | prebuild: $(OBJDIR) ares_build.h $(OBJDIR)/version.inc ares_config.h |
| 167 | |
| 168 | install: $(INSTDIR) all |
| 169 | @$(CP) *.nlm $(INSTDIR) |
| 170 | @$(CP) ../CHANGES $(INSTDIR) |
| 171 | @$(CP) ../COPYING $(INSTDIR) |
| 172 | @$(CP) ../README $(INSTDIR) |
| 173 | @$(CP) ../RELEASE-NOTES $(INSTDIR) |
| 174 | |
| 175 | clean: |
| 176 | -$(RM) $(LTARGET) $(TARGETS) ares_config.h |
| 177 | -$(RM) -r $(OBJDIR) |
| 178 | -$(RM) -r arpa |
| 179 | |
| 180 | %.$(LIBEXT): $(OBJLIB) |
| 181 | @echo Creating $@ |
| 182 | @-$(RM) $@ |
| 183 | @$(AR) $(ARFLAGS) $@ $^ |
| 184 | ifdef RANLIB |
| 185 | @$(RANLIB) $@ |
| 186 | endif |
| 187 | |
| 188 | %.nlm: $(OBJDIR)/%.def $(OBJDIR)/%.o $(OBJDIR)/%.xdc $(OBJEXE) |
| 189 | @echo Linking $@ |
| 190 | @-$(RM) $@ |
| 191 | @$(LD) $(LDFLAGS) $< |
| 192 | |
| 193 | $(OBJDIR) $(INSTDIR): |
| 194 | @$(MKDIR) $@ |
| 195 | |
| 196 | $(OBJDIR)/%.o: %.c |
| 197 | # @echo Compiling $< |
| 198 | $(CC) $(CFLAGS) -c $< -o $@ |
| 199 | |
| 200 | $(OBJDIR)/version.inc: ares_version.h $(OBJDIR) |
| 201 | @echo Creating $@ |
| 202 | @$(AWK) -f get_ver.awk $< > $@ |
| 203 | |
| 204 | $(OBJDIR)/%.xdc: Makefile.netware |
| 205 | @echo Creating $@ |
| 206 | @$(MPKXDC) $(XDCOPT) $@ |
| 207 | |
| 208 | $(OBJDIR)/%.def: Makefile.netware |
| 209 | @echo Creating $@ |
| 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 |
| 231 | @echo $(DL)threadname "$^"$(DL) >> $@ |
| 232 | ifdef XDCOPT |
| 233 | @echo $(DL)xdcdata $(@:.def=.xdc)$(DL) >> $@ |
| 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) >> $@ |
| 270 | @echo $(DL)input $(OBJEXE)$(DL) >> $@ |
| 271 | @echo $(DL)input $(@:.def=.o)$(DL) >> $@ |
| 272 | @echo $(DL)output $(notdir $(@:.def=.nlm))$(DL) >> $@ |
| 273 | endif |
| 274 | |
| 275 | ares_config.h: Makefile.netware |
| 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) >> $@ |
| 281 | @echo $(DL)#ifndef NETWARE$(DL) >> $@ |
| 282 | @echo $(DL)#error This $(notdir $@) is created for NetWare platform!$(DL) >> $@ |
| 283 | @echo $(DL)#endif$(DL) >> $@ |
| 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) >> $@ |
| 286 | ifeq ($(LIBARCH),CLIB) |
| 287 | @echo $(DL)#define OS "i586-pc-clib-NetWare"$(DL) >> $@ |
| 288 | @echo $(DL)#define HAVE_STRICMP 1$(DL) >> $@ |
| 289 | @echo $(DL)#define HAVE_STRNICMP 1$(DL) >> $@ |
| 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) >> $@ |
| 296 | @echo $(DL)#define RECVFROM_TYPE_ARG1 int$(DL) >> $@ |
| 297 | @echo $(DL)#define RECVFROM_TYPE_ARG2 char$(DL) >> $@ |
| 298 | @echo $(DL)#define RECVFROM_TYPE_ARG3 int$(DL) >> $@ |
| 299 | @echo $(DL)#define RECVFROM_TYPE_ARG4 int$(DL) >> $@ |
| 300 | @echo $(DL)#define RECVFROM_TYPE_ARG5 struct sockaddr$(DL) >> $@ |
| 301 | @echo $(DL)#define RECVFROM_TYPE_ARG6 int$(DL) >> $@ |
| 302 | @echo $(DL)#define RECVFROM_TYPE_RETV int$(DL) >> $@ |
| 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) >> $@ |
| 309 | else |
| 310 | @echo $(DL)#define OS "i586-pc-libc-NetWare"$(DL) >> $@ |
| 311 | @echo $(DL)#define HAVE_DLFCN_H 1$(DL) >> $@ |
| 312 | @echo $(DL)#define HAVE_DLOPEN 1$(DL) >> $@ |
| 313 | @echo $(DL)#define HAVE_FTRUNCATE 1$(DL) >> $@ |
| 314 | @echo $(DL)#define HAVE_GETTIMEOFDAY 1$(DL) >> $@ |
| 315 | @echo $(DL)#define HAVE_INTTYPES_H 1$(DL) >> $@ |
| 316 | @echo $(DL)#define HAVE_LONGLONG 1$(DL) >> $@ |
| 317 | @echo $(DL)#define HAVE_STDINT_H 1$(DL) >> $@ |
| 318 | @echo $(DL)#define HAVE_STRCASECMP 1$(DL) >> $@ |
| 319 | @echo $(DL)#define HAVE_STRLCAT 1$(DL) >> $@ |
| 320 | @echo $(DL)#define HAVE_STRLCPY 1$(DL) >> $@ |
| 321 | @echo $(DL)#define HAVE_STRTOLL 1$(DL) >> $@ |
| 322 | @echo $(DL)#define HAVE_SYS_PARAM_H 1$(DL) >> $@ |
| 323 | @echo $(DL)#define HAVE_SYS_SELECT_H 1$(DL) >> $@ |
| 324 | @echo $(DL)#define HAVE_TERMIOS_H 1$(DL) >> $@ |
| 325 | @echo $(DL)#define HAVE_AF_INET6 1$(DL) >> $@ |
| 326 | @echo $(DL)#define HAVE_PF_INET6 1$(DL) >> $@ |
| 327 | @echo $(DL)#define HAVE_FREEADDRINFO 1$(DL) >> $@ |
| 328 | @echo $(DL)#define HAVE_GETADDRINFO 1$(DL) >> $@ |
| 329 | @echo $(DL)#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1$(DL) >> $@ |
| 330 | @echo $(DL)#define HAVE_STRUCT_IN6_ADDR 1$(DL) >> $@ |
| 331 | @echo $(DL)#define HAVE_STRUCT_SOCKADDR_IN6 1$(DL) >> $@ |
| 332 | @echo $(DL)#define RECV_TYPE_ARG1 int$(DL) >> $@ |
| 333 | @echo $(DL)#define RECV_TYPE_ARG2 void *$(DL) >> $@ |
| 334 | @echo $(DL)#define RECV_TYPE_ARG3 size_t$(DL) >> $@ |
| 335 | @echo $(DL)#define RECV_TYPE_ARG4 int$(DL) >> $@ |
| 336 | @echo $(DL)#define RECV_TYPE_RETV ssize_t$(DL) >> $@ |
| 337 | @echo $(DL)#define RECVFROM_TYPE_ARG1 int$(DL) >> $@ |
| 338 | @echo $(DL)#define RECVFROM_TYPE_ARG2 void$(DL) >> $@ |
| 339 | @echo $(DL)#define RECVFROM_TYPE_ARG3 size_t$(DL) >> $@ |
| 340 | @echo $(DL)#define RECVFROM_TYPE_ARG4 int$(DL) >> $@ |
| 341 | @echo $(DL)#define RECVFROM_TYPE_ARG5 struct sockaddr$(DL) >> $@ |
| 342 | @echo $(DL)#define RECVFROM_TYPE_ARG6 size_t$(DL) >> $@ |
| 343 | @echo $(DL)#define RECVFROM_TYPE_RETV ssize_t$(DL) >> $@ |
| 344 | @echo $(DL)#define RECVFROM_TYPE_ARG2_IS_VOID 1$(DL) >> $@ |
| 345 | @echo $(DL)#define SEND_QUAL_ARG2$(DL) >> $@ |
| 346 | @echo $(DL)#define SEND_TYPE_ARG1 int$(DL) >> $@ |
| 347 | @echo $(DL)#define SEND_TYPE_ARG2 void *$(DL) >> $@ |
| 348 | @echo $(DL)#define SEND_TYPE_ARG3 size_t$(DL) >> $@ |
| 349 | @echo $(DL)#define SEND_TYPE_ARG4 int$(DL) >> $@ |
| 350 | @echo $(DL)#define SEND_TYPE_RETV ssize_t$(DL) >> $@ |
| 351 | endif |
| 352 | @echo $(DL)#define HAVE_ARPA_INET_H 1$(DL) >> $@ |
| 353 | @echo $(DL)#define HAVE_ASSERT_H 1$(DL) >> $@ |
| 354 | @echo $(DL)#define HAVE_ERRNO_H 1$(DL) >> $@ |
| 355 | @echo $(DL)#define HAVE_ERR_H 1$(DL) >> $@ |
| 356 | @echo $(DL)#define HAVE_FCNTL_H 1$(DL) >> $@ |
| 357 | @echo $(DL)#define HAVE_GETENV 1$(DL) >> $@ |
| 358 | @echo $(DL)#define HAVE_GETHOSTBYADDR 1$(DL) >> $@ |
| 359 | @echo $(DL)#define HAVE_GETHOSTBYNAME 1$(DL) >> $@ |
| 360 | @echo $(DL)#define HAVE_GETHOSTNAME 1$(DL) >> $@ |
| 361 | @echo $(DL)#define HAVE_GETPROTOBYNAME 1$(DL) >> $@ |
| 362 | @echo $(DL)#define HAVE_GMTIME_R 1$(DL) >> $@ |
| 363 | @echo $(DL)#define HAVE_INET_ADDR 1$(DL) >> $@ |
| 364 | @echo $(DL)#define HAVE_IOCTL 1$(DL) >> $@ |
| 365 | @echo $(DL)#define HAVE_IOCTL_FIONBIO 1$(DL) >> $@ |
| 366 | @echo $(DL)#define HAVE_LIMITS_H 1$(DL) >> $@ |
| 367 | @echo $(DL)#define HAVE_LL 1$(DL) >> $@ |
| 368 | @echo $(DL)#define HAVE_LOCALTIME_R 1$(DL) >> $@ |
| 369 | @echo $(DL)#define HAVE_MALLOC_H 1$(DL) >> $@ |
| 370 | @echo $(DL)#define HAVE_NETINET_IN_H 1$(DL) >> $@ |
| 371 | @echo $(DL)#define HAVE_RECV 1$(DL) >> $@ |
| 372 | @echo $(DL)#define HAVE_RECVFROM 1$(DL) >> $@ |
| 373 | @echo $(DL)#define HAVE_SELECT 1$(DL) >> $@ |
| 374 | @echo $(DL)#define HAVE_SEND 1$(DL) >> $@ |
| 375 | @echo $(DL)#define HAVE_SETJMP_H 1$(DL) >> $@ |
| 376 | @echo $(DL)#define HAVE_SIGNAL 1$(DL) >> $@ |
| 377 | @echo $(DL)#define HAVE_SIGNAL_H 1$(DL) >> $@ |
| 378 | @echo $(DL)#define HAVE_SIG_ATOMIC_T 1$(DL) >> $@ |
| 379 | @echo $(DL)#define HAVE_SOCKET 1$(DL) >> $@ |
| 380 | @echo $(DL)#define HAVE_STDLIB_H 1$(DL) >> $@ |
| 381 | @echo $(DL)#define HAVE_STRDUP 1$(DL) >> $@ |
| 382 | @echo $(DL)#define HAVE_STRFTIME 1$(DL) >> $@ |
| 383 | @echo $(DL)#define HAVE_STRING_H 1$(DL) >> $@ |
| 384 | @echo $(DL)#define HAVE_STRSTR 1$(DL) >> $@ |
| 385 | @echo $(DL)#define HAVE_STRUCT_ADDRINFO 1$(DL) >> $@ |
| 386 | @echo $(DL)#define HAVE_STRUCT_TIMEVAL 1$(DL) >> $@ |
| 387 | @echo $(DL)#define HAVE_SYS_IOCTL_H 1$(DL) >> $@ |
| 388 | @echo $(DL)#define HAVE_SYS_STAT_H 1$(DL) >> $@ |
| 389 | @echo $(DL)#define HAVE_SYS_TIME_H 1$(DL) >> $@ |
| 390 | @echo $(DL)#define HAVE_TIME_H 1$(DL) >> $@ |
| 391 | @echo $(DL)#define HAVE_UNAME 1$(DL) >> $@ |
| 392 | @echo $(DL)#define HAVE_UNISTD_H 1$(DL) >> $@ |
| 393 | @echo $(DL)#define HAVE_UTIME 1$(DL) >> $@ |
| 394 | @echo $(DL)#define HAVE_UTIME_H 1$(DL) >> $@ |
| 395 | @echo $(DL)#define HAVE_WRITEV 1$(DL) >> $@ |
| 396 | @echo $(DL)#define RETSIGTYPE void$(DL) >> $@ |
| 397 | @echo $(DL)#define STDC_HEADERS 1$(DL) >> $@ |
| 398 | @echo $(DL)#define TIME_WITH_SYS_TIME 1$(DL) >> $@ |
| 399 | ifdef NW_WINSOCK |
| 400 | @echo $(DL)#define HAVE_CLOSESOCKET 1$(DL) >> $@ |
| 401 | else |
| 402 | @echo $(DL)#define HAVE_SYS_TYPES_H 1$(DL) >> $@ |
| 403 | @echo $(DL)#define HAVE_SYS_SOCKET_H 1$(DL) >> $@ |
| 404 | @echo $(DL)#define HAVE_SYS_SOCKIO_H 1$(DL) >> $@ |
| 405 | @echo $(DL)#define HAVE_NETDB_H 1$(DL) >> $@ |
| 406 | endif |
| 407 | @echo $(DL)#ifdef __GNUC__$(DL) >> $@ |
| 408 | @echo $(DL)#define HAVE_VARIADIC_MACROS_GCC 1$(DL) >> $@ |
| 409 | @echo $(DL)#else$(DL) >> $@ |
| 410 | @echo $(DL)#define HAVE_VARIADIC_MACROS_C99 1$(DL) >> $@ |
| 411 | @echo $(DL)#endif$(DL) >> $@ |
| 412 | |
| 413 | FORCE: ; |
| 414 | |
| 415 | ares_build.h: Makefile.netware FORCE |
| 416 | @echo Creating $@ |
| 417 | @echo $(DL)/* $@ intended for NetWare target.$(DL) > $@ |
| 418 | @echo $(DL)** Do not edit this file - it is created by make!$(DL) >> $@ |
| 419 | @echo $(DL)** All your changes will be lost!!$(DL) >> $@ |
| 420 | @echo $(DL)*/$(DL) >> $@ |
| 421 | @echo $(DL)#ifndef NETWARE$(DL) >> $@ |
| 422 | @echo $(DL)#error This $(notdir $@) is created for NetWare platform!$(DL) >> $@ |
| 423 | @echo $(DL)#endif$(DL) >> $@ |
| 424 | @echo $(DL)#ifndef __CARES_BUILD_H$(DL) >> $@ |
| 425 | @echo $(DL)#define __CARES_BUILD_H$(DL) >> $@ |
| 426 | ifeq ($(LIBARCH),CLIB) |
| 427 | @echo $(DL)#define CARES_TYPEOF_ARES_SOCKLEN_T int$(DL) >> $@ |
| 428 | else |
| 429 | @echo $(DL)#define CARES_TYPEOF_ARES_SOCKLEN_T unsigned int$(DL) >> $@ |
| 430 | endif |
| 431 | @echo $(DL)typedef CARES_TYPEOF_ARES_SOCKLEN_T ares_socklen_t;$(DL) >> $@ |
| 432 | @echo $(DL)#endif /* __CARES_BUILD_H */$(DL) >> $@ |