Copy pc86 platform to nes platform, and make change accordingly.
This commit is contained in:
committed by
Manoël Trapier
parent
dccecc5d45
commit
45121f6d87
45
plat/nes/pmfile
Normal file
45
plat/nes/pmfile
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user