ack/util/ncgg/pmfile

68 lines
1.3 KiB
Plaintext
Raw Normal View History

2006-07-20 23:24:28 +00:00
-- $Source$
-- $State$
local d = "util/ncgg/"
local ncgg_yacc = yacc {
file (d.."cgg.y")
}
tool_ncgg = cprogram {
cfile (d.."subr.c"),
cfile (d.."main.c"),
cfile (d.."coerc.c"),
cfile (d.."error.c"),
cfile (d.."emlookup.c"),
cfile (d.."expr.c"),
cfile (d.."instruct.c"),
cfile (d.."iocc.c"),
cfile (d.."lookup.c"),
cfile (d.."output.c"),
cfile (d.."set.c"),
cfile (d.."strlookup.c"),
cfile (d.."var.c"),
cfile (d.."hall.c"),
cfile {
CEXTRAFLAGS = "-I"..d,
ncgg_yacc,
dynamicheaders = flex {
file (d.."scan.l")
}
},
cfile {
CEXTRAFLAGS = "-I"..d,
simple {
outputs = {"%U%/enterkeyw.c"},
command = {
"cp %{return posix.dirname(self['in'][3])}%/y.tab.h %{return posix.dirname(self.out[1])}%",
"cd %{return posix.dirname(self.out[1])}% && "..ROOTDIR..d.."cvtkeywords "..ROOTDIR..d.."keywords",
},
file (d.."cvtkeywords"),
file (d.."keywords"),
ncgg_yacc
},
dynamicheaders = ncgg_yacc
},
lib_em_data,
outputs = {"%U%-ncgg"},
install = pm.install(TOOLDIR.."ncgg")
}
ncgg = simple {
class = "ncgg",
outputs = {"%U%/tables.c", "%U%/tables.h"},
command = {
"cd %out[1]:dirname% && (%BINDIR%%PLATDEP%/cpp.ansi -I%NCGGINCLUDEDIR% %in% | %TOOLDIR%ncgg)",
2006-07-20 23:24:28 +00:00
"mv %out[1]:dirname%/tables.H %out[2]%"
},
}