shithub: cc65-plan9

ref: 7870bfc34bbd6c2cf918749490ee8fc8dd0177db
dir: /mkfiles/src/mkfile.prog/

View raw version
</$objtype/mkfile

LIBS=\
	../common/common.$O.a

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

<../common.mk

$O.out: $OBJ
	$CC -o $target $OBJ $LIBS

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

clean nuke:V:
	rm -f [$OS].out *.[$OS]