summaryrefslogtreecommitdiff
path: root/pkg/openbsd/gen.lua
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2018-04-10 16:36:09 -0700
committerMichael Forney <mforney@mforney.org>2018-05-10 12:17:02 -0700
commit6e3e79ebdcf003f32bdad32bb2cbe2db69aa9438 (patch)
treec0129b81637eb914b6cc68c7df45eb9edc0f3a9b /pkg/openbsd/gen.lua
parente2522b737e6be889c7c3aa4eeb2523f326218b63 (diff)
openbsd: Build m4
Diffstat (limited to 'pkg/openbsd/gen.lua')
-rw-r--r--pkg/openbsd/gen.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/pkg/openbsd/gen.lua b/pkg/openbsd/gen.lua
index fb08788f..634e4655 100644
--- a/pkg/openbsd/gen.lua
+++ b/pkg/openbsd/gen.lua
@@ -4,6 +4,7 @@ cflags{
'-I $builddir/pkg/libressl/include',
'-idirafter $srcdir/include',
'-idirafter $srcdir/sys',
+ '-idirafter $srcdir/lib/libutil',
}
local libs
@@ -36,6 +37,7 @@ lib('libbsd.a', {paths[[
string/(explicit_bzero.c strmode.c timingsafe_memcmp.c)
)
lib/libcrypto/arc4random/getentropy_linux.c
+ lib/libutil/ohash.c
]], libs}, {'pkg/libressl/headers'})
-- diff
@@ -55,6 +57,17 @@ man{'usr.bin/doas/doas.1', 'usr.bin/doas/doas.conf.5'}
file('bin/fmt', '755', exe('fmt', {'usr.bin/fmt/fmt.c'}))
man{'usr.bin/fmt/fmt.1'}
+-- m4
+yacc('usr.bin/m4/parser', 'usr.bin/m4/parser.y')
+cc('usr.bin/m4/tokenizer.c', nil, {cflags='$cflags -I $outdir/usr.bin/m4'})
+exe('m4', [[
+ usr.bin/m4/(eval.c expr.c look.c main.c misc.c gnum4.c trace.c tokenizer.c.o)
+ $outdir/usr.bin/m4/parser.tab.c
+ libbsd.a
+]])
+file('bin/m4', '755', '$outdir/m4')
+man{'usr.bin/m4/m4.1'}
+
-- nc
exe('nc', [[
usr.bin/nc/(netcat.c atomicio.c socks.c)