11cb0ef41Sopenharmony_ci#################################################################
21cb0ef41Sopenharmony_ci#
31cb0ef41Sopenharmony_ci# Makefile for building libcares (NetWare version - gnu make)
41cb0ef41Sopenharmony_ci# Use: make -f Makefile.netware
51cb0ef41Sopenharmony_ci#
61cb0ef41Sopenharmony_ci# Copyright (C) Guenter Knauf
71cb0ef41Sopenharmony_ci# SPDX-License-Identifier: MIT
81cb0ef41Sopenharmony_ci#
91cb0ef41Sopenharmony_ci#################################################################
101cb0ef41Sopenharmony_ci
111cb0ef41Sopenharmony_ci# Edit the path below to point to the base of your Novell NDK.
121cb0ef41Sopenharmony_ciifndef NDKBASE
131cb0ef41Sopenharmony_ciNDKBASE	= c:/novell
141cb0ef41Sopenharmony_ciendif
151cb0ef41Sopenharmony_ci
161cb0ef41Sopenharmony_ciifndef INSTDIR
171cb0ef41Sopenharmony_ciINSTDIR	= ../ares-$(LIBCARES_VERSION_STR)-bin-nw
181cb0ef41Sopenharmony_ciendif
191cb0ef41Sopenharmony_ci
201cb0ef41Sopenharmony_ci# Edit the vars below to change NLM target settings.
211cb0ef41Sopenharmony_ciTARGETS = adig.nlm ahost.nlm
221cb0ef41Sopenharmony_ciLTARGET = libcares.$(LIBEXT)
231cb0ef41Sopenharmony_ciVERSION	= $(LIBCARES_VERSION)
241cb0ef41Sopenharmony_ciCOPYR	= $(LIBCARES_COPYRIGHT_STR)
251cb0ef41Sopenharmony_ciDESCR	= cURL $(subst .def,,$(notdir $@)) $(LIBCARES_VERSION_STR) - http://curl.haxx.se
261cb0ef41Sopenharmony_ciMTSAFE	= YES
271cb0ef41Sopenharmony_ciSTACK	= 64000
281cb0ef41Sopenharmony_ciSCREEN	= none
291cb0ef41Sopenharmony_ci#EXPORTS	=
301cb0ef41Sopenharmony_ci# Comment the line below if you dont want to load protected automatically.
311cb0ef41Sopenharmony_ci#LDRING	= 3
321cb0ef41Sopenharmony_ci
331cb0ef41Sopenharmony_ci# Edit the var below to point to your lib architecture.
341cb0ef41Sopenharmony_ciifndef LIBARCH
351cb0ef41Sopenharmony_ciLIBARCH = LIBC
361cb0ef41Sopenharmony_ciendif
371cb0ef41Sopenharmony_ci
381cb0ef41Sopenharmony_ci# must be equal to NDEBUG or DEBUG
391cb0ef41Sopenharmony_ciifndef DB
401cb0ef41Sopenharmony_ciDB	= NDEBUG
411cb0ef41Sopenharmony_ciendif
421cb0ef41Sopenharmony_ci# Optimization: -O<n> or debugging: -g
431cb0ef41Sopenharmony_ciifeq ($(DB),NDEBUG)
441cb0ef41Sopenharmony_ci	OPT	= -O2
451cb0ef41Sopenharmony_ci	OBJDIR	= release
461cb0ef41Sopenharmony_cielse
471cb0ef41Sopenharmony_ci	OPT	= -g
481cb0ef41Sopenharmony_ci	OBJDIR	= debug
491cb0ef41Sopenharmony_ciendif
501cb0ef41Sopenharmony_ci
511cb0ef41Sopenharmony_ci# Include the version info retrieved from curlver.h
521cb0ef41Sopenharmony_ci-include $(OBJDIR)/version.inc
531cb0ef41Sopenharmony_ci
541cb0ef41Sopenharmony_ci# The following lines defines your compiler.
551cb0ef41Sopenharmony_ciifdef CWFolder
561cb0ef41Sopenharmony_ci	METROWERKS = $(CWFolder)
571cb0ef41Sopenharmony_ciendif
581cb0ef41Sopenharmony_ciifdef METROWERKS
591cb0ef41Sopenharmony_ci	# MWCW_PATH = $(subst \,/,$(METROWERKS))/Novell Support
601cb0ef41Sopenharmony_ci	MWCW_PATH = $(subst \,/,$(METROWERKS))/Novell Support/Metrowerks Support
611cb0ef41Sopenharmony_ci	CC = mwccnlm
621cb0ef41Sopenharmony_cielse
631cb0ef41Sopenharmony_ci	CC = gcc
641cb0ef41Sopenharmony_ciendif
651cb0ef41Sopenharmony_ci# a native win32 awk can be downloaded from here:
661cb0ef41Sopenharmony_ci# http://www.gknw.net/development/prgtools/awk-20070501.zip
671cb0ef41Sopenharmony_ciAWK	= awk
681cb0ef41Sopenharmony_ciYACC	= bison -y
691cb0ef41Sopenharmony_ciCP	= cp -afv
701cb0ef41Sopenharmony_ciMKDIR	= mkdir
711cb0ef41Sopenharmony_ci# RM	= rm -f
721cb0ef41Sopenharmony_ci# if you want to mark the target as MTSAFE you will need a tool for
731cb0ef41Sopenharmony_ci# generating the xdc data for the linker; here's a minimal tool:
741cb0ef41Sopenharmony_ci# http://www.gknw.net/development/prgtools/mkxdc.zip
751cb0ef41Sopenharmony_ciMPKXDC	= mkxdc
761cb0ef41Sopenharmony_ci
771cb0ef41Sopenharmony_ci# Global flags for all compilers
781cb0ef41Sopenharmony_ciCFLAGS	+= $(OPT) -D$(DB) -DNETWARE -DHAVE_CONFIG_H -nostdinc
791cb0ef41Sopenharmony_ci
801cb0ef41Sopenharmony_ciifeq ($(CC),mwccnlm)
811cb0ef41Sopenharmony_ciLD	= mwldnlm
821cb0ef41Sopenharmony_ciLDFLAGS	= -nostdlib $(PRELUDE) $(OBJEXE) $(<:.def=.o) -o $@ -commandfile
831cb0ef41Sopenharmony_ciAR	= mwldnlm
841cb0ef41Sopenharmony_ciARFLAGS	= -nostdlib -type library -o
851cb0ef41Sopenharmony_ciLIBEXT	= lib
861cb0ef41Sopenharmony_ci#RANLIB	=
871cb0ef41Sopenharmony_ciCFLAGS	+= -msgstyle gcc -gccinc -inline off -opt nointrinsics -proc 586
881cb0ef41Sopenharmony_ciCFLAGS	+= -relax_pointers
891cb0ef41Sopenharmony_ci#CFLAGS	+= -w on
901cb0ef41Sopenharmony_ciifeq ($(LIBARCH),LIBC)
911cb0ef41Sopenharmony_ci	PRELUDE = $(SDK_LIBC)/imports/libcpre.o
921cb0ef41Sopenharmony_ci	CFLAGS += -align 4
931cb0ef41Sopenharmony_cielse
941cb0ef41Sopenharmony_ci	# PRELUDE = $(SDK_CLIB)/imports/clibpre.o
951cb0ef41Sopenharmony_ci	# to avoid the __init_* / __deinit_* whose dont use prelude from NDK
961cb0ef41Sopenharmony_ci	PRELUDE = "$(MWCW_PATH)/libraries/runtime/prelude.obj"
971cb0ef41Sopenharmony_ci	# CFLAGS += -include "$(MWCW_PATH)/headers/nlm_clib_prefix.h"
981cb0ef41Sopenharmony_ci	CFLAGS += -align 1
991cb0ef41Sopenharmony_ciendif
1001cb0ef41Sopenharmony_cielse
1011cb0ef41Sopenharmony_ciLD	= nlmconv
1021cb0ef41Sopenharmony_ciLDFLAGS	= -T
1031cb0ef41Sopenharmony_ciAR	= ar
1041cb0ef41Sopenharmony_ciARFLAGS	= -cq
1051cb0ef41Sopenharmony_ciLIBEXT	= a
1061cb0ef41Sopenharmony_ciRANLIB	= ranlib
1071cb0ef41Sopenharmony_ciCFLAGS  += -m32
1081cb0ef41Sopenharmony_ciCFLAGS  += -fno-builtin -fno-strict-aliasing
1091cb0ef41Sopenharmony_ciifeq ($(findstring gcc,$(CC)),gcc)
1101cb0ef41Sopenharmony_ciCFLAGS  += -fpcc-struct-return
1111cb0ef41Sopenharmony_ciendif
1121cb0ef41Sopenharmony_ciCFLAGS  += -Wall # -pedantic
1131cb0ef41Sopenharmony_ciifeq ($(LIBARCH),LIBC)
1141cb0ef41Sopenharmony_ci	PRELUDE = $(SDK_LIBC)/imports/libcpre.gcc.o
1151cb0ef41Sopenharmony_cielse
1161cb0ef41Sopenharmony_ci	# PRELUDE = $(SDK_CLIB)/imports/clibpre.gcc.o
1171cb0ef41Sopenharmony_ci	# to avoid the __init_* / __deinit_* whose dont use prelude from NDK
1181cb0ef41Sopenharmony_ci	# http://www.gknw.net/development/mk_nlm/gcc_pre.zip
1191cb0ef41Sopenharmony_ci	PRELUDE = $(NDK_ROOT)/pre/prelude.o
1201cb0ef41Sopenharmony_ci	CFLAGS += -include $(NDKBASE)/nlmconv/genlm.h
1211cb0ef41Sopenharmony_ciendif
1221cb0ef41Sopenharmony_ciendif
1231cb0ef41Sopenharmony_ci
1241cb0ef41Sopenharmony_ciNDK_ROOT = $(NDKBASE)/ndk
1251cb0ef41Sopenharmony_ciSDK_CLIB = $(NDK_ROOT)/nwsdk
1261cb0ef41Sopenharmony_ciSDK_LIBC = $(NDK_ROOT)/libc
1271cb0ef41Sopenharmony_ci
1281cb0ef41Sopenharmony_ciifeq ($(LIBARCH),LIBC)
1291cb0ef41Sopenharmony_ci	INCLUDES += -I$(SDK_LIBC)/include
1301cb0ef41Sopenharmony_ci	# INCLUDES += -I$(SDK_LIBC)/include/nks
1311cb0ef41Sopenharmony_ci	# INCLUDES += -I$(SDK_LIBC)/include/winsock
1321cb0ef41Sopenharmony_ci	CFLAGS += -D_POSIX_SOURCE
1331cb0ef41Sopenharmony_cielse
1341cb0ef41Sopenharmony_ci	INCLUDES += -I$(SDK_CLIB)/include/nlm
1351cb0ef41Sopenharmony_ci	# INCLUDES += -I$(SDK_CLIB)/include/nlm/obsolete
1361cb0ef41Sopenharmony_ci	# INCLUDES += -I$(SDK_CLIB)/include
1371cb0ef41Sopenharmony_ciendif
1381cb0ef41Sopenharmony_ci
1391cb0ef41Sopenharmony_ciCFLAGS	+= -I. $(INCLUDES)
1401cb0ef41Sopenharmony_ci
1411cb0ef41Sopenharmony_ciifeq ($(MTSAFE),YES)
1421cb0ef41Sopenharmony_ci	XDCOPT = -n
1431cb0ef41Sopenharmony_ciendif
1441cb0ef41Sopenharmony_ciifeq ($(MTSAFE),NO)
1451cb0ef41Sopenharmony_ci	XDCOPT = -u
1461cb0ef41Sopenharmony_ciendif
1471cb0ef41Sopenharmony_ci
1481cb0ef41Sopenharmony_ciifeq ($(findstring /sh,$(SHELL)),/sh)
1491cb0ef41Sopenharmony_ciDL	= '
1501cb0ef41Sopenharmony_ci#-include $(NDKBASE)/nlmconv/ncpfs.inc
1511cb0ef41Sopenharmony_ciendif
1521cb0ef41Sopenharmony_ci
1531cb0ef41Sopenharmony_ci# Makefile.inc provides the CSOURCES and HHEADERS defines
1541cb0ef41Sopenharmony_ciinclude Makefile.inc
1551cb0ef41Sopenharmony_ci
1561cb0ef41Sopenharmony_ciOBJLIB	:= $(patsubst %.c,$(OBJDIR)/%.o,$(strip $(CSOURCES)))
1571cb0ef41Sopenharmony_ciOBJEXE	= $(OBJLIB) $(OBJDIR)/ares_getopt.o
1581cb0ef41Sopenharmony_ci
1591cb0ef41Sopenharmony_ci.PHONY: lib nlm prebuild dist install clean
1601cb0ef41Sopenharmony_ci
1611cb0ef41Sopenharmony_cilib: prebuild $(LTARGET)
1621cb0ef41Sopenharmony_ci
1631cb0ef41Sopenharmony_cinlm: prebuild $(TARGETS)
1641cb0ef41Sopenharmony_ci
1651cb0ef41Sopenharmony_ciprebuild: $(OBJDIR) ares_build.h $(OBJDIR)/version.inc ares_config.h
1661cb0ef41Sopenharmony_ci
1671cb0ef41Sopenharmony_ciinstall: $(INSTDIR) all
1681cb0ef41Sopenharmony_ci	@$(CP) *.nlm $(INSTDIR)
1691cb0ef41Sopenharmony_ci	@$(CP) ../CHANGES $(INSTDIR)
1701cb0ef41Sopenharmony_ci	@$(CP) ../COPYING $(INSTDIR)
1711cb0ef41Sopenharmony_ci	@$(CP) ../README $(INSTDIR)
1721cb0ef41Sopenharmony_ci	@$(CP) ../RELEASE-NOTES $(INSTDIR)
1731cb0ef41Sopenharmony_ci
1741cb0ef41Sopenharmony_ciclean:
1751cb0ef41Sopenharmony_ci	-$(RM) $(LTARGET) $(TARGETS) ares_config.h
1761cb0ef41Sopenharmony_ci	-$(RM) -r $(OBJDIR)
1771cb0ef41Sopenharmony_ci	-$(RM) -r arpa
1781cb0ef41Sopenharmony_ci
1791cb0ef41Sopenharmony_ci%.$(LIBEXT): $(OBJLIB)
1801cb0ef41Sopenharmony_ci	@echo Creating $@
1811cb0ef41Sopenharmony_ci	@-$(RM) $@
1821cb0ef41Sopenharmony_ci	@$(AR) $(ARFLAGS) $@ $^
1831cb0ef41Sopenharmony_ciifdef RANLIB
1841cb0ef41Sopenharmony_ci	@$(RANLIB) $@
1851cb0ef41Sopenharmony_ciendif
1861cb0ef41Sopenharmony_ci
1871cb0ef41Sopenharmony_ci%.nlm: $(OBJDIR)/%.def $(OBJDIR)/%.o $(OBJDIR)/%.xdc $(OBJEXE)
1881cb0ef41Sopenharmony_ci	@echo Linking $@
1891cb0ef41Sopenharmony_ci	@-$(RM) $@
1901cb0ef41Sopenharmony_ci	@$(LD) $(LDFLAGS) $<
1911cb0ef41Sopenharmony_ci
1921cb0ef41Sopenharmony_ci$(OBJDIR) $(INSTDIR):
1931cb0ef41Sopenharmony_ci	@$(MKDIR) $@
1941cb0ef41Sopenharmony_ci
1951cb0ef41Sopenharmony_ci$(OBJDIR)/%.o: %.c
1961cb0ef41Sopenharmony_ci#	@echo Compiling $<
1971cb0ef41Sopenharmony_ci	$(CC) $(CFLAGS) -c $< -o $@
1981cb0ef41Sopenharmony_ci
1991cb0ef41Sopenharmony_ci$(OBJDIR)/version.inc: ares_version.h $(OBJDIR)
2001cb0ef41Sopenharmony_ci	@echo Creating $@
2011cb0ef41Sopenharmony_ci	@$(AWK) -f get_ver.awk $< > $@
2021cb0ef41Sopenharmony_ci
2031cb0ef41Sopenharmony_ci$(OBJDIR)/%.xdc: Makefile.netware
2041cb0ef41Sopenharmony_ci	@echo Creating $@
2051cb0ef41Sopenharmony_ci	@$(MPKXDC) $(XDCOPT) $@
2061cb0ef41Sopenharmony_ci
2071cb0ef41Sopenharmony_ci$(OBJDIR)/%.def: Makefile.netware
2081cb0ef41Sopenharmony_ci	@echo Creating $@
2091cb0ef41Sopenharmony_ci	@echo $(DL)# DEF file for linking with $(LD)$(DL) > $@
2101cb0ef41Sopenharmony_ci	@echo $(DL)# Do not edit this file - it is created by make!$(DL) >> $@
2111cb0ef41Sopenharmony_ci	@echo $(DL)# All your changes will be lost!!$(DL) >> $@
2121cb0ef41Sopenharmony_ci	@echo $(DL)#$(DL) >> $@
2131cb0ef41Sopenharmony_ci	@echo $(DL)copyright "$(COPYR)"$(DL) >> $@
2141cb0ef41Sopenharmony_ci	@echo $(DL)description "$(DESCR)"$(DL) >> $@
2151cb0ef41Sopenharmony_ci	@echo $(DL)version $(VERSION)$(DL) >> $@
2161cb0ef41Sopenharmony_ciifdef NLMTYPE
2171cb0ef41Sopenharmony_ci	@echo $(DL)type $(NLMTYPE)$(DL) >> $@
2181cb0ef41Sopenharmony_ciendif
2191cb0ef41Sopenharmony_ciifdef STACK
2201cb0ef41Sopenharmony_ci	@echo $(DL)stack $(STACK)$(DL) >> $@
2211cb0ef41Sopenharmony_ciendif
2221cb0ef41Sopenharmony_ciifdef SCREEN
2231cb0ef41Sopenharmony_ci	@echo $(DL)screenname "$(SCREEN)"$(DL) >> $@
2241cb0ef41Sopenharmony_cielse
2251cb0ef41Sopenharmony_ci	@echo $(DL)screenname "DEFAULT"$(DL) >> $@
2261cb0ef41Sopenharmony_ciendif
2271cb0ef41Sopenharmony_ciifeq ($(DB),DEBUG)
2281cb0ef41Sopenharmony_ci	@echo $(DL)debug$(DL) >> $@
2291cb0ef41Sopenharmony_ciendif
2301cb0ef41Sopenharmony_ci	@echo $(DL)threadname "$^"$(DL) >> $@
2311cb0ef41Sopenharmony_ciifdef XDCOPT
2321cb0ef41Sopenharmony_ci	@echo $(DL)xdcdata $(@:.def=.xdc)$(DL) >> $@
2331cb0ef41Sopenharmony_ciendif
2341cb0ef41Sopenharmony_ciifeq ($(LDRING),0)
2351cb0ef41Sopenharmony_ci	@echo $(DL)flag_on 16$(DL) >> $@
2361cb0ef41Sopenharmony_ciendif
2371cb0ef41Sopenharmony_ciifeq ($(LDRING),3)
2381cb0ef41Sopenharmony_ci	@echo $(DL)flag_on 512$(DL) >> $@
2391cb0ef41Sopenharmony_ciendif
2401cb0ef41Sopenharmony_ciifeq ($(LIBARCH),CLIB)
2411cb0ef41Sopenharmony_ci	@echo $(DL)start _Prelude$(DL) >> $@
2421cb0ef41Sopenharmony_ci	@echo $(DL)exit _Stop$(DL) >> $@
2431cb0ef41Sopenharmony_ci	@echo $(DL)import @$(SDK_CLIB)/imports/clib.imp$(DL) >> $@
2441cb0ef41Sopenharmony_ci	@echo $(DL)import @$(SDK_CLIB)/imports/threads.imp$(DL) >> $@
2451cb0ef41Sopenharmony_ci	@echo $(DL)import @$(SDK_CLIB)/imports/nlmlib.imp$(DL) >> $@
2461cb0ef41Sopenharmony_ci	@echo $(DL)import @$(SDK_CLIB)/imports/socklib.imp$(DL) >> $@
2471cb0ef41Sopenharmony_ci	@echo $(DL)module clib$(DL) >> $@
2481cb0ef41Sopenharmony_cielse
2491cb0ef41Sopenharmony_ci	@echo $(DL)flag_on 64$(DL) >> $@
2501cb0ef41Sopenharmony_ci	@echo $(DL)pseudopreemption$(DL) >> $@
2511cb0ef41Sopenharmony_ci	@echo $(DL)start _LibCPrelude$(DL) >> $@
2521cb0ef41Sopenharmony_ci	@echo $(DL)exit _LibCPostlude$(DL) >> $@
2531cb0ef41Sopenharmony_ci	@echo $(DL)check _LibCCheckUnload$(DL) >> $@
2541cb0ef41Sopenharmony_ci	@echo $(DL)import @$(SDK_LIBC)/imports/libc.imp$(DL) >> $@
2551cb0ef41Sopenharmony_ci	@echo $(DL)import @$(SDK_LIBC)/imports/netware.imp$(DL) >> $@
2561cb0ef41Sopenharmony_ci	@echo $(DL)module libc$(DL) >> $@
2571cb0ef41Sopenharmony_ciendif
2581cb0ef41Sopenharmony_ciifdef MODULES
2591cb0ef41Sopenharmony_ci	@echo $(DL)module $(MODULES)$(DL) >> $@
2601cb0ef41Sopenharmony_ciendif
2611cb0ef41Sopenharmony_ciifdef EXPORTS
2621cb0ef41Sopenharmony_ci	@echo $(DL)export $(EXPORTS)$(DL) >> $@
2631cb0ef41Sopenharmony_ciendif
2641cb0ef41Sopenharmony_ciifdef IMPORTS
2651cb0ef41Sopenharmony_ci	@echo $(DL)import $(IMPORTS)$(DL) >> $@
2661cb0ef41Sopenharmony_ciendif
2671cb0ef41Sopenharmony_ciifeq ($(LD),nlmconv)
2681cb0ef41Sopenharmony_ci	@echo $(DL)input $(PRELUDE)$(DL) >> $@
2691cb0ef41Sopenharmony_ci	@echo $(DL)input $(OBJEXE)$(DL) >> $@
2701cb0ef41Sopenharmony_ci	@echo $(DL)input $(@:.def=.o)$(DL) >> $@
2711cb0ef41Sopenharmony_ci	@echo $(DL)output $(notdir $(@:.def=.nlm))$(DL) >> $@
2721cb0ef41Sopenharmony_ciendif
2731cb0ef41Sopenharmony_ci
2741cb0ef41Sopenharmony_ciares_config.h: Makefile.netware
2751cb0ef41Sopenharmony_ci	@echo Creating $@
2761cb0ef41Sopenharmony_ci	@echo $(DL)/* $@ for NetWare target.$(DL) > $@
2771cb0ef41Sopenharmony_ci	@echo $(DL)** Do not edit this file - it is created by make!$(DL) >> $@
2781cb0ef41Sopenharmony_ci	@echo $(DL)** All your changes will be lost!!$(DL) >> $@
2791cb0ef41Sopenharmony_ci	@echo $(DL)*/$(DL) >> $@
2801cb0ef41Sopenharmony_ci	@echo $(DL)#ifndef NETWARE$(DL) >> $@
2811cb0ef41Sopenharmony_ci	@echo $(DL)#error This $(notdir $@) is created for NetWare platform!$(DL) >> $@
2821cb0ef41Sopenharmony_ci	@echo $(DL)#endif$(DL) >> $@
2831cb0ef41Sopenharmony_ci	@echo $(DL)#define VERSION "$(LIBCARES_VERSION_STR)"$(DL) >> $@
2841cb0ef41Sopenharmony_ci	@echo $(DL)#define PACKAGE_BUGREPORT "a suitable curl mailing list => http://curl.haxx.se/mail/"$(DL) >> $@
2851cb0ef41Sopenharmony_ciifeq ($(LIBARCH),CLIB)
2861cb0ef41Sopenharmony_ci	@echo $(DL)#define OS "i586-pc-clib-NetWare"$(DL) >> $@
2871cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_STRICMP 1$(DL) >> $@
2881cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_STRNICMP 1$(DL) >> $@
2891cb0ef41Sopenharmony_ci	@echo $(DL)#define NETDB_USE_INTERNET 1$(DL) >> $@
2901cb0ef41Sopenharmony_ci	@echo $(DL)#define RECV_TYPE_ARG1 int$(DL) >> $@
2911cb0ef41Sopenharmony_ci	@echo $(DL)#define RECV_TYPE_ARG2 char *$(DL) >> $@
2921cb0ef41Sopenharmony_ci	@echo $(DL)#define RECV_TYPE_ARG3 int$(DL) >> $@
2931cb0ef41Sopenharmony_ci	@echo $(DL)#define RECV_TYPE_ARG4 int$(DL) >> $@
2941cb0ef41Sopenharmony_ci	@echo $(DL)#define RECV_TYPE_RETV int$(DL) >> $@
2951cb0ef41Sopenharmony_ci	@echo $(DL)#define RECVFROM_TYPE_ARG1 int$(DL) >> $@
2961cb0ef41Sopenharmony_ci	@echo $(DL)#define RECVFROM_TYPE_ARG2 char$(DL) >> $@
2971cb0ef41Sopenharmony_ci	@echo $(DL)#define RECVFROM_TYPE_ARG3 int$(DL) >> $@
2981cb0ef41Sopenharmony_ci	@echo $(DL)#define RECVFROM_TYPE_ARG4 int$(DL) >> $@
2991cb0ef41Sopenharmony_ci	@echo $(DL)#define RECVFROM_TYPE_ARG5 struct sockaddr$(DL) >> $@
3001cb0ef41Sopenharmony_ci	@echo $(DL)#define RECVFROM_TYPE_ARG6 int$(DL) >> $@
3011cb0ef41Sopenharmony_ci	@echo $(DL)#define RECVFROM_TYPE_RETV int$(DL) >> $@
3021cb0ef41Sopenharmony_ci	@echo $(DL)#define SEND_QUAL_ARG2$(DL) >> $@
3031cb0ef41Sopenharmony_ci	@echo $(DL)#define SEND_TYPE_ARG1 int$(DL) >> $@
3041cb0ef41Sopenharmony_ci	@echo $(DL)#define SEND_TYPE_ARG2 char *$(DL) >> $@
3051cb0ef41Sopenharmony_ci	@echo $(DL)#define SEND_TYPE_ARG3 int$(DL) >> $@
3061cb0ef41Sopenharmony_ci	@echo $(DL)#define SEND_TYPE_ARG4 int$(DL) >> $@
3071cb0ef41Sopenharmony_ci	@echo $(DL)#define SEND_TYPE_RETV int$(DL) >> $@
3081cb0ef41Sopenharmony_cielse
3091cb0ef41Sopenharmony_ci	@echo $(DL)#define OS "i586-pc-libc-NetWare"$(DL) >> $@
3101cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_DLFCN_H 1$(DL) >> $@
3111cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_DLOPEN 1$(DL) >> $@
3121cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_FTRUNCATE 1$(DL) >> $@
3131cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_GETTIMEOFDAY 1$(DL) >> $@
3141cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_INTTYPES_H 1$(DL) >> $@
3151cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_LONGLONG 1$(DL) >> $@
3161cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_STDINT_H 1$(DL) >> $@
3171cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_STRCASECMP 1$(DL) >> $@
3181cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_STRLCAT 1$(DL) >> $@
3191cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_STRLCPY 1$(DL) >> $@
3201cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_STRTOLL 1$(DL) >> $@
3211cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_SYS_PARAM_H 1$(DL) >> $@
3221cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_SYS_SELECT_H 1$(DL) >> $@
3231cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_TERMIOS_H 1$(DL) >> $@
3241cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_AF_INET6 1$(DL) >> $@
3251cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_PF_INET6 1$(DL) >> $@
3261cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_FREEADDRINFO 1$(DL) >> $@
3271cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_GETADDRINFO 1$(DL) >> $@
3281cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1$(DL) >> $@
3291cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_STRUCT_IN6_ADDR 1$(DL) >> $@
3301cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_STRUCT_SOCKADDR_IN6 1$(DL) >> $@
3311cb0ef41Sopenharmony_ci	@echo $(DL)#define RECV_TYPE_ARG1 int$(DL) >> $@
3321cb0ef41Sopenharmony_ci	@echo $(DL)#define RECV_TYPE_ARG2 void *$(DL) >> $@
3331cb0ef41Sopenharmony_ci	@echo $(DL)#define RECV_TYPE_ARG3 size_t$(DL) >> $@
3341cb0ef41Sopenharmony_ci	@echo $(DL)#define RECV_TYPE_ARG4 int$(DL) >> $@
3351cb0ef41Sopenharmony_ci	@echo $(DL)#define RECV_TYPE_RETV ssize_t$(DL) >> $@
3361cb0ef41Sopenharmony_ci	@echo $(DL)#define RECVFROM_TYPE_ARG1 int$(DL) >> $@
3371cb0ef41Sopenharmony_ci	@echo $(DL)#define RECVFROM_TYPE_ARG2 void$(DL) >> $@
3381cb0ef41Sopenharmony_ci	@echo $(DL)#define RECVFROM_TYPE_ARG3 size_t$(DL) >> $@
3391cb0ef41Sopenharmony_ci	@echo $(DL)#define RECVFROM_TYPE_ARG4 int$(DL) >> $@
3401cb0ef41Sopenharmony_ci	@echo $(DL)#define RECVFROM_TYPE_ARG5 struct sockaddr$(DL) >> $@
3411cb0ef41Sopenharmony_ci	@echo $(DL)#define RECVFROM_TYPE_ARG6 size_t$(DL) >> $@
3421cb0ef41Sopenharmony_ci	@echo $(DL)#define RECVFROM_TYPE_RETV ssize_t$(DL) >> $@
3431cb0ef41Sopenharmony_ci	@echo $(DL)#define RECVFROM_TYPE_ARG2_IS_VOID 1$(DL) >> $@
3441cb0ef41Sopenharmony_ci	@echo $(DL)#define SEND_QUAL_ARG2$(DL) >> $@
3451cb0ef41Sopenharmony_ci	@echo $(DL)#define SEND_TYPE_ARG1 int$(DL) >> $@
3461cb0ef41Sopenharmony_ci	@echo $(DL)#define SEND_TYPE_ARG2 void *$(DL) >> $@
3471cb0ef41Sopenharmony_ci	@echo $(DL)#define SEND_TYPE_ARG3 size_t$(DL) >> $@
3481cb0ef41Sopenharmony_ci	@echo $(DL)#define SEND_TYPE_ARG4 int$(DL) >> $@
3491cb0ef41Sopenharmony_ci	@echo $(DL)#define SEND_TYPE_RETV ssize_t$(DL) >> $@
3501cb0ef41Sopenharmony_ciendif
3511cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_ARPA_INET_H 1$(DL) >> $@
3521cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_ASSERT_H 1$(DL) >> $@
3531cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_ERRNO_H 1$(DL) >> $@
3541cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_ERR_H 1$(DL) >> $@
3551cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_FCNTL_H 1$(DL) >> $@
3561cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_GETENV 1$(DL) >> $@
3571cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_GETHOSTBYADDR 1$(DL) >> $@
3581cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_GETHOSTBYNAME 1$(DL) >> $@
3591cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_GETHOSTNAME 1$(DL) >> $@
3601cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_GETPROTOBYNAME 1$(DL) >> $@
3611cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_GMTIME_R 1$(DL) >> $@
3621cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_INET_ADDR 1$(DL) >> $@
3631cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_IOCTL 1$(DL) >> $@
3641cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_IOCTL_FIONBIO 1$(DL) >> $@
3651cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_LIMITS_H 1$(DL) >> $@
3661cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_LL 1$(DL) >> $@
3671cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_LOCALTIME_R 1$(DL) >> $@
3681cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_MALLOC_H 1$(DL) >> $@
3691cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_NETINET_IN_H 1$(DL) >> $@
3701cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_RECV 1$(DL) >> $@
3711cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_RECVFROM 1$(DL) >> $@
3721cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_SELECT 1$(DL) >> $@
3731cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_SEND 1$(DL) >> $@
3741cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_SETJMP_H 1$(DL) >> $@
3751cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_SIGNAL 1$(DL) >> $@
3761cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_SIGNAL_H 1$(DL) >> $@
3771cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_SIG_ATOMIC_T 1$(DL) >> $@
3781cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_SOCKET 1$(DL) >> $@
3791cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_STDLIB_H 1$(DL) >> $@
3801cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_STRDUP 1$(DL) >> $@
3811cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_STRFTIME 1$(DL) >> $@
3821cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_STRING_H 1$(DL) >> $@
3831cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_STRSTR 1$(DL) >> $@
3841cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_STRUCT_ADDRINFO 1$(DL) >> $@
3851cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_STRUCT_TIMEVAL 1$(DL) >> $@
3861cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_SYS_IOCTL_H 1$(DL) >> $@
3871cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_SYS_STAT_H 1$(DL) >> $@
3881cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_SYS_TIME_H 1$(DL) >> $@
3891cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_TIME_H 1$(DL) >> $@
3901cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_UNAME 1$(DL) >> $@
3911cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_UNISTD_H 1$(DL) >> $@
3921cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_UTIME 1$(DL) >> $@
3931cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_UTIME_H 1$(DL) >> $@
3941cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_WRITEV 1$(DL) >> $@
3951cb0ef41Sopenharmony_ci	@echo $(DL)#define RETSIGTYPE void$(DL) >> $@
3961cb0ef41Sopenharmony_ci	@echo $(DL)#define STDC_HEADERS 1$(DL) >> $@
3971cb0ef41Sopenharmony_ci	@echo $(DL)#define TIME_WITH_SYS_TIME 1$(DL) >> $@
3981cb0ef41Sopenharmony_ciifdef NW_WINSOCK
3991cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_CLOSESOCKET 1$(DL) >> $@
4001cb0ef41Sopenharmony_cielse
4011cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_SYS_TYPES_H 1$(DL) >> $@
4021cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_SYS_SOCKET_H 1$(DL) >> $@
4031cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_SYS_SOCKIO_H 1$(DL) >> $@
4041cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_NETDB_H 1$(DL) >> $@
4051cb0ef41Sopenharmony_ciendif
4061cb0ef41Sopenharmony_ci	@echo $(DL)#ifdef __GNUC__$(DL) >> $@
4071cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_VARIADIC_MACROS_GCC 1$(DL) >> $@
4081cb0ef41Sopenharmony_ci	@echo $(DL)#else$(DL) >> $@
4091cb0ef41Sopenharmony_ci	@echo $(DL)#define HAVE_VARIADIC_MACROS_C99 1$(DL) >> $@
4101cb0ef41Sopenharmony_ci	@echo $(DL)#endif$(DL) >> $@
4111cb0ef41Sopenharmony_ci
4121cb0ef41Sopenharmony_ciFORCE: ;
4131cb0ef41Sopenharmony_ci
4141cb0ef41Sopenharmony_ciares_build.h: Makefile.netware FORCE
4151cb0ef41Sopenharmony_ci	@echo Creating $@
4161cb0ef41Sopenharmony_ci	@echo $(DL)/* $@ intended for NetWare target.$(DL) > $@
4171cb0ef41Sopenharmony_ci	@echo $(DL)** Do not edit this file - it is created by make!$(DL) >> $@
4181cb0ef41Sopenharmony_ci	@echo $(DL)** All your changes will be lost!!$(DL) >> $@
4191cb0ef41Sopenharmony_ci	@echo $(DL)*/$(DL) >> $@
4201cb0ef41Sopenharmony_ci	@echo $(DL)#ifndef NETWARE$(DL) >> $@
4211cb0ef41Sopenharmony_ci	@echo $(DL)#error This $(notdir $@) is created for NetWare platform!$(DL) >> $@
4221cb0ef41Sopenharmony_ci	@echo $(DL)#endif$(DL) >> $@
4231cb0ef41Sopenharmony_ci	@echo $(DL)#ifndef __CARES_BUILD_H$(DL) >> $@
4241cb0ef41Sopenharmony_ci	@echo $(DL)#define __CARES_BUILD_H$(DL) >> $@
4251cb0ef41Sopenharmony_ciifeq ($(LIBARCH),CLIB)
4261cb0ef41Sopenharmony_ci	@echo $(DL)#define CARES_TYPEOF_ARES_SOCKLEN_T int$(DL) >> $@
4271cb0ef41Sopenharmony_cielse
4281cb0ef41Sopenharmony_ci	@echo $(DL)#define CARES_TYPEOF_ARES_SOCKLEN_T unsigned int$(DL) >> $@
4291cb0ef41Sopenharmony_ciendif
4301cb0ef41Sopenharmony_ci	@echo $(DL)typedef CARES_TYPEOF_ARES_SOCKLEN_T ares_socklen_t;$(DL) >> $@
4311cb0ef41Sopenharmony_ci	@echo $(DL)#endif /* __CARES_BUILD_H */$(DL) >> $@
432