shithub: riscv

ref: 9861f1a92b373a16939fd6f3c167e5dad9f253d3
dir: /sys/src/games/gba/rom/mkone/

View raw version
BIN=/sys/games/lib/gba

default:V:	$TARG.gba

all:V:	$TARG.gba

$TARG.gba:	$O.out
	games/aout2gba -o $target $prereq

$O.out:	l.$O $OFILES $LIB
	$LD $LDFLAGS -o $target $prereq

%.$O:	$HFILES

l.$O:	/sys/src/games/gba/rom/l.s
	$AS $AFLAGS $prereq

%.$O:	%.c
	$CC $CFLAGS $stem.c

%.$O:	%.s
	$AS $AFLAGS $stem.s

install:V:	$BIN/$TARG.gba

$BIN/$TARG.gba:	$TARG.gba
	cp $prereq $target

clean:V:
	rm -f *.[$OS] [$OS].out y.tab.? lex.yy.c y.debug y.output $TARG.gba $CLEANFILES