From e6b38cdbd24845b2829339e0d5bf2fa0caf144ab Mon Sep 17 00:00:00 2001 From: Guenter Knauf Date: Sun, 8 Aug 2010 10:26:04 +0200 Subject: Block created ares_build.h for NetWare to avoid usage from other platforms. --- Makefile.netware | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Makefile.netware') diff --git a/Makefile.netware b/Makefile.netware index 1eeca1e..043c967 100644 --- a/Makefile.netware +++ b/Makefile.netware @@ -20,7 +20,7 @@ endif TARGETS = adig.nlm ahost.nlm acountry.nlm LTARGET = libcares.$(LIBEXT) VERSION = $(LIBCARES_VERSION) -COPYR = Copyright (C) 1996 - 2008, Daniel Stenberg, +COPYR = Copyright (C) 1996 - 2010, Daniel Stenberg, DESCR = cURL $(subst .def,,$(notdir $@)) $(LIBCARES_VERSION_STR) - http://curl.haxx.se MTSAFE = YES STACK = 64000 @@ -142,7 +142,7 @@ ifeq ($(MTSAFE),NO) XDCOPT = -u endif -ifeq ($(findstring linux,$(OSTYPE)),linux) +ifeq ($(findstring /sh,$(SHELL)),/sh) DL = ' #-include $(NDKBASE)/nlmconv/ncpfs.inc endif @@ -415,6 +415,9 @@ ares_build.h: Makefile.netware FORCE @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 NETWARE$(DL) >> $@ + @echo $(DL)#error This $(notdir $@) is created for NetWare platform!$(DL) >> $@ + @echo $(DL)#endif$(DL) >> $@ @echo $(DL)#ifndef __CARES_BUILD_H$(DL) >> $@ @echo $(DL)#define __CARES_BUILD_H$(DL) >> $@ ifeq ($(LIBARCH),CLIB) -- cgit v1.2.3