Also have the common bits of the preprocessor.
That version was better anyway.
This doesn't really belong in both pokecrystal and pokered. It should be shared between the two without copy/paste.
These commits (roughly) represent the changes made against extras/ by yenatch. These are not cherrypicked and this isn't repeatable, sorry.
see also: d4e6ccca3b8cf1d5efb851153af8d9dd8c9de1e9