gbasys
diff samples/fonts/Makefile @ 0:875ef6085efc
gbasys mercurial repository
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 04 Mar 2012 04:04:25 +0200 |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/samples/fonts/Makefile Sun Mar 04 04:04:25 2012 +0200 1.3 @@ -0,0 +1,23 @@ 1.4 +obj := crt0.o fonts.o 1.5 + 1.6 +CC := arm-agb-elf-gcc 1.7 +AS := arm-agb-elf-as 1.8 +OBJCOPY := arm-agb-elf-objcopy 1.9 + 1.10 +CFLAGS := -std=c99 -pedantic -marm -mcpu=arm7tdmi -I../../src 1.11 + 1.12 +fonts.gba: $(obj) ../../libgbasys.a 1.13 + $(CC) -o /tmp/out.elf $(obj) ../../libgbasys.a -Tlnkscript -nostartfiles -lm 1.14 + $(OBJCOPY) -O binary /tmp/out.elf /tmp/out.flat 1.15 + gba-header -i /tmp/out.flat -o $@ -fix -title thelab -gcode 1212 -mcode 12 1.16 + chmod a+r $@ 1.17 + 1.18 +dep: 1.19 + $(CC) $(CFLAGS) -MM *.c > dep 1.20 + 1.21 +include dep 1.22 + 1.23 +.PHONY: clean 1.24 +clean: 1.25 + @echo Cleaning... 1.26 + @rm -f $(obj)