opkg

statically linked package installer
git clone anongit@rnpnr.xyz:opkg.git
Log | Files | Refs | Feed | Submodules | README | LICENSE

gen.lua (485B)


      1 cflags{
      2 	'-Wpedantic',
      3 	'-I $srcdir',
      4 	'-I $outdir',
      5 	([['-D PREFIX="%s"']]):format(config.prefix),
      6 }
      7 
      8 pkg.deps = {'$outdir/y.tab.h'}
      9 
     10 yacc('y', 'syn.y')
     11 
     12 exe('rc', {
     13 	'code.c',
     14 	'exec.c',
     15 	'getflags.c',
     16 	'glob.c',
     17 	'here.c',
     18 	'io.c',
     19 	'lex.c',
     20 	'pcmd.c',
     21 	'pfnc.c',
     22 	'simple.c',
     23 	'subr.c',
     24 	'trap.c',
     25 	'tree.c',
     26 	'var.c',
     27 	'havefork.c',
     28 	'unix.c',
     29 
     30 	'$outdir/y.tab.c',
     31 })
     32 file('bin/rc', '755', '$outdir/rc')
     33 man{'rc.1'}
     34 
     35 file('lib/rcmain', '644', '$srcdir/rcmain.unix')
     36 
     37 fetch('git')