Wasn't exporting the plat headers; refactor to make this a little cleaner.

This commit is contained in:
David Given
2016-08-14 11:01:36 +02:00
parent f253b6a169
commit b549980af2
13 changed files with 80 additions and 36 deletions

View File

@@ -1,11 +0,0 @@
include("plat/build.lua")
acklibrary {
name = "headers",
hdrs = {
["ack/config.h"] = "./include/ack/config.h",
["sys/ioctl.h"] = "./include/sys/ioctl.h",
["unistd.h"] = "./include/unistd.h",
}
}

View File

@@ -17,6 +17,7 @@ installable {
map = {
"+tools",
"+libs",
"./include+pkg",
["$(PLATIND)/linux386/boot.o"] = "+boot"
}
}

View File

@@ -0,0 +1,24 @@
include("plat/build.lua")
headermap = {}
packagemap = {}
local function addheader(h)
headermap[h] = "./"..h
packagemap["$(PLATIND)/linux386/include/"..h] = "./"..h
end
addheader("ack/config.h")
addheader("sys/ioctl.h")
addheader("unistd.h")
acklibrary {
name = "headers",
hdrs = headermap
}
installable {
name = "pkg",
map = packagemap
}