aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/awk/mkfile
blob: c7e63024edb943fb0f54f29aedb6722c15f0fa4e (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
33
34
35
<$PLAN9/src/mkhdr

TARG=awk
OFILES=re.$O\
	lex.$O\
	main.$O\
	parse.$O\
	proctab.$O\
	tran.$O\
	lib.$O\
	run.$O\
	y.tab.$O\

HFILES=awk.h\
	y.tab.h\
	proto.h\

YFILES=awkgram.y

CLEANFILES=$CLEANFILES proctab.c $O.maketab

<$PLAN9/src/mkone

# CFLAGS=-c -D_REGEXP_EXTENSION -D_RESEARCH_SOURCE -D_BSD_EXTENSION -DUTF

YFLAGS=-S -d -v

proctab.c: $O.maketab
	./$O.maketab >proctab.c

maketab.$O: maketab.c
	$CC $CFLAGS maketab.c

$O.maketab:V: y.tab.h maketab.$O
	$LD -o $O.maketab maketab.$O