Subversion Repositories planix.SVN

Rev

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

Rev Author Line No. Line
2 - 1
AFLAGS=
2
YFLAGS=-d
3
 
4
LIBOBJ=${OFILES:%=$LIB(%)}
5
LIBDIR=.
6
 
7
default:V:	$LIB
8
 
9
all:V:	$LIB
10
 
11
$LIB:	$LIBOBJ
12
	ar vu $LIB $newmember
13
 
14
%.$O:	$HFILES		# don't combine with following %.$O rules
15
 
16
%.$O:	%.c
17
	$CC $CFLAGS $stem.c
18
 
19
%.$O:	%.s
20
	$AS $AFLAGS $stem.s
21
 
22
y.tab.h y.tab.c:	$YFILES
23
	yacc $YFLAGS $prereq
24
 
25
$LIB(%.$O):N:	%.$O
26
 
27
install:VQ:	$LIB
28
	~ $LIBDIR '.' || cp $LIB $LIBDIR/$LIB
29
 
30
installall:V:
31
	for (objtype in $CPUS)
32
		mk install
33
 
34
%.all:V:
35
	for (objtype in $CPUS)
36
		mk $stem
37
 
38
nuke:V:
39
	rm -f *.[$OS] y.tab.? y.output y.error $CLEANFILES
40
	rm -f $LIB
41
 
42
clean:V:
43
	rm -f *.[$OS] y.tab.? y.output y.error $CLEANFILES
44
 
45
update:V:
46
	update $UPDATEFLAGS $UPDATE