blob: 316bca937e6d1f194917dcb9de7adfd5bbc8c506 (
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
|
PROG=$O.$TARG
all:V: $PROG
$O.$TARG: $OFILES $LIB
$LD -o $target $prereq $LDFLAGS
%.$O: $HFILES # don't combine with following %.$O rules
%.$O: %.c
$CC $CFLAGS $stem.c
%.$O: %.s
$AS $AFLAGS $stem.s
y.tab.h y.tab.c: $YFILES
$YACC $YFLAGS $prereq
%.install:V: $BIN/%
$BIN/%: $O.%
$INSTALL $O.$stem $BIN/$stem
%.installall:V:
for (objtype in $CPUS)
mk $stem.install
install:V: $TARG.install
installall:V:
for(objtype in $CPUS)
mk $MKFLAGS install
nuke:V:
rm -f *.[$OS] y.tab.? y.debug y.output [$OS].* *.acid $TARG $NUKEFILES
clean:V:
rm -f *.[$OS] y.tab.? y.debug y.output [$OS].* $TARG $CLEANFILES
%.clean:V:
rm -f $stem.[$OS] [$OS].$stem $stem.acid $stem
%.acid: %.$O $HFILES
$CC $CFLAGS -a $stem.c >$target
|