Copy pc86 platform to nes platform, and make change accordingly.

This commit is contained in:
Manoel Trapier
2013-03-04 19:00:38 +01:00
committed by Manoël Trapier
parent dccecc5d45
commit 45121f6d87
26 changed files with 687 additions and 0 deletions

45
plat/nes/pmfile Normal file
View File

@@ -0,0 +1,45 @@
-- $Source$
-- $State$
-- $Revision$
local d = ROOTDIR.."plat/nes/"
include (d.."libsys/pmfile")
local bootsector = ackfile {
file (d.."boot.s"),
install = pm.install("%BINDIR%lib/nes/boot.o"),
}
local descr = group {
install = pm.install(d.."descr", "%BINDIR%%PLATIND%/%PLATFORM%/descr")
}
local headers = group {
install = {
pm.install(d.."include/ack/config.h", "%BINDIR%%PLATIND%/%PLATFORM%/include/ack/config.h"),
pm.install(d.."include/unistd.h", "%BINDIR%%PLATIND%/%PLATFORM%/include/unistd.h"),
}
}
platform_nes = group {
ARCH = "6500",
PLATFORM = "nes",
OPTIMISATION = "-O",
-- Ensure the descr and headers are installed first because we'll need
-- them to build the libraries.
descr,
headers,
-- Build the back-end support.
mach_6500,
support_6500,
lang_runtimes,
-- Build the NES library.
libsys_nes,
bootsector
}