diff options
| author | dannye <corrnondacqb@yahoo.com> | 2015-08-05 17:56:50 -0500 |
|---|---|---|
| committer | dannye <corrnondacqb@yahoo.com> | 2015-08-05 17:56:50 -0500 |
| commit | 5978562fa17b8663cf85cbe9ced6e4ccbf46d8af (patch) | |
| tree | 78e1d56cea34bca9a6150a7773e8fbda75591b32 /Makefile | |
| parent | f8a9c37a0019eb085c22c6e3ae53b16ff0cd4f6a (diff) | |
Use rgbgfx
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -66,18 +66,19 @@ $(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 $@ +# Image files are converted using rgbgfx. Pokemon pics are added to a queue and compressed. +.png.2bpp: + @rgbgfx -o $@ $< + +.png.1bpp: + @rgbgfx -b -o $@ $< + %.pic: %.2bpp ; $(eval picq += $<) @rm -f $@ # 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 |
