summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPokechu22 <Pokechu022@gmail.com>2017-09-26 13:34:51 -0700
committerPokechu22 <Pokechu022@gmail.com>2017-09-26 13:34:51 -0700
commitf72ffe6c52d199c3ea1e0dedec34e8c14cd6258c (patch)
tree00789bf6338edeabe6510d4285f437f7209e6893 /Makefile
parentdcbeb6b641f97a7840ad18c76e3aec1089d184d5 (diff)
Add a linkerscript
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 3447dda6..ff54c247 100644
--- a/Makefile
+++ b/Makefile
@@ -44,8 +44,9 @@ $(objs): %.o: %.asm $$(%_dep)
opts = -cjsv -k 01 -l 0x33 -m 0x1b -p 0 -r 03 -t "POKEMON YELLOW"
$(rom): $(objs)
- rgblink -n $*.sym -o $@ $^
+ rgblink -n $*.sym -l linkerscript.link -o $@ $^
rgbfix $(opts) $@
+ sort $(rom:.gbc=.sym) -o $(rom:.gbc=.sym)
%.png: ;
%.2bpp: %.png ; @$(2bpp) $<