shithub: riscv

ref: 3504122012e3f7ee778efa048e462510619c13b4
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