mirror of
https://github.com/oasislinux/oasis.git
synced 2026-06-21 15:37:15 +02:00
d4297a13c8
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.
25 lines
445 B
Lua
25 lines
445 B
Lua
cflags{
|
|
'-D _GNU_SOURCE',
|
|
'-I $dir',
|
|
'-isystem $builddir/pkg/pcre/include',
|
|
'-isystem $builddir/pkg/zlib/include',
|
|
}
|
|
|
|
pkg.deps = {
|
|
'pkg/pcre/headers',
|
|
'pkg/zlib/headers',
|
|
}
|
|
|
|
exe('ag', [[
|
|
src/(
|
|
ignore.c log.c options.c print.c print_w32.c scandir.c search.c lang.c
|
|
util.c decompress.c main.c
|
|
)
|
|
$builddir/pkg/pcre/libpcre.a
|
|
$builddir/pkg/zlib/libz.a
|
|
]])
|
|
file('bin/ag', '755', '$outdir/ag')
|
|
man{'doc/ag.1'}
|
|
|
|
fetch 'git'
|