Subversion Repositories planix.SVN

Rev

Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 - 1
</$objtype/mkfile
2
 
3
TARG=rc
4
COMMONOFILES=\
5
	code.$O\
6
	exec.$O\
7
	getflags.$O\
8
	glob.$O\
9
	here.$O\
10
	io.$O\
11
	lex.$O\
12
	pcmd.$O\
13
	pfnc.$O\
14
	simple.$O\
15
	subr.$O\
16
	trap.$O\
17
	tree.$O\
18
	var.$O\
19
	havefork.$O\
20
 
21
PLAN9OFILES=plan9.$O\
22
 
23
UNIXOFILES=unix.$O\
24
 
25
OFILES=$COMMONOFILES $PLAN9OFILES y.tab.$O
26
 
27
HFILES=rc.h\
28
	x.tab.h\
29
	io.h\
30
	exec.h\
31
	fns.h\
32
	getflags.h\
33
 
34
YFILES=syn.y
35
 
36
BIN=/$objtype/bin
37
 
38
UPDATE=\
39
	mkfile\
40
	$HFILES\
41
	${COMMONOFILES:%.$O=%.c}\
42
	${UNIXOFILES:%.$O=%.c}\
43
	${PLAN9OFILES:%.$O=%.c}\
44
	$YFILES\
45
	${TARG:%=/386/bin/%}\
46
 
47
</sys/src/cmd/mkone
48
 
49
x.tab.h: y.tab.h
50
	cmp -s x.tab.h y.tab.h || cp y.tab.h x.tab.h
51
 
52
clean:V:
53
	rm -f [$OS].out *.[$OS] [xy].tab.? y.debug $TARG
54
 
55
regress: $O.out
56
	cd test
57
	mk
58
 
59
unregress:V:
60
	for(test in test/*.test) rc $test >$test.out
61
 
62
listing:
63
	pr mkfile $HFILES $FILES $FILES9 $FILESUNIX $YFILES|lp -du