diff --git a/lang/basic/pmfile b/lang/basic/pmfile new file mode 100644 index 000000000..fb1768643 --- /dev/null +++ b/lang/basic/pmfile @@ -0,0 +1,16 @@ +-- $Source$ +-- $State$ + +local d = ROOTDIR.."lang/basic/" + +include (d.."src/pmfile") + +lang_basic = group { + lang_basic_compiler +} + +-- Revision history +-- $Log$ +-- Revision 1.1 2006-07-26 23:08:09 dtrg +-- Added support for the Basic compiler. +-- \ No newline at end of file diff --git a/lang/basic/src/pmfile b/lang/basic/src/pmfile new file mode 100644 index 000000000..254f67707 --- /dev/null +++ b/lang/basic/src/pmfile @@ -0,0 +1,64 @@ +-- $Source$ +-- $State$ + +local d = ROOTDIR.."lang/basic/src/" + +local lpars = LLgen { + file (d.."basic.g"), +} + +local tokentab_h = simple { + outputs = {"%U%/token.h"}, + command = { + "cd %out[1]:dirname% && %in[1]% %in[2]%" + }, + + file (d.."maketokentab"), + lpars +} + +local cfile_with_headers = cfile { + class = "cfile_with_headers", + dynamicheaders = { + file (d), + lpars, + tokentab_h + } +} + +lang_basic_compiler = cprogram { + cfile_with_headers (d.."bem.c"), + cfile_with_headers (d.."symbols.c"), + cfile_with_headers (d.."initialize.c"), + cfile_with_headers (d.."compile.c"), + cfile_with_headers (d.."parsepar.c"), + cfile_with_headers (d.."gencode.c"), + cfile_with_headers (d.."util.c"), + cfile_with_headers (d.."graph.c"), + cfile_with_headers (d.."eval.c"), + cfile_with_headers (d.."func.c"), + + foreach { + rule = cfile_with_headers, + ith { lpars, from=2 } + }, + + lib_em_mes, + lib_emk, + lib_em_data, + lib_alloc, + lib_print, + lib_string, + lib_system, + + outputs = {"%U%/em_bem"}, + install = { + pm.install("%BINDIR%%PLATDEP%/em_bem"), + } +} + +-- Revision history +-- $Log$ +-- Revision 1.1 2006-07-26 23:08:09 dtrg +-- Added support for the Basic compiler. +-- \ No newline at end of file diff --git a/pmfile b/pmfile index 43c54be2a..766d59c9e 100644 --- a/pmfile +++ b/pmfile @@ -51,6 +51,7 @@ include "lang/cem/cemcom.ansi/pmfile" include "lang/pc/pmfile" include "lang/m2/pmfile" include "lang/occam/pmfile" +include "lang/basic/pmfile" include "mach/proto/pmfile" include "mach/6500/pmfile" @@ -113,6 +114,7 @@ default = group { lang_pc, lang_m2, lang_occam, + lang_basic, mach_6500, mach_6800, @@ -165,7 +167,10 @@ configure = simple { -- Revision history -- $Log$ --- Revision 1.10 2006-07-26 18:23:32 dtrg +-- Revision 1.11 2006-07-26 23:08:09 dtrg +-- Added support for the Basic compiler. +-- +-- 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 @@ -190,5 +195,4 @@ configure = simple { -- Added support for the ego global optimisation suite. -- -- Revision 1.2 2006/07/20 23:24:42 dtrg --- Fixed revision history. --- +-- Fixed revision history. \ No newline at end of file