a200a2fb53
and simpler one stolen from K&R. libc builds now.
27 lines
438 B
Lua
27 lines
438 B
Lua
include("plat/build.lua")
|
|
|
|
local headers = {}
|
|
local installmap = {}
|
|
|
|
local function addheader(dir, list)
|
|
for _, f in ipairs(list) do
|
|
local b = basename(f)
|
|
headers[dir..b] = f
|
|
installmap[concatpath("$(PLATIND)/include/ansi/", dir, b)] = f
|
|
end
|
|
end
|
|
|
|
addheader("", filenamesof("./*.h"))
|
|
addheader("sys/", filenamesof("./sys/*.h"))
|
|
|
|
acklibrary {
|
|
name = "headers",
|
|
hdrs = headers
|
|
}
|
|
|
|
installable {
|
|
name = "pkg",
|
|
map = installmap
|
|
}
|
|
|