blob: 319ddc1c5b8d819a9b91e2d954face4e51981fce (
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
|
cflags\
'-std=c90' \
-D '_POSIX_C_SOURCE=200809L' \
-I '$outdir' \
-I '$srcdir'
yacc gram '$srcdir'/awkgram.y
build '$outdir'/ytab.h copy '$outdir'/gram.tab.h
{
toolchain host
cflags -I '$outdir'
exe maketab -d '$outdir'/ytab.h maketab.c
} >tools.ninja ; subninja tools.ninja
rule maketab '(cd $outdir && ./maketab) >$out.tmp && mv $out.tmp $out'
build '$outdir'/proctab.c maketab '|' '$outdir'/^(maketab ytab.h)
exe awk -d '$outdir'/ytab.h\
b.c main.c parse.c tran.c lib.c run.c lex.c\
'$outdir'/^(gram.tab.c proctab.c)
file bin/awk '$outdir'/awk 755
man 1 awk.1
fetch git
|