ack/lang/cem/libcc.ansi/headers/build.lua
George Koehler 0a2dfd650d Delete malloc.h and tgmath.h from libc.
This malloc.h might get confused with the private malloc.h in our
libc.  C programs should #include <stdlib.h> for malloc().

This tgmath.h has no useful content, and never worked because
complex.h is missing.

Touch build.lua (by deleting some whitespace) so the *.h globs see
the deletions.
2017-10-28 14:24:35 -04:00

26 lines
436 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
}