Files
oasis-linux-mirror/pkg/openntpd/gen.lua
T
Michael Forney d4297a13c8 Use -isystem to include library headers
This way, warnings from headers that come from another package (in
particular linux-headers) won't show up when they get included.

To make sure we still track dependencies, use -MD instead of -MMD.
2020-06-05 03:01:44 -07:00

49 lines
787 B
Lua

cflags{
'-D _GNU_SOURCE',
'-include $dir/config.h',
'-I $srcdir/src',
'-I $srcdir/include',
'-isystem $basedir/pkg/openbsd/include',
'-isystem $builddir/pkg/libtls-bearssl/include',
}
pkg.deps = {
'pkg/libtls-bearssl/headers',
}
yacc('parse', '$srcdir/src/parse.y')
exe('ntpd', [[
src/(
client.c
config.c
constraint.c
control.c
fake-sensors.c
log.c
ntp.c
ntp_dns.c
ntp_msg.c
ntpd.c
server.c
util.c
)
compat/(
adjfreq_linux.c
closefrom.c
freezero.c
imsg.c
imsg-buffer.c
md5.c
progname.c
setproctitle.c
)
$outdir/parse.tab.c
$builddir/pkg/libtls-bearssl/libtls.a.d
$builddir/pkg/openbsd/libbsd.a
]])
file('bin/ntpd', '755', '$outdir/ntpd')
sym('bin/ntpctl', 'ntpd')
man{'src/ntpd.conf.5', 'src/ntpd.8', 'src/ntpctl.8'}
fetch 'curl'