aboutsummaryrefslogtreecommitdiff
path: root/src/mkcommon
blob: 506cd43869f5c2e7b81f08e6fa86462f038f05f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
%.$O:	$HFILES			# don't combine with following %.$O rules

%.$O:	%.c
	$CC $CFLAGS $stem.c

%.$O:	%.s
	$AS $AFLAGS $stem.s

clean:V:
	rm -f *.[$OS] [$OS].out $CLEANFILES

%.clean:V:
	rm -f $stem.[$OS] [$OS].$stem $stem.acid $stem

nuke:V:
	rm -f *.[$OS] [$OS].out $CLEANFILES

Makefile:D: mkfile
	rm -f Makefile
	sh $PLAN9/src/mk2make mkfile >Makefile
	chmod 444 Makefile