gbasys

view samples/fonts/Makefile @ 12:a6ddf338a111

line clipping
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 01 Feb 2016 04:41:27 +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)