Added support for the Occam compiler.
This commit is contained in:
59
lang/occam/comp/pmfile
Normal file
59
lang/occam/comp/pmfile
Normal file
@@ -0,0 +1,59 @@
|
||||
-- $Source$
|
||||
-- $State$
|
||||
|
||||
local d = ROOTDIR.."lang/occam/comp/"
|
||||
|
||||
local lpars = LLgen {
|
||||
file (d.."occam.g"),
|
||||
}
|
||||
|
||||
local cfile_with_headers = cfile {
|
||||
class = "cfile_with_headers",
|
||||
dynamicheaders = {
|
||||
file (d),
|
||||
lpars
|
||||
}
|
||||
}
|
||||
|
||||
lang_occam_compiler = cprogram {
|
||||
CLIBRARIES = {PARENT, "-lfl"},
|
||||
|
||||
cfile_with_headers (d.."builtin.c"),
|
||||
cfile_with_headers (d.."code.c"),
|
||||
cfile_with_headers (d.."em.c"),
|
||||
cfile_with_headers (d.."expr.c"),
|
||||
cfile_with_headers (d.."keytab.c"),
|
||||
cfile_with_headers (d.."report.c"),
|
||||
cfile_with_headers (d.."symtab.c"),
|
||||
|
||||
foreach {
|
||||
rule = cfile_with_headers,
|
||||
ith { lpars, from=2 }
|
||||
},
|
||||
|
||||
cfile_with_headers {
|
||||
flex (d.."lex.l")
|
||||
},
|
||||
|
||||
lib_em_mes,
|
||||
lib_emk,
|
||||
lib_em_data,
|
||||
-- lib_input,
|
||||
-- lib_assert,
|
||||
lib_alloc,
|
||||
-- lib_flt_arith,
|
||||
lib_print,
|
||||
lib_string,
|
||||
lib_system,
|
||||
|
||||
outputs = {"%U%/em_occam"},
|
||||
install = {
|
||||
pm.install("%BINDIR%%PLATDEP%/em_occam"),
|
||||
}
|
||||
}
|
||||
|
||||
-- Revision history
|
||||
-- $Log$
|
||||
-- Revision 1.1 2006-07-26 18:23:32 dtrg
|
||||
-- Added support for the Occam compiler.
|
||||
--
|
||||
16
lang/occam/pmfile
Normal file
16
lang/occam/pmfile
Normal file
@@ -0,0 +1,16 @@
|
||||
-- $Source$
|
||||
-- $State$
|
||||
|
||||
local d = ROOTDIR.."lang/occam/"
|
||||
|
||||
include (d.."comp/pmfile")
|
||||
|
||||
lang_occam = group {
|
||||
lang_m2_compiler
|
||||
}
|
||||
|
||||
-- Revision history
|
||||
-- $Log$
|
||||
-- Revision 1.1 2006-07-26 18:23:32 dtrg
|
||||
-- Added support for the Occam compiler.
|
||||
--
|
||||
Reference in New Issue
Block a user