ack/util/cgg/pmfile

52 lines
824 B
Plaintext

-- $Source$
-- $State$
local d = ROOTDIR.."util/cgg/"
local yacc_bootgram = yacc {
file (d.."bootgram.y")
}
tool_cgg = cprogram {
cfile (d.."main.c"),
cfile {
CEXTRAFLAGS = "-I"..d,
yacc_bootgram,
},
cfile {
CEXTRAFLAGS = "-I"..d,
flex {
file (d.."bootlex.l")
},
dynamicheaders = yacc_bootgram
},
CLIBRARIES = {"-lfl"},
lib_em_data,
lib_assert,
lib_system,
install = pm.install(TOOLDIR.."cgg")
}
cgg = simple {
class = "cgg",
outputs = {"%U%/tables.c", "%U%/tables.h"},
command = {
"cd %out[1]:dirname% && (%BINDIR%%PLATDEP%/cpp -P -I%CGGINCLUDEDIR% %in% | %TOOLDIR%cgg)",
},
}
-- Revision history
-- $Log$
-- Revision 1.2 2006-07-22 20:58:27 dtrg
-- cpp now gets installed in the right place.
--
-- Revision 1.1 2006/07/20 23:21:17 dtrg
-- First version in CVS.
--