mirror of
https://github.com/oasislinux/oasis.git
synced 2025-12-25 12:14:00 +01:00
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.
23 lines
340 B
Lua
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'
|