aboutsummaryrefslogtreecommitdiff
path: root/src/lib/bam.lua
blob: 5d749b9c9553692e124f71ceb7cb98cf91023015 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
return function(s, common)
	local function lib(name)
		local source = {Collect('src/lib/' .. name .. '/*.c'),
						Collect('src/lib/' .. name .. '/*.s')}
		return Compile(s.user_settings, source)
	end
	
	local libc = {lib('libc'), common.libc, common.libkogata}

	return {
		libc = libc,
		libkogata = {lib('libkogata')},
		liblua = {lib('lua')}
	}
end