blob: 9457a8417d4ac00f3d1b221176220a5af6f54680 (
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
|
AFLAGS=
all:V: $LIB
$LIB:V: $OFILES # force archive even when not needed
ar vu $LIB $newprereq
&:n: &.$O
ar vu $LIB $stem.$O
%.$O: $HFILES # don't combine with following %.$O rules
%.$O: %.c
$CC $CFLAGS $stem.c
%.$O: %.s
$AS $AFLAGS $stem.s
install:V: $LIB
installall:V:
for(objtype in $CPUS) mk install
%.all:V:
for(objtype in $CPUS) mk $stem
%.installall:V:
for(objtype in $CPUS) mk $stem
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 $LIB
%.acid:V:
$CC $CFLAGS -a `{basename $stem .$objtype}^.c >$target
update:V:
update $UPDATEFLAGS $UPDATE
|