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.
This commit is contained in:
George Koehler 2016-11-11 17:06:25 -05:00
parent 7347cc64e4
commit 7b3f870f63

View 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",
}
}