Block created ares_build.h for NetWare to avoid usage from other platforms.
authorGuenter Knauf <lists@gknw.net>
Sun, 8 Aug 2010 08:26:04 +0000 (10:26 +0200)
committerGuenter Knauf <lists@gknw.net>
Sun, 8 Aug 2010 08:26:04 +0000 (10:26 +0200)
Makefile.netware

index 1eeca1e..043c967 100644 (file)
@@ -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, <daniel@haxx.se>
+COPYR  = Copyright (C) 1996 - 2010, Daniel Stenberg, <daniel@haxx.se>
 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)