all repos — mgba @ 610982fdcf357d7699a1a9c02e5f4d2e71d8a4f3

mGBA Game Boy Advance Emulator

Add makefile for regenerating hle-bios.c so I can stop doing it by hand
Jeffrey Pfau jeffrey@endrift.com
Sat, 30 Aug 2014 04:25:20 -0700
commit

610982fdcf357d7699a1a9c02e5f4d2e71d8a4f3

parent

9a87840e7e9b6bceefdb5c3dd3c43d2cbff06ca6

1 files changed, 18 insertions(+), 0 deletions(-)

jump to
A src/gba/hle-bios.make

@@ -0,0 +1,18 @@

+PREFIX := $(DEVKITARM)/bin/arm-none-eabi- +AS := $(PREFIX)as +OBJCOPY := $(PREFIX)objcopy + +all: hle-bios.c + +hle-bios.o: hle-bios.s + $(AS) -o $@ $< + +hle-bios.bin: hle-bios.o + $(OBJCOPY) -O binary $< $@ + +hle-bios.c: hle-bios.bin + echo '#include "hle-bios.h"' > $@ + echo >> $@ + echo '#include "gba-memory.h"' >> $@ + echo >> $@ + xxd -i $< | sed -e 's/unsigned char hle_bios_bin\[\]/const uint8_t hleBios[SIZE_BIOS]/' | grep -v hle_bios_bin_len >> $@