diff options
author | Alex Auvolat <alex@adnab.me> | 2016-07-15 22:39:04 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2016-07-15 22:39:04 +0200 |
commit | 7a1ea510a9fc43ccbc257601b149a90920332e13 (patch) | |
tree | 75ac252bb8ce029c62d6834e4ca927f59eaf5769 /src/bin/bam.lua | |
parent | d415aca695956c79110c88fa58c12bf55c0e2163 (diff) | |
download | kogata-7a1ea510a9fc43ccbc257601b149a90920332e13.tar.gz kogata-7a1ea510a9fc43ccbc257601b149a90920332e13.zip |
Add Lua source, not compiled yet as libc/libm functions remain unimplemented
Diffstat (limited to 'src/bin/bam.lua')
-rw-r--r-- | src/bin/bam.lua | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/bin/bam.lua b/src/bin/bam.lua new file mode 100644 index 0000000..56b21fb --- /dev/null +++ b/src/bin/bam.lua @@ -0,0 +1,20 @@ +local function bin_settings(name) + local s = TableDeepCopy(user_settings) + s.link.flags:Add("-T src/bin/linker.ld", + "-Xlinker -Map=build/bin/" .. name .. ".map") + return s +end + +local function bin_exe(name, moredeps) + local s = sysbin_settings(name) + + local src = Collect('src/bin/' .. name .. '/*.c') + local obj = Compile(s, src) + + return Link(s, 'bin/' .. name .. ".bin", {obj, libkogata, moredeps}) +end + +bin = { + -- bin_exe('lua', {liblua, liblualib}), + -- bin_exe('luac', {liblua, liblualib}), +} |