2016-08-10 22:30:32 +00:00
|
|
|
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
|
|
|
|
|
2022-07-14 21:57:54 +00:00
|
|
|
addheader("", filenamesof(
|
|
|
|
"./assert.h",
|
|
|
|
"./ctype.h",
|
|
|
|
"./errno.h",
|
|
|
|
"./fcntl.h",
|
|
|
|
"./float.h",
|
|
|
|
"./iso646.h",
|
|
|
|
"./limits.h",
|
|
|
|
"./locale.h",
|
|
|
|
"./math.h",
|
|
|
|
"./setjmp.h",
|
|
|
|
"./signal.h",
|
|
|
|
"./stdarg.h",
|
|
|
|
"./stdbool.h",
|
|
|
|
"./stddef.h",
|
|
|
|
"./stdint.h",
|
|
|
|
"./stdio.h",
|
|
|
|
"./stdlib.h",
|
|
|
|
"./string.h",
|
|
|
|
"./time.h",
|
|
|
|
"./unistd.h"
|
|
|
|
))
|
|
|
|
|
|
|
|
addheader("sys/", filenamesof(
|
|
|
|
"./sys/time.h",
|
|
|
|
"./sys/times.h"
|
|
|
|
))
|
|
|
|
|
|
|
|
addheader("ack/", filenamesof(
|
|
|
|
"./ack/config.h",
|
|
|
|
"./ack/emufile.h"
|
|
|
|
))
|
2016-08-10 22:30:32 +00:00
|
|
|
|
|
|
|
acklibrary {
|
|
|
|
name = "headers",
|
|
|
|
hdrs = headers
|
|
|
|
}
|
|
|
|
|
|
|
|
installable {
|
|
|
|
name = "pkg",
|
|
|
|
map = installmap
|
|
|
|
}
|