X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/5dc6132d3a8e6e4048698bf1914b486f9cf41e2c..2dc6356a02ebe2e5c0428cefc18e64882d85b4a6:/mkfiles.pl diff --git a/mkfiles.pl b/mkfiles.pl index 30417b28..384a88e6 100755 --- a/mkfiles.pl +++ b/mkfiles.pl @@ -11,7 +11,12 @@ use FileHandle; open IN, "Recipe" or die "unable to open Recipe file\n"; -@incdirs = ("", "unix/", "mac/"); +# HACK: One of the source files in `charset' is auto-generated by +# sbcsgen.pl. We need to generate that _now_, before attempting +# dependency analysis. +eval 'chdir "charset"; require "sbcsgen.pl"; chdir ".."'; + +@incdirs = ("", "charset/", "unix/", "mac/"); $help = ""; # list of newline-free lines of help text %programs = (); # maps prog name + type letter to listref of objects/resources @@ -534,7 +539,7 @@ print "# TOOLPATH = /opt/gcc/bin\n". "CC = \$(TOOLPATH)cc\n". "\n". -&splitline("CFLAGS = -Wall -g -I. -I.. `gtk-config --cflags`")."\n". +&splitline("CFLAGS = -Wall -g -I. -I.. -I../charset `gtk-config --cflags`")."\n". "XLDFLAGS = `gtk-config --libs`\n". "ULDFLAGS =#\n". "INSTALL=install\n",