Files
oasis-linux-mirror/pkg/mtdev/gen.lua
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

23 lines
340 B
Lua

cflags{
'-I $srcdir/include',
'-isystem $builddir/pkg/linux-headers/include',
}
pkg.hdrs = copy('$outdir/include', '$srcdir/include', {
'mtdev.h',
'mtdev-plumbing.h',
})
pkg.deps = {
'pkg/linux-headers/headers',
}
lib('libmtdev.a', {
'src/caps.c',
'src/core.c',
'src/iobuf.c',
'src/match.c',
'src/match_four.c',
})
fetch 'git'