From a42939df50d607d0b5b04fe94620d5ebbd032cd8 Mon Sep 17 00:00:00 2001 From: David Given Date: Sun, 14 Aug 2016 14:40:01 +0200 Subject: [PATCH] LED builds now. --- build.lua | 1 + util/led/build.lua | 19 +++++++++++++++++++ util/led/{mach.c => mach.h} | 0 util/led/memory.c | 2 +- 4 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 util/led/build.lua rename util/led/{mach.c => mach.h} (100%) diff --git a/build.lua b/build.lua index 4b9bd2886..dc2178fb8 100644 --- a/build.lua +++ b/build.lua @@ -25,6 +25,7 @@ installable { "util/ack+pkg", "util/amisc+pkg", "util/arch+pkg", + "util/led+pkg", "util/misc+pkg", "util/opt+pkg", } diff --git a/util/led/build.lua b/util/led/build.lua new file mode 100644 index 000000000..ed84a79b3 --- /dev/null +++ b/util/led/build.lua @@ -0,0 +1,19 @@ +cprogram { + name = "led", + srcs = { "./*.c" }, + deps = { + "modules/src/string+lib", + "modules/src/object+lib", + "h+emheaders", + } +} + +installable { + name = "pkg", + map = { + ["$(INSDIR)/share/man/man5/ack.out.5"] = "./ack.out.5", + ["$(INSDIR)/share/man/man6/led.6"] = "./led.6", + ["$(PLATDEP)/em_led"] = "+led", + } +} + diff --git a/util/led/mach.c b/util/led/mach.h similarity index 100% rename from util/led/mach.c rename to util/led/mach.h diff --git a/util/led/memory.c b/util/led/memory.c index db5ad72ee..b99447172 100644 --- a/util/led/memory.c +++ b/util/led/memory.c @@ -73,7 +73,7 @@ init_core() register struct memory *mem; extern char *sbrk(); -#include "mach.c" +#include "mach.h" #define ALIGN 8 /* minimum alignment for pieces */ #define AT_LEAST (ind_t)2*ALIGN /* See comment about string areas. */