gbasys

view samples/fonts/Makefile @ 10:9d05431f4a16

fixed GET_R/GET_B macros which where reversed
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 30 Jan 2016 05:23:48 +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)