summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2015-10-25 02:44:58 -0400
committeryenatch <yenatch@gmail.com>2015-10-25 02:44:58 -0400
commited48f56e981cebcd0301a2c9c91400f58200762e (patch)
treed869a5542be796fd042b3cec48031021a6fea233 /Makefile
parent4634304dcebf055ed0e1cab171c2d28e66399763 (diff)
Get rid of queues.
For faster builds, use `make -j`.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 6 insertions, 14 deletions
diff --git a/Makefile b/Makefile
index 5cc485c1..58871a24 100644
--- a/Makefile
+++ b/Makefile
@@ -66,29 +66,21 @@ $(foreach obj, $(all_obj), \
)
-# Image files are added to a queue to reduce build time. They're converted when building parent objects.
%.png: ;
-%.2bpp: %.png ; $(eval 2bppq += $<) @rm -f $@
-%.1bpp: %.png ; $(eval 1bppq += $<) @rm -f $@
-%.pic: %.2bpp ; $(eval picq += $<) @rm -f $@
+%.2bpp: %.png ; @$(gfx) 2bpp $<
+%.1bpp: %.png ; @$(gfx) 1bpp $<
+%.pic: %.2bpp ; @$(pic) compress $<
# Assemble source files into objects.
-# Queue payloads are here. These are made silent since there may be hundreds of targets.
-# Use rgbasm -h to use halts without nops.
$(all_obj): $$*.asm $$($$*_dep)
- @$(gfx) 2bpp $(2bppq); $(eval 2bppq :=)
- @$(gfx) 1bpp $(1bppq); $(eval 1bppq :=)
- @$(pic) compress $(picq); $(eval picq :=)
rgbasm -h -o $@ $*.asm
-
-# Link objects together to build a rom.
-
# Make a symfile for debugging.
-link = rgblink -n poke$*.sym
+link_opt = -n poke$*.sym
+# Link objects together to build a rom.
poke%.gbc: $$(%_obj)
- $(link) -o $@ $^
+ rgblink $(link_opt) -o $@ $^
rgbfix $($*_opt) $@