summaryrefslogtreecommitdiff
path: root/pkg/sdhcp/gen.lua
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2017-09-17 00:03:34 -0700
committerMichael Forney <mforney@mforney.org>2017-09-25 19:23:06 -0700
commitba94a8513d9a0aadb3f2c834c74b64aa644c61e8 (patch)
tree48ac6c85baa7b9d960b9e1e726a906e61ca60967 /pkg/sdhcp/gen.lua
parentcb362b531d79708a259bbf070dee5104fd63df08 (diff)
Rewrite ninja generation scripts in Lua
Diffstat (limited to 'pkg/sdhcp/gen.lua')
-rw-r--r--pkg/sdhcp/gen.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/pkg/sdhcp/gen.lua b/pkg/sdhcp/gen.lua
new file mode 100644
index 00000000..fa15b69f
--- /dev/null
+++ b/pkg/sdhcp/gen.lua
@@ -0,0 +1,10 @@
+cflags{
+ '-Wall', '-Wextra', '-pedantic', '-std=c99',
+ '-D _BSD_SOURCE',
+}
+
+exe('sdhcp', {'sdhcp.c', 'util/eprintf.c'})
+file('bin/sdhcp', '755', '$outdir/sdhcp')
+man{'sdhcp.1'}
+
+fetch 'git'