gbasys

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