split up image into c and header file

This commit is contained in:
David Voswinkel
2009-08-01 15:16:55 +02:00
parent 553ef0059a
commit 82a6edad50
2 changed files with 28 additions and 12 deletions

View File

@@ -20,8 +20,8 @@ SPCFILE = $(SPCSFILES:.asm=.bin)
all: spc $(OFILES)
$(LD) $(LDFLAGS) linkfile $(ROMFILE)
dd if=$(ROMFILE) of=rom.smc bs=64k count=1
python conv_rle.py > loader.c
python conv_rle.py
$(OFILES): $(SFILES)
$(AC) $(AFLAGS) $(SFILES)
@@ -43,6 +43,6 @@ run:
$(EMU) $(ROMFILE)
clean:
rm -f $(ROMFILE) rom.smc $(SPCFILE) core *~ *.o *.sym *.srm data/apu/*.o data/apu/*.sym
rm -f $(ROMFILE) rom.smc $(SPCFILE) core *~ *.o *.sym *.srm data/apu/*.o data/apu/*.sym loader.c loader.h