shithub: cc65-plan9

ref: 2e2e412d056d214d103bceec96186b35ea45acd1
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