shithub: cc65-plan9

ref: 52c766d0264b281bac522604c5ab419b3303ed63
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]