Support luamake build system
[liba.git] / make.lua
blob23f72295930d2238305056cf28d1664e0aa364b7
1 local lm = require("luamake")
2 lm:source_set("a")({
3 defines = { "A_EXPORTS" },
4 includes = { "include" },
5 sources = { "src/*.c*" },
6 flags = lm.os ~= "windows" and { "-fPIC" } or {},
7 links = lm.os ~= "windows" and { "m" } or {},
8 })
9 lm:static_library("alib")({
10 basename = "a",
11 deps = { "a" },
13 lm:shared_library("liba")({
14 deps = { "a" },