opkg

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

gen.lua (522B)


      1 cflags({
      2 	'-std=c11', '-Wall', '-Wpedantic', '-Wno-switch', '-Wno-parentheses', '-Wno-maybe-uninitialized',
      3 	'-I $dir',
      4 })
      5 
      6 cc('util.c')
      7 
      8 exe('cproc', {'driver.c', 'util.c.o'})
      9 exe('cproc-qbe', {
     10 	'decl.c',
     11 	'eval.c',
     12 	'expr.c',
     13 	'init.c',
     14 	'main.c',
     15 	'map.c',
     16 	'pp.c',
     17 	'qbe.c',
     18 	'scan.c',
     19 	'scope.c',
     20 	'siphash.c',
     21 	'stmt.c',
     22 	'targ.c',
     23 	'token.c',
     24 	'tree.c',
     25 	'type.c',
     26 	'util.c.o',
     27 	'utf.c',
     28 })
     29 file('bin/cproc', '755', '$outdir/cproc')
     30 file('bin/cproc-qbe', '755', '$outdir/cproc-qbe')
     31 man({'cproc.1'})
     32 
     33 fetch('git')