From ba4e59a1d687173ac5cfa74d26d71d6059dc6bc6 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Fri, 15 Jul 2016 22:45:41 +0200 Subject: Move stuff around --- src/bin/bam.lua | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/bin/bam.lua') diff --git a/src/bin/bam.lua b/src/bin/bam.lua index 56b21fb..1a2d3a7 100644 --- a/src/bin/bam.lua +++ b/src/bin/bam.lua @@ -1,12 +1,15 @@ local function bin_settings(name) local s = TableDeepCopy(user_settings) - s.link.flags:Add("-T src/bin/linker.ld", + s.link.flags:Add("-T src/sysbin/linker.ld", "-Xlinker -Map=build/bin/" .. name .. ".map") + if name == 'lua' or name == 'luac' then + s.cc.includes:Add("src/lib/lua") + end return s end local function bin_exe(name, moredeps) - local s = sysbin_settings(name) + local s = bin_settings(name) local src = Collect('src/bin/' .. name .. '/*.c') local obj = Compile(s, src) @@ -15,6 +18,6 @@ local function bin_exe(name, moredeps) end bin = { - -- bin_exe('lua', {liblua, liblualib}), - -- bin_exe('luac', {liblua, liblualib}), + bin_exe('lua', {liblua}), + -- bin_exe('luac', {liblua}), } -- cgit v1.2.3