shithub: cc65-plan9

ref: 7870bfc34bbd6c2cf918749490ee8fc8dd0177db
dir: /mkfiles/src/common/mkfile/

View raw version
</$objtype/mkfile

LIB=common.$O.a

SRC=`{walk | grep '\.c$'}
OBJ=${SRC:%.c=%.$O}

<../common.mk

$LIB(%):N: %
$LIB: ${OBJ:%=$LIB(%)}
	ar rv $LIB `{membername $newprereq}

clean:
	rm -f *.[$OS].a *.[$OS]

%.$O: %.c
	$CC -c $CFLAGS $stem.c -o $target