aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/tpic/mkfile
blob: 319697ec6f09b689a0acbc44852cc7a92b722add (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
36
37
38
39
40
<$PLAN9/src/mkhdr

TARG=tpic
YFILES=picy.y

OFILES=\
	arcgen.$O\
	blockgen.$O\
	boxgen.$O\
	circgen.$O\
	for.$O\
	input.$O\
	linegen.$O\
	main.$O\
	misc.$O\
	movegen.$O\
	picl.$O\
	picy.$O\
	pltex.$O\
	print.$O\
	symtab.$O\
	tex.$O\
	textgen.$O\

HFILES=pic.h y.tab.h tex.h

<$PLAN9/src/mkone

YFLAGS=-d -S

picy.c: y.tab.c
	mv y.tab.c picy.c

picl.$O: picl.l
	9 lex  picl.l
	$CC $CFLAGS lex.yy.c
	rm lex.yy.c
	mv lex.yy.$O picl.$O

CLEANFILES=$CLEANFILES picy.c