summaryrefslogtreecommitdiff
path: root/pkg/ncompress/gen.lua
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/ncompress/gen.lua')
-rw-r--r--pkg/ncompress/gen.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/pkg/ncompress/gen.lua b/pkg/ncompress/gen.lua
new file mode 100644
index 00000000..b4ee6380
--- /dev/null
+++ b/pkg/ncompress/gen.lua
@@ -0,0 +1,10 @@
+cflags{
+ '-std=c99', '-Wall', '-Wpedantic',
+ '-D _POSIX_C_SOURCE=200809L',
+ '-include $dir/config.h',
+}
+
+exe('lzw', {'compress42.c'})
+file('bin/lzw', '755', '$outdir/lzw')
+
+fetch 'git'