Subversion Repositories ngs

Rev

Blame | Last modification | View Log | Download | RSS feed | ?url?

PORTS_INC=../../../docs/ports.inc

ASL="/d/d/pentevo/tools/asw/bin/asw.exe"
P2BIN="/d/d/pentevo/tools/asw/bin/p2bin.exe"


all: timer_test.bin page_test.bin sdmp3_test.bin


ports.inc: $(PORTS_INC)
        cat $(PORTS_INC) | sed s/#/0x/ >ports.inc

timer_test.bin: timer_test.s ports.inc
        $(ASL) -U -L timer_test.s
        $(P2BIN) timer_test.p timer_test.bin -r \$$-$$ -k
        echo \ binclude \"timer_test.bin\" >tmp.s
        $(ASL) -U -L rom_loader.s
        $(P2BIN) rom_loader.p timer_test.bin -r \$$-$$ -k

page_test.bin: page_test.s ports.inc
        $(ASL) -U -L page_test.s
        $(P2BIN) page_test.p page_test.bin -r \$$-$$ -k
        echo \ binclude \"page_test.bin\" >tmp.s
        $(ASL) -U -L rom_loader.s
        $(P2BIN) rom_loader.p page_test.bin -r \$$-$$ -k

sdmp3_test.bin: sdmp3_test.s ports.inc
        $(ASL) -U -L sdmp3_test.s
        $(P2BIN) sdmp3_test.p sdmp3_test.bin -r \$$-$$ -k
        echo \ binclude \"sdmp3_test.bin\" >tmp.s
        $(ASL) -U -L rom_loader.s
        $(P2BIN) rom_loader.p sdmp3_test.bin -r \$$-$$ -k


clean:
        rm tmp.s ports.inc *.bin *.lst