mirror of
https://github.com/oasislinux/oasis.git
synced 2026-05-12 21:34:47 +02:00
80c477fde9
this is a port pulled from 9fronts sourcetree, and more or less follows 9fronts changes
38 lines
484 B
Lua
38 lines
484 B
Lua
cflags{
|
|
'-Wpedantic',
|
|
'-I $srcdir',
|
|
'-I $outdir',
|
|
([['-D PREFIX="%s"']]):format(config.prefix),
|
|
}
|
|
|
|
pkg.deps = {'$outdir/y.tab.h'}
|
|
|
|
yacc('y', 'syn.y')
|
|
|
|
exe('rc', {
|
|
'code.c',
|
|
'exec.c',
|
|
'getflags.c',
|
|
'glob.c',
|
|
'here.c',
|
|
'io.c',
|
|
'lex.c',
|
|
'pcmd.c',
|
|
'pfnc.c',
|
|
'simple.c',
|
|
'subr.c',
|
|
'trap.c',
|
|
'tree.c',
|
|
'var.c',
|
|
'havefork.c',
|
|
'unix.c',
|
|
|
|
'$outdir/y.tab.c',
|
|
})
|
|
file('bin/rc', '755', '$outdir/rc')
|
|
man{'rc.1'}
|
|
|
|
file('lib/rcmain', '644', '$srcdir/rcmain.unix')
|
|
|
|
fetch 'git'
|