Merge pull request #66 from stag019/master

Some Makefile stuff
This commit is contained in:
Daniel Harding 2015-01-23 07:35:07 -05:00
commit 5b7c8541db

View file

@ -32,7 +32,7 @@ MD5 := md5sum -c --quiet
# The compare target is a shortcut to check that the build matches the original roms exactly.
# This is for contributors to make sure a change didn't affect the contents of the rom.
# More thorough comparison can be made by diffing the output of hexdump -C against both roms.
compare:
compare: red blue
@$(MD5) roms.md5
@ -84,8 +84,8 @@ $(all_obj): $$*.asm $$($$*_dep)
# Link objects together to build a rom.
# Make a symfile for debugging. rgblink will segfault if a mapfile isn't made too.
link = rgblink -n poke$*.sym -m poke$*.map
# Make a symfile for debugging.
link = rgblink -n poke$*.sym
poke%.gbc: $$(%_obj)
$(link) -o $@ $^
@ -93,5 +93,5 @@ poke%.gbc: $$(%_obj)
clean:
rm -f $(roms) $(all_obj)
rm -f $(roms) $(all_obj) poke*.sym
find . \( -iname '*.1bpp' -o -iname '*.2bpp' -o -iname '*.pic' \) -exec rm {} +