Commit Graph

187 Commits

Author SHA1 Message Date
yenatch
2b38b9ba21 suppress .tx handling in Makefile
there are too many .tx files for the commands to be meaningful

better to just look at the makefile to see what's going on
2013-09-09 23:47:44 -04:00
Sanky
03af68dc41 define PYTHON in Makefile for simpler local changes 2013-09-06 22:25:42 +02:00
yenatch
90e63a8e06 makefile: files in constants/ dont all end in 'constants' anymore
any non-constants asm files shouldn't be in constants/ anyway
2013-09-04 21:57:44 -04:00
Bryan Bishop
9da5768b34 fix baserom.gbc check in Makefile 2013-08-29 11:56:20 -05:00
Bryan Bishop
53d208ce4c fail fast when the baserom.gbc file doesn't exist
One day this will not be required. But until then, waiting one or more
seconds for the build to fail just to learn that you forgot baserom.gbc
is really silly.

This makes failure almost instantaneous compared to before, which would
take between one and ten seconds depending on system performance.

fixes #167
2013-08-28 16:22:50 -05:00
Bryan Bishop
3453879756 Merge branch 'master' into remove-extras 2013-08-27 10:51:30 -05:00
yenatch
dbe8f750fe generate a mapfile and symfile on compile
the symfile is convenient and the mapfile is a better source for labels.json
2013-08-16 13:43:04 -04:00
Bryan Bishop
36b7935bed Merge branch 'master' into remove-extras-fix-make-gfx 2013-08-03 21:40:45 -05:00
Bryan Bishop
daa0760e26 fix gfx/pics/%/front.lz make target
The parameter order was wrong, causing make to always try to make
front.lz files every run.
2013-08-03 21:29:49 -05:00
Bryan Bishop
268a2d28fd probably fix the pngs target for make
Update the submodule to a version where gfx.py is able to handle the
current paths.

Make some other fixes to Makefile to call gfx.py correctly.
2013-08-03 20:13:37 -05:00
Bryan Bishop
a94257c7f8 update Makefile for the new gfx.py path
Why isn't the build breaking?
2013-08-03 18:40:02 -05:00
Bryan Bishop
bb8990dc3c Merge pull request #157 from yenatch/overworld
overworld loop and movement
2013-07-12 19:16:49 -07:00
yenatch
425b727784 make: check wram/constants 2013-07-10 19:17:02 -04:00
Bryan Bishop
7da503ac33 use rm -f in Makefile 2013-06-25 23:48:28 -05:00
yenatch
01954388ea make: don't recompile if it's not necessary
the preprocessor queue was preventing files from being recognized as out-of-date

this highlights similar errors with graphics targets, which need to be fixed anyway
2013-06-21 23:23:22 -04:00
yenatch
e733c4234c preprocess asm files individually
this fixes a lot of previous hacks

first off, rgbds requires that labels from includes be marked as globals.
instead, 3626ddeb stuffed includes into the parent file in the preprocessor.
this meant one huge file got preprocessed every time, adding an additional
ten seconds to compile time.

running the preprocessor once for each file would create too much overhead,
so a list is fed into prequeue.py, which then makes calls to preprocessor.py.

this paves the way for compiling source files separately some day.

next, compiling previously required `make clean` to be executed first.
f3340de6 touched main.asm to force a fresh compile instead. this behavior
has been reverted. now, `make all` will only attempt to recompile if a
source file has changed.

preprocessor.py has some marginal changes. prequeue.py is created to keep
the original functionality of preprocessor.py intact. so many files are
preprocessed on first compile (1951 as of this commit) that the prequeue
call has been hidden.

compile time is reduced to 15-30 seconds on first compile, and 5-10 seconds
subsequently. the majority of this time is spent in rgbasm.
2013-06-21 16:12:40 -04:00
yenatch
f3340de6dc make clean is no longer required to compile 2013-06-18 22:39:13 -04:00
yenatch
2df19fef15 remove makefile clutter 2013-05-28 17:19:37 -04:00
yenatch
ca22f95db0 get rid of windows build components
who needs those anyway?
2013-05-18 04:46:52 -04:00
yenatch
40946fd525 confident enough in lz make target to include it in general compile 2013-05-18 04:46:52 -04:00
yenatch
b5e0efc118 Working lz make target 2013-05-18 04:46:52 -04:00
yenatch
f076f14b98 double-colon rules for .png overrides 2013-04-04 22:50:02 -04:00
yenatch
b6c874d4d4 windows-specific make targets
compiles properly on windows now
2013-04-04 22:45:37 -04:00
yenatch
b570c4d6e6 fix path handling in png make target
lz files were being decompressed to the top directory (gfx/)
2013-03-18 16:36:30 -04:00
yenatch
59f6291afb Split common text out of main.asm 2013-02-17 02:19:49 -05:00
yenatch
ad0578fda0 Fix png export orientation
A quirk of the Decompressed class dissociated the orientation from
the output attribute.

The makefile no longer suppresses output since it's still relevant.
2013-02-12 03:31:35 -05:00
yenatch
8b8f7200a9 Clean up the makefile a bit
Simplifies/explains png import
2013-02-11 17:59:54 -05:00
yenatch
0b8c5ef75b Finish off make target for png generation
Now any existing lz files are converted to 2bpp, and all 2bpp files
are converted to png.
2013-02-11 17:59:43 -05:00
yenatch
d1172e1fb6 Add build target to mass-generate pngs from 2bpp files 2013-02-11 04:13:36 -05:00
yenatch
0b05325e07 Allow png->lz compression in the build process
To enable, append '${IMGFILES}' to line 22:
pokecrystal.o: pokecrystal.asm constants.asm wram.asm ${TEXTFILES} ${IMGFILES}

Also append '${LZFILES}' to line 48:
	rm -f main.tx pokecrystal.o pokecrystal.gbc ${TEXTFILES} ${LZFILES}
2013-02-09 05:23:39 -05:00
IIMarckus
4ee88cd762 Add lots of phone call texts. 2013-01-13 15:40:23 -07:00
Bryan Bishop
802c7780ac use rgbfix to fix the header bytes 2012-05-30 14:13:14 -05:00
IIMarckus
11ed9511cc Add the unused, unreferenced Sweet Honey text. 2012-05-22 21:56:20 -06:00
Bryan Bishop
849c0d132d rename textpre.py -> preprocessor.py 2012-04-26 16:58:20 -05:00
IIMarckus
93902a38bd Add code for the Extremespeed Dratini. 2012-03-20 22:23:40 -06:00
IIMarckus
d5fe70b03b Use textpre.py instead of textpre.awk. 2012-03-05 00:05:36 -07:00
Bryan Bishop
7dc495b3c9 initial commit 2012-03-04 21:31:27 -06:00