diff options
author | Alex Auvolat <alex@adnab.me> | 2017-04-19 11:37:40 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2017-04-19 11:37:40 +0200 |
commit | 8e88e765ee17296a85c5ae372471ed248ce321db (patch) | |
tree | 94c375f5ec15d215dac16c6f9e386f24283c07df /src/bin/bam.lua | |
parent | 96da27494f89d75f8aec0c8894440c3f7482f54b (diff) | |
download | kogata-8e88e765ee17296a85c5ae372471ed248ce321db.tar.gz kogata-8e88e765ee17296a85c5ae372471ed248ce321db.zip |
Mini reorganization
Diffstat (limited to 'src/bin/bam.lua')
-rw-r--r-- | src/bin/bam.lua | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/bin/bam.lua b/src/bin/bam.lua deleted file mode 100644 index d529ece..0000000 --- a/src/bin/bam.lua +++ /dev/null @@ -1,24 +0,0 @@ -return function(s, lib) - local function bin_settings(name) - local s = TableDeepCopy(s.user_settings) - s.link.flags:Add("-T src/lib/linker.ld") - if name == 'lua' or name == 'luac' then - s.cc.includes:Add("src/lib/lua") - end - return s - end - - local function bin_exe(name, deps) - local s = bin_settings(name) - - local src = Collect('src/bin/' .. name .. '/*.c') - local obj = Compile(s, src) - - return Link(s, 'bin/' .. name .. ".bin", {obj, deps}) - end - - return { - bin_exe('lua', {lib.liblua}), - -- bin_exe('luac', {liblua}), - } -end |