Added support for the Occam compiler.
authordtrg <none@none>
Wed, 26 Jul 2006 18:23:32 +0000 (18:23 +0000)
committerdtrg <none@none>
Wed, 26 Jul 2006 18:23:32 +0000 (18:23 +0000)
lang/occam/comp/pmfile [new file with mode: 0644]
lang/occam/pmfile [new file with mode: 0644]
pmfile

diff --git a/lang/occam/comp/pmfile b/lang/occam/comp/pmfile
new file mode 100644 (file)
index 0000000..e579f0f
--- /dev/null
@@ -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.
+--
\ No newline at end of file
diff --git a/lang/occam/pmfile b/lang/occam/pmfile
new file mode 100644 (file)
index 0000000..d7dfa0e
--- /dev/null
@@ -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.
+--
\ No newline at end of file
diff --git a/pmfile b/pmfile
index 775d891..43c54be 100644 (file)
--- a/pmfile
+++ b/pmfile
@@ -50,6 +50,7 @@ include "lang/cem/cemcom/pmfile"
 include "lang/cem/cemcom.ansi/pmfile"
 include "lang/pc/pmfile"
 include "lang/m2/pmfile"
+include "lang/occam/pmfile"
 
 include "mach/proto/pmfile"
 include "mach/6500/pmfile"
@@ -111,6 +112,7 @@ default = group {
        lang_cem_cemcom_ansi,
        lang_pc,
        lang_m2,
+       lang_occam,
 
        mach_6500,
        mach_6800,
@@ -163,7 +165,10 @@ configure = simple {
 
 -- Revision history
 -- $Log$
--- Revision 1.9  2006-07-26 17:12:19  dtrg
+-- Revision 1.10  2006-07-26 18:23:32  dtrg
+-- Added support for the Occam compiler.
+--
+-- Revision 1.9  2006/07/26 17:12:19  dtrg
 -- Added support for the Modula-2 compiler.
 --
 -- Revision 1.8  2006/07/22 21:24:41  dtrg