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:
parent
7347cc64e4
commit
7b3f870f63
|
@ -18,12 +18,28 @@ normalrule {
|
||||||
cprogram {
|
cprogram {
|
||||||
name = "ack",
|
name = "ack",
|
||||||
srcs = {
|
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",
|
"+tables",
|
||||||
},
|
},
|
||||||
deps = {
|
deps = {
|
||||||
"h+emheaders",
|
"h+emheaders",
|
||||||
"h+local",
|
"h+local",
|
||||||
|
"./ack.h",
|
||||||
|
"./data.h",
|
||||||
|
"./dmach.h",
|
||||||
|
"./grows.h",
|
||||||
|
"./list.h",
|
||||||
|
"./trans.h",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue