From: nethack.rankin Date: Thu, 15 Dec 2005 03:42:52 +0000 (+0000) Subject: depend.awk (trunk only) X-Git-Tag: MOVE2GIT~1184 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0303517e2d966f08a9bab2373e06e85410c8bc2d;p=nethack depend.awk (trunk only) I don't have any way to test this, but zlib.h needs special handling to prevent compilation problems for anyone who doesn't have it. --- diff --git a/sys/unix/depend.awk b/sys/unix/depend.awk index 26a9489a8..47d107325 100644 --- a/sys/unix/depend.awk +++ b/sys/unix/depend.awk @@ -21,6 +21,7 @@ # assumed to be the last #include in the file where it occurs. # win32api.h gets special handling because it only exists for some ports; # it's assumed to be the last #include in the file where it occurs +# zlib.h ditto # BEGIN { FS = "\"" #for `#include "X"', $2 is X special[++sp_cnt] = "../include/config.h" @@ -29,12 +30,13 @@ BEGIN { FS = "\"" #for `#include "X"', $2 is X alt_deps["../include/patchlev.h"] = "" alt_deps["interp.c"] = " #interp.c" #comment it out alt_deps["../include/win32api.h"] = " #../include/win32api.h" + alt_deps["../include/zlib.h"] = " #zlib.h" #comment it out } FNR == 1 { output_dep() #finish previous file file = FILENAME #setup for current file } /^\#[ \t]*include[ \t]+\"/ { #find `#include "X"' - incl = $2; + incl = $2 #[3.4.0: gnomehack headers currently aren't in include] if (incl ~ /\.h$/) { if (incl ~ /^gn/) # gnomehack special case