Added support for the Basic and Occam language runtimes.

This commit is contained in:
dtrg 2006-07-27 21:58:13 +00:00
parent d29b1ef7d0
commit f3a9a3bc40
5 changed files with 94 additions and 37 deletions

44
lang/basic/lib/pmfile Normal file
View file

@ -0,0 +1,44 @@
-- $Source$
-- $State$
local d = ROOTDIR.."lang/basic/lib/"
lang_basic_runtime = acklibrary {
ACKINCLUDES = {PARENT, "-I%ROOTDIR%h", "-I%ROOTDIR%include/_tail_cc"},
ackfile (d.."fif.e"),
ackfile (d.."fef.e"),
ackfile (d.."setline.e"),
ackfile (d.."abs.c"),
ackfile (d.."asc.c"),
ackfile (d.."asrt.c"),
ackfile (d.."atn.c"),
ackfile (d.."chr.c"),
ackfile (d.."conversion.c"),
ackfile (d.."error.c"),
ackfile (d.."exp.c"),
ackfile (d.."file.c"),
ackfile (d.."hlt.c"),
ackfile (d.."io.c"),
ackfile (d.."log.c"),
ackfile (d.."mki.c"),
ackfile (d.."oct.c"),
ackfile (d.."peek.c"),
ackfile (d.."power.c"),
ackfile (d.."print.c"),
ackfile (d.."random.c"),
ackfile (d.."read.c"),
ackfile (d.."return.c"),
ackfile (d.."salloc.c"),
ackfile (d.."sgn.c"),
ackfile (d.."sin.c"),
ackfile (d.."sqt.c"),
ackfile (d.."stop.c"),
ackfile (d.."string.c"),
ackfile (d.."swap.c"),
ackfile (d.."trace.c"),
ackfile (d.."trap.c"),
ackfile (d.."write.c"),
install = pm.install("%BINDIR%%PLATIND%/%ARCH%/tail_bc.a")
}

View file

@ -4,13 +4,4 @@
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.
--
include (d.."lib/pmfile")

21
lang/occam/lib/pmfile Normal file
View file

@ -0,0 +1,21 @@
-- $Source$
-- $State$
local d = ROOTDIR.."lang/occam/lib/"
lang_occam_runtime = acklibrary {
ACKINCLUDES = {PARENT, "-I%ROOTDIR%h", "-I%ROOTDIR%include/_tail_cc"},
ackfile (d.."builtin.c"),
ackfile (d.."chan_strct.c"),
ackfile (d.."channel.c"),
ackfile (d.."co.c"),
ackfile (d.."misc.e"),
ackfile (d.."now.c"),
ackfile (d.."ocrt.c"),
ackfile (d.."par.c"),
ackfile (d.."par_misc.e"),
ackfile (d.."parco.c"),
install = pm.install("%BINDIR%%PLATIND%/%ARCH%/tail_ocm.a")
}

View file

@ -4,13 +4,4 @@
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.
--
include (d.."lib/pmfile")

44
pmfile
View file

@ -4,8 +4,8 @@
include "first/c.pm"
include "first/yacc.pm"
include "first/llgen.pm"
include "first/ack-custom.pm"
include "config.pm"
include "first/ack.pm"
CINCLUDES = {
"-I"..ROOTDIR.."h",
@ -72,6 +72,13 @@ include "mach/vax4/pmfile"
include "mach/z80/pmfile"
include "mach/z8000/pmfile"
-- This is the list of language runtimes that is built for each architecture.
lang_runtimes = group {
lang_occam_runtime,
lang_basic_runtime,
}
default = group {
-- Some of the dependency management across modules isn't entirely
-- complete, for simplicity; as a result, the order here is important.
@ -113,26 +120,26 @@ default = group {
lang_cem_cemcom_ansi,
lang_pc,
lang_m2,
lang_occam,
lang_basic,
lang_occam_compiler,
lang_basic_compiler,
mach_6500,
mach_6500, lang_runtimes { ARCH="6500", OPTIMISATION="-O" },
mach_6800,
mach_6805,
mach_6809,
mach_arm,
mach_i386,
mach_i80,
mach_i86,
mach_m68020,
mach_m68k2,
mach_m68k4,
mach_ns,
mach_pdp,
mach_arm, lang_runtimes { ARCH="arm", OPTIMISATION="-O" },
mach_i386, lang_runtimes { ARCH="i386", OPTIMISATION="-O3" },
mach_i80, lang_runtimes { ARCH="i80", OPTIMISATION="-O" },
mach_i86, lang_runtimes { ARCH="i86", OPTIMISATION="-O6" },
mach_m68020, lang_runtimes { ARCH="m68020", OPTIMISATION="-O6" },
-- mach_m68k2, lang_runtimes { ARCH="m68k2", OPTIMISATION="-O" },
-- mach_m68k4, lang_runtimes { ARCH="m68k4", OPTIMISATION="-O6" },
mach_ns, lang_runtimes { ARCH="ns", OPTIMISATION="-O" },
mach_pdp, lang_runtimes { ARCH="pdp", OPTIMISATION="-O6" },
mach_s2650,
mach_vax4,
mach_z80,
mach_z8000,
-- mach_vax4, lang_runtimes { ARCH="vax4", OPTIMISATION="-O" },
mach_z80, lang_runtimes { ARCH="z80", OPTIMISATION="-O" },
mach_z8000, lang_runtimes { ARCH="z8000", OPTIMISATION="-O" },
}
-- Ensure that the work directories exist.
@ -167,7 +174,10 @@ configure = simple {
-- Revision history
-- $Log$
-- Revision 1.11 2006-07-26 23:08:09 dtrg
-- Revision 1.12 2006-07-27 21:58:13 dtrg
-- Added support for the Basic and Occam language runtimes.
--
-- 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