From: George Koehler Date: Fri, 11 Nov 2016 22:06:25 +0000 (-0500) Subject: Don't build mktables.c in the ack binary. X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=7b3f870f6385f60b9cae18241b3ae058f890b986;p=ack.git Don't build mktables.c in the ack binary. It only worked by accident because main() in main.c was found before main() in mktables.c. Also add build dependencies on the local *.h files. --- diff --git a/util/ack/build.lua b/util/ack/build.lua index 4394484b4..cb9b66fd4 100644 --- a/util/ack/build.lua +++ b/util/ack/build.lua @@ -18,12 +18,28 @@ normalrule { cprogram { name = "ack", srcs = { - "./*.c", + "./data.c", + "./files.c", + "./grows.c", + "./list.c", + "./main.c", + "./rmach.c", + "./run.c", + "./scan.c", + "./svars.c", + "./trans.c", + "./util.c", "+tables", }, deps = { "h+emheaders", "h+local", + "./ack.h", + "./data.h", + "./dmach.h", + "./grows.h", + "./list.h", + "./trans.h", } }