shithub: riscv

ref: 57f22f910c897fe3f07b88b1b7f1e62830115262
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