gbasys
annotate 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 |
rev | line source |
---|---|
nuclear@0 | 1 obj := crt0.o fonts.o |
nuclear@0 | 2 |
nuclear@0 | 3 CC := arm-agb-elf-gcc |
nuclear@0 | 4 AS := arm-agb-elf-as |
nuclear@0 | 5 OBJCOPY := arm-agb-elf-objcopy |
nuclear@0 | 6 |
nuclear@0 | 7 CFLAGS := -std=c99 -pedantic -marm -mcpu=arm7tdmi -I../../src |
nuclear@0 | 8 |
nuclear@0 | 9 fonts.gba: $(obj) ../../libgbasys.a |
nuclear@0 | 10 $(CC) -o /tmp/out.elf $(obj) ../../libgbasys.a -Tlnkscript -nostartfiles -lm |
nuclear@0 | 11 $(OBJCOPY) -O binary /tmp/out.elf /tmp/out.flat |
nuclear@0 | 12 gba-header -i /tmp/out.flat -o $@ -fix -title thelab -gcode 1212 -mcode 12 |
nuclear@0 | 13 chmod a+r $@ |
nuclear@0 | 14 |
nuclear@0 | 15 dep: |
nuclear@0 | 16 $(CC) $(CFLAGS) -MM *.c > dep |
nuclear@0 | 17 |
nuclear@0 | 18 include dep |
nuclear@0 | 19 |
nuclear@0 | 20 .PHONY: clean |
nuclear@0 | 21 clean: |
nuclear@0 | 22 @echo Cleaning... |
nuclear@0 | 23 @rm -f $(obj) |