summaryrefslogtreecommitdiff
path: root/sys/src/cmd/rc/mkfile
blob: b2ea3c5eb971a566d972fb27f4445be09d66ff91 (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
</$objtype/mkfile

TARG=rc
COMMONOFILES=\
	code.$O\
	exec.$O\
	getflags.$O\
	glob.$O\
	here.$O\
	io.$O\
	lex.$O\
	pcmd.$O\
	pfnc.$O\
	simple.$O\
	subr.$O\
	trap.$O\
	tree.$O\
	var.$O\
	havefork.$O\

PLAN9OFILES=plan9.$O\

UNIXOFILES=unix.$O\

OFILES=$COMMONOFILES $PLAN9OFILES y.tab.$O

HFILES=rc.h\
	x.tab.h\
	io.h\
	exec.h\
	fns.h\
	getflags.h\

YFILES=syn.y

BIN=/$objtype/bin

UPDATE=\
	mkfile\
	$HFILES\
	${COMMONOFILES:%.$O=%.c}\
	${UNIXOFILES:%.$O=%.c}\
	${PLAN9OFILES:%.$O=%.c}\
	$YFILES\
	${TARG:%=/386/bin/%}\

</sys/src/cmd/mkone

x.tab.h: y.tab.h
	cmp -s x.tab.h y.tab.h || cp y.tab.h x.tab.h

clean:V:
	rm -f [$OS].out *.[$OS] [xy].tab.? y.debug $TARG

regress: $O.out
	cd test
	mk

unregress:V:
	for(test in test/*.test) rc $test >$test.out

listing:
	pr mkfile $HFILES $FILES $FILES9 $FILESUNIX $YFILES|lp -du