'make depend' fix
The gone but still referenced state of amiconf.h broke 'make depend'. Fixing that turns it into a comment in the generated dependencies but that ran into a problem with it being followed by fnamesiz.h instead of being last in the list containing it. So in addition to the depend fix, move #include "fnamesiz.h" from config.h to global.h in order to have it come before amiconf.h.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# depend.awk -- awk script used to construct makefile dependencies
|
||||
# for nethack's source files (`make depend' support for Makefile.src).
|
||||
# $NHDT-Date: 1575916941 2019/12/09 18:42:21 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.10 $
|
||||
# $NHDT-Date: 1610141602 2021/01/08 21:33:22 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.12 $
|
||||
#
|
||||
# usage:
|
||||
# cd src ; nawk -f depend.awk ../include/*.h list-of-.c/.cpp-files
|
||||
@@ -31,6 +31,7 @@ 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/amiconf.h"] = " #../include/amiconf.h"
|
||||
alt_deps["../include/zlib.h"] = " #zlib.h" #comment it out
|
||||
}
|
||||
FNR == 1 { output_dep() #finish previous file
|
||||
|
||||
Reference in New Issue
Block a user