summaryrefslogtreecommitdiff
path: root/pkg/cproc/gen.lua
blob: 1a454d9a8c167ccfe263860017ea7e4ce0df7cad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
cflags{
	'-std=c11', '-Wall', '-Wpedantic', '-Wno-switch', '-Wno-parentheses', '-Wno-maybe-uninitialized',
	'-I $dir',
}

cc('util.c')

exe('cproc', {'driver.c', 'util.c.o'})
exe('cproc-qbe', {
	'decl.c',
	'eval.c',
	'expr.c',
	'init.c',
	'main.c',
	'map.c',
	'pp.c',
	'qbe.c',
	'scan.c',
	'scope.c',
	'siphash.c',
	'stmt.c',
	'targ.c',
	'token.c',
	'tree.c',
	'type.c',
	'util.c.o',
	'utf.c',
})
file('bin/cproc', '755', '$outdir/cproc')
file('bin/cproc-qbe', '755', '$outdir/cproc-qbe')

fetch 'git'