Don't build mktables.c in the ack binary.
authorGeorge Koehler <xkernigh@netscape.net>
Fri, 11 Nov 2016 22:06:25 +0000 (17:06 -0500)
committerGeorge Koehler <xkernigh@netscape.net>
Fri, 11 Nov 2016 22:06:25 +0000 (17:06 -0500)
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.

util/ack/build.lua

index 4394484..cb9b66f 100644 (file)
@@ -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",
        }
 }