summaryrefslogtreecommitdiff
path: root/Makefile.netware
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-04-29 00:17:40 +0000
committerYang Tse <yangsita@gmail.com>2009-04-29 00:17:40 +0000
commit6f1b99c6352f46bc79484962a6292ffc1bd0ab14 (patch)
tree0af0e52dbfdf377102f892361bc026cc84ee6c49 /Makefile.netware
parent5fc305a0bad1ca0685a0c434ad74129147c28d30 (diff)
downloadc-ares-6f1b99c6352f46bc79484962a6292ffc1bd0ab14.tar.gz
c-ares-6f1b99c6352f46bc79484962a6292ffc1bd0ab14.tar.bz2
c-ares-6f1b99c6352f46bc79484962a6292ffc1bd0ab14.zip
ares_build.h NetWare attempt
Diffstat (limited to 'Makefile.netware')
-rw-r--r--Makefile.netware20
1 files changed, 19 insertions, 1 deletions
diff --git a/Makefile.netware b/Makefile.netware
index 2215dda..0f01e24 100644
--- a/Makefile.netware
+++ b/Makefile.netware
@@ -160,7 +160,7 @@ lib: prebuild $(LTARGET)
nlm: prebuild $(TARGETS)
-prebuild: $(OBJDIR) $(OBJDIR)/version.inc config.h
+prebuild: $(OBJDIR) ares_build.h $(OBJDIR)/version.inc config.h
install: $(INSTDIR) all
@$(CP) *.nlm $(INSTDIR)
@@ -411,3 +411,21 @@ ifdef OLD_NOVELLSDK
@echo $(DL)#define socklen_t int$(DL) >> $@
endif
+ares_build.h: Makefile.netware FORCE
+ @echo Creating $@
+ @echo $(DL)/* $@ intended for NetWare target.$(DL) > $@
+ @echo $(DL)** Do not edit this file - it is created by make!$(DL) >> $@
+ @echo $(DL)** All your changes will be lost!!$(DL) >> $@
+ @echo $(DL)*/$(DL) >> $@
+ @echo $(DL)#ifndef __CARES_BUILD_H$(DL) >> $@
+ @echo $(DL)#define __CARES_BUILD_H$(DL) >> $@
+ifeq ($(LIBARCH),CLIB)
+ @echo $(DL)#define CARES_TYPEOF_ARES_SOCKLEN_T int$(DL) >> $@
+ @echo $(DL)#define CARES_SIZEOF_ARES_SOCKLEN_T 4$(DL) >> $@
+else
+ @echo $(DL)#define CARES_TYPEOF_ARES_SOCKLEN_T socklen_t$(DL) >> $@
+ @echo $(DL)#define CARES_SIZEOF_ARES_SOCKLEN_T 4$(DL) >> $@
+endif
+ @echo $(DL)#define CARES_SIZEOF_LONG 4$(DL) >> $@
+ @echo $(DL)typedef CARES_TYPEOF_ARES_SOCKLEN_T ares_socklen_t;$(DL) >> $@
+ @echo $(DL)#endif /* __CARES_BUILD_H */$(DL) >> $@