aboutsummaryrefslogtreecommitdiff
path: root/src/mkcommon
blob: 1b1e1925aacb7a00762c93d55efa4784df3ec72a (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
%.$O:	$HFILES			# don't combine with following %.$O rules

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

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

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

# OpenBSD needs this; sigh
%.$O:	%.S
	$CC $CFLAGS $stem.S
	
y.tab.h y.tab.c:	$YFILES
	$YACC $YFLAGS $prereq

nuke:V: nuke-common
clean:V: clean-common
%.clean:V: %.clean-common

nuke-common:V:
	rm -f *.[$OS] [$OS].out $CLEANFILES y.tab.[ch] $NUKEFILES

clean-common:
	rm -f *.[$OS] [$OS].out $CLEANFILES y.tab.[ch]

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