shithub: cc65-plan9

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