summaryrefslogtreecommitdiff
path: root/pkg/rc/gen.lua
blob: c32b0b4bd5626255960b7b7c0e16cce6dd548aca (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
cflags{
	'-Wpedantic',
	'-D PREFIX=',
}

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',
	'y.tab.c',
	'unix.c',
	'havefork.c',
	'prompt-null.c',
})
file('bin/rc', '755', '$outdir/rc')
file('lib/rcmain', '644', '$srcdir/rcmain.unix')

fetch 'git'