2006-07-20 23:24:28 +00:00
|
|
|
-- $Source$
|
|
|
|
-- $State$
|
|
|
|
|
|
|
|
local d = ROOTDIR.."util/cgg/"
|
|
|
|
|
|
|
|
local yacc_bootgram = yacc {
|
|
|
|
file (d.."bootgram.y")
|
|
|
|
}
|
|
|
|
|
|
|
|
tool_cgg = cprogram {
|
|
|
|
cfile (d.."main.c"),
|
|
|
|
|
|
|
|
cfile {
|
2006-10-15 00:28:12 +00:00
|
|
|
CINCLUDES = {PARENT, d},
|
2006-07-20 23:24:28 +00:00
|
|
|
yacc_bootgram,
|
|
|
|
},
|
|
|
|
|
|
|
|
cfile {
|
2006-10-15 00:28:12 +00:00
|
|
|
CINCLUDES = {PARENT, d},
|
2006-07-20 23:24:28 +00:00
|
|
|
flex {
|
|
|
|
file (d.."bootlex.l")
|
|
|
|
},
|
|
|
|
|
|
|
|
dynamicheaders = yacc_bootgram
|
|
|
|
},
|
|
|
|
|
2006-10-15 00:28:12 +00:00
|
|
|
CLIBRARIES = {PARENT, "fl"},
|
2006-07-20 23:24:28 +00:00
|
|
|
lib_em_data,
|
|
|
|
lib_assert,
|
|
|
|
lib_system,
|
|
|
|
|
|
|
|
install = pm.install(TOOLDIR.."cgg")
|
|
|
|
}
|
|
|
|
|
|
|
|
cgg = simple {
|
|
|
|
class = "cgg",
|
|
|
|
|
|
|
|
outputs = {"%U%/tables.c", "%U%/tables.h"},
|
|
|
|
command = {
|
2006-07-22 20:58:27 +00:00
|
|
|
"cd %out[1]:dirname% && (%BINDIR%%PLATDEP%/cpp -P -I%CGGINCLUDEDIR% %in% | %TOOLDIR%cgg)",
|
2006-07-20 23:24:28 +00:00
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
-- Revision history
|
|
|
|
-- $Log$
|
2006-10-15 00:28:12 +00:00
|
|
|
-- Revision 1.3 2006-10-15 00:28:12 dtrg
|
|
|
|
-- Updated to the version 0.1 of Prime Mover (which involves some syntax changes).
|
|
|
|
--
|
|
|
|
-- Revision 1.2 2006/07/22 20:58:27 dtrg
|
2006-07-22 20:58:27 +00:00
|
|
|
-- cpp now gets installed in the right place.
|
|
|
|
--
|
|
|
|
-- Revision 1.1 2006/07/20 23:21:17 dtrg
|
2006-07-20 23:24:28 +00:00
|
|
|
-- First version in CVS.
|
|
|
|
--
|