monstillfrontdir := graphics/pokemon/front_pics monbackdir := graphics/pokemon/back_pics monfrontdir := graphics/pokemon/anim_front_pics monpaldir := graphics/pokemon/palettes tilesetdir := data/tilesets fontdir := data/graphics/fonts menudir := graphics/interface btanimgfxdir := graphics/battle_anims/sprites unusedgfxdir := graphics/unused unknowngfxdir := graphics/unknown btintgfxdir := graphics/battle_interface masksgfxdir := graphics/battle_anims/masks bttransgfxdir := graphics/battle_transitions typesdir := graphics/types rayquazadir := graphics/rayquaza_scene roulettegfxdir := graphics/roulette pknvdir := graphics/pokenav pknvoptionsdir := graphics/pokenav/options types := normal fight flying poison ground rock bug ghost steel mystery fire water grass electric psychic ice dragon dark contest_types := cool beauty cute smart tough $(monstillfrontdir)/castform_still_front_pic.4bpp: $(monstillfrontdir)/castform_normal_form_still_front_pic.4bpp \ $(monstillfrontdir)/castform_sunny_form_still_front_pic.4bpp \ $(monstillfrontdir)/castform_rainy_form_still_front_pic.4bpp \ $(monstillfrontdir)/castform_snowy_form_still_front_pic.4bpp @cat $^ >$@ $(monbackdir)/castform_back_pic.4bpp: $(monbackdir)/castform_normal_form_back_pic.4bpp \ $(monbackdir)/castform_sunny_form_back_pic.4bpp \ $(monbackdir)/castform_rainy_form_back_pic.4bpp \ $(monbackdir)/castform_snowy_form_back_pic.4bpp @cat $^ >$@ $(monfrontdir)/castform_front_pic.4bpp: $(monfrontdir)/castform_normal_form_front_pic.4bpp \ $(monfrontdir)/castform_sunny_form_front_pic.4bpp \ $(monfrontdir)/castform_rainy_form_front_pic.4bpp \ $(monfrontdir)/castform_snowy_form_front_pic.4bpp @cat $^ >$@ $(monpaldir)/castform_palette.gbapal: $(monpaldir)/castform_normal_form_palette.gbapal \ $(monpaldir)/castform_sunny_form_palette.gbapal \ $(monpaldir)/castform_rainy_form_palette.gbapal \ $(monpaldir)/castform_snowy_form_palette.gbapal @cat $^ >$@ $(monpaldir)/castform_shiny_palette.gbapal: $(monpaldir)/castform_normal_form_shiny_palette.gbapal \ $(monpaldir)/castform_sunny_form_shiny_palette.gbapal \ $(monpaldir)/castform_rainy_form_shiny_palette.gbapal \ $(monpaldir)/castform_snowy_form_shiny_palette.gbapal @cat $^ >$@ $(tilesetdir)/secondary/petalburg/tiles.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 159 $(tilesetdir)/secondary/rustboro/tiles.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 498 $(tilesetdir)/secondary/dewford/tiles.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 503 $(tilesetdir)/secondary/slateport/tiles.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 504 $(tilesetdir)/secondary/mauville/tiles.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 503 $(tilesetdir)/secondary/lavaridge/tiles.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 450 $(tilesetdir)/secondary/fortree/tiles.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 493 $(tilesetdir)/secondary/pacifidlog/tiles.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 504 $(tilesetdir)/secondary/sootopolis/tiles.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 328 $(tilesetdir)/secondary/battle_frontier_outside_west/tiles.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 508 $(tilesetdir)/secondary/battle_frontier_outside_east/tiles.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 508 $(tilesetdir)/primary/building/tiles.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 502 $(tilesetdir)/secondary/shop/tiles.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 502 $(tilesetdir)/secondary/pokemon_center/tiles.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 478 $(tilesetdir)/secondary/cave/tiles.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 425 $(tilesetdir)/secondary/pokemon_school/tiles.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 278 $(tilesetdir)/secondary/pokemon_fan_club/tiles.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 319 $(tilesetdir)/secondary/unused_1/tiles.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 17 $(tilesetdir)/secondary/meteor_falls/tiles.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 460 $(tilesetdir)/secondary/oceanic_museum/tiles.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 319 $(tilesetdir)/secondary/cable_club/unknown_tiles.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 120 $(tilesetdir)/secondary/seashore_house/tiles.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 312 $(tilesetdir)/secondary/pretty_petal_flower_shop/tiles.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 345 $(tilesetdir)/secondary/pokemon_day_care/tiles.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 355 $(tilesetdir)/secondary/secret_base/brown_cave/unused_tiles.4bpp: $(tilesetdir)/secondary/secret_base/brown_cave/tiles.png $(GFX) $< $@ -num_tiles 82 $(tilesetdir)/secondary/secret_base/tree/unused_tiles.4bpp: $(tilesetdir)/secondary/secret_base/tree/tiles.png $(GFX) $< $@ -num_tiles 82 $(tilesetdir)/secondary/secret_base/shrub/unused_tiles.4bpp: $(tilesetdir)/secondary/secret_base/shrub/tiles.png $(GFX) $< $@ -num_tiles 82 $(tilesetdir)/secondary/secret_base/blue_cave/unused_tiles.4bpp: $(tilesetdir)/secondary/secret_base/blue_cave/tiles.png $(GFX) $< $@ -num_tiles 82 $(tilesetdir)/secondary/secret_base/yellow_cave/unused_tiles.4bpp: $(tilesetdir)/secondary/secret_base/yellow_cave/tiles.png $(GFX) $< $@ -num_tiles 82 $(tilesetdir)/secondary/secret_base/red_cave/unused_tiles.4bpp: $(tilesetdir)/secondary/secret_base/red_cave/tiles.png $(GFX) $< $@ -num_tiles 82 $(tilesetdir)/secondary/secret_base/brown_cave/tiles.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 83 $(tilesetdir)/secondary/secret_base/tree/tiles.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 83 $(tilesetdir)/secondary/secret_base/shrub/tiles.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 83 $(tilesetdir)/secondary/secret_base/blue_cave/tiles.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 83 $(tilesetdir)/secondary/secret_base/yellow_cave/tiles.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 83 $(tilesetdir)/secondary/secret_base/red_cave/tiles.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 83 $(tilesetdir)/secondary/inside_of_truck/tiles.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 62 $(tilesetdir)/secondary/contest/tiles.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 430 $(tilesetdir)/secondary/lilycove_museum/tiles.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 431 $(tilesetdir)/secondary/lab/tiles.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 500 $(tilesetdir)/secondary/underwater/tiles.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 500 $(tilesetdir)/secondary/generic_building/tiles.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 509 $(tilesetdir)/secondary/mauville_game_corner/tiles.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 469 $(tilesetdir)/secondary/unused_2/tiles.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 150 $(tilesetdir)/secondary/rustboro_gym/tiles.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 60 $(tilesetdir)/secondary/dewford_gym/tiles.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 61 $(tilesetdir)/secondary/lavaridge_gym/tiles.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 54 $(tilesetdir)/secondary/petalburg_gym/tiles.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 148 $(tilesetdir)/secondary/fortree_gym/tiles.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 61 $(tilesetdir)/secondary/mossdeep_gym/tiles.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 82 $(tilesetdir)/secondary/sootopolis_gym/tiles.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 484 $(tilesetdir)/secondary/trick_house_puzzle/tiles.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 294 $(tilesetdir)/secondary/inside_ship/tiles.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 342 $(tilesetdir)/secondary/elite_four/tiles.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 505 $(tilesetdir)/secondary/battle_frontier/tiles.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 310 $(tilesetdir)/secondary/battle_factory/tiles.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 424 $(tilesetdir)/secondary/battle_pike/tiles.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 382 $(tilesetdir)/secondary/mirage_tower/tiles.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 420 $(tilesetdir)/secondary/mossdeep_game_corner/tiles.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 95 $(tilesetdir)/secondary/island_harbor/tiles.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 503 $(tilesetdir)/secondary/trainer_hill/tiles.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 374 $(tilesetdir)/secondary/navel_rock/tiles.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 420 $(tilesetdir)/secondary/battle_frontier_ranking_hall/tiles.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 136 $(tilesetdir)/secondary/mystery_events_house/tiles.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 509 $(fontdir)/font0.latfont: $(fontdir)/font0_latin.png $(GFX) $< $@ $(fontdir)/font1.latfont: $(fontdir)/font1_latin.png $(GFX) $< $@ $(fontdir)/font2.latfont: $(fontdir)/font2_latin.png $(GFX) $< $@ $(fontdir)/font7.latfont: $(fontdir)/font7_latin.png $(GFX) $< $@ $(fontdir)/font8.latfont: $(fontdir)/font8_latin.png $(GFX) $< $@ $(fontdir)/font0.hwjpnfont: $(fontdir)/font0_japanese.png $(GFX) $< $@ $(fontdir)/font1.hwjpnfont: $(fontdir)/font1_japanese.png $(GFX) $< $@ $(fontdir)/font9.hwjpnfont: $(fontdir)/font9_japanese.png $(GFX) $< $@ $(fontdir)/font2.fwjpnfont: $(fontdir)/font2_japanese.png $(GFX) $< $@ $(fontdir)/font6.fwjpnfont: $(fontdir)/font6_braille.png $(GFX) $< $@ $(fontdir)/unused_frlg_male.fwjpnfont: $(fontdir)/unused_japanese_frlg_male_font.png $(GFX) $< $@ $(fontdir)/unused_frlg_female.fwjpnfont: $(fontdir)/unused_japanese_frlg_female_font.png $(GFX) $< $@ $(fontdir)/down_arrow.4bpp: %.4bpp: %.png $(GFX) $< $@ $(fontdir)/down_arrow_rs.4bpp: %.4bpp: %.png $(GFX) $< $@ $(fontdir)/unused_frlg_blanked_down_arrow.4bpp: %.4bpp: %.png $(GFX) $< $@ $(fontdir)/unused_frlg_down_arrow.4bpp: %.4bpp: %.png $(GFX) $< $@ $(fontdir)/keypad_icons.4bpp: %.4bpp: %.png $(GFX) $< $@ graphics/title_screen/pokemon_logo.gbapal: %.gbapal: %.pal $(GFX) $< $@ -num_colors 224 graphics/intro/copyright.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 39 graphics/interface/pkmnjump_bg.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 63 graphics/pokenav/region_map.8bpp: %.8bpp: %.png $(GFX) $< $@ -num_tiles 233 graphics/misc/japanese_hof.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 29 $(menudir)/menu.gbapal: $(menudir)/menu_0.gbapal \ $(menudir)/menu_1.gbapal @cat $^ >$@ $(btanimgfxdir)/010.4bpp: $(btanimgfxdir)/010_0.4bpp \ $(btanimgfxdir)/010_1.4bpp \ $(btanimgfxdir)/010_2.4bpp \ $(btanimgfxdir)/010_3.4bpp @cat $^ >$@ $(unusedgfxdir)/obi_palpak1.gbapal: $(unusedgfxdir)/old_pal1.gbapal \ $(unusedgfxdir)/old_pal2.gbapal \ $(unusedgfxdir)/old_pal3.gbapal @cat $^ >$@ $(unusedgfxdir)/obi_palpak3.gbapal: $(unusedgfxdir)/old_pal5.gbapal \ $(unusedgfxdir)/old_pal6.gbapal \ $(unusedgfxdir)/old_pal7.gbapal @cat $^ >$@ $(unusedgfxdir)/obi1.4bpp: $(unusedgfxdir)/old_bulbasaur.4bpp \ $(unusedgfxdir)/old_charizard.4bpp @cat $^ >$@ $(unusedgfxdir)/obi2.4bpp: $(unusedgfxdir)/old_bulbasaur2.4bpp \ $(unusedgfxdir)/old_battle_interface_1.4bpp \ $(unusedgfxdir)/old_battle_interface_2.4bpp \ $(unusedgfxdir)/old_battle_interface_3.4bpp @cat $^ >$@ $(menudir)/hp_numbers.4bpp: $(menudir)/hpbar_anim.4bpp \ $(menudir)/numbers1.4bpp \ $(menudir)/numbers2.4bpp @cat $^ >$@ $(unusedgfxdir)/redyellowgreen_frame.bin: $(unusedgfxdir)/red_frame.bin \ $(unusedgfxdir)/yellow_frame.bin \ $(unusedgfxdir)/green_frame.bin \ $(unusedgfxdir)/blank_frame.bin @cat $^ >$@ $(unusedgfxdir)/color_frames.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 353 $(btintgfxdir)/unused_window2bar.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 5 $(unusedgfxdir)/old_contest.4bpp: $(unusedgfxdir)/old_contest_frame_1.4bpp \ $(unusedgfxdir)/old_contest_floor.4bpp \ $(unusedgfxdir)/old_contest_frame_2.4bpp \ $(unusedgfxdir)/old_contest_symbols.4bpp \ $(unusedgfxdir)/old_contest_meter.4bpp \ $(unusedgfxdir)/old_contest_classes.4bpp \ $(unusedgfxdir)/old_contest_numbers.4bpp @cat $^ >$@ $(unusedgfxdir)/old_contest_2.4bpp: $(unusedgfxdir)/old_contest_2_1.4bpp \ $(unusedgfxdir)/old_contest_2_2.4bpp @cat $^ >$@ $(unknowngfxdir)/unknown_C19470.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 36 $(btanimgfxdir)/141.4bpp: $(btanimgfxdir)/141_0.4bpp \ $(btanimgfxdir)/141_1.4bpp \ $(btanimgfxdir)/141_2.4bpp \ $(btanimgfxdir)/141_3.4bpp \ $(btanimgfxdir)/141_4.4bpp @cat $^ >$@ $(btanimgfxdir)/074.4bpp: $(btanimgfxdir)/074_0.4bpp \ $(btanimgfxdir)/074_1.4bpp @cat $^ >$@ $(btanimgfxdir)/159.4bpp: $(btanimgfxdir)/159_0.4bpp \ $(btanimgfxdir)/159_1.4bpp @cat $^ >$@ $(btanimgfxdir)/001.4bpp: $(btanimgfxdir)/001_0.4bpp \ $(btanimgfxdir)/001_1.4bpp @cat $^ >$@ $(masksgfxdir)/unknown_C2EA50.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 14 $(bttransgfxdir)/vs_frame.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 16 $(menudir)/party_menu_misc.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 62 $(typesdir)/move_types.4bpp: $(types:%=$(typesdir)/%.4bpp) $(contest_types:%=$(typesdir)/contest_%.4bpp) @cat $^ >$@ $(typesdir)/move_types.gbapal: $(typesdir)/move_types_1.gbapal \ $(typesdir)/move_types_2.gbapal \ $(typesdir)/move_types_3.gbapal @cat $^ >$@ $(menudir)/bag_screen.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 53 $(rayquazadir)/rayquaza.8bpp: %.8bpp: %.png $(GFX) $< $@ -num_tiles 227 $(rayquazadir)/overcast.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 313 $(rayquazadir)/rayquaza_fly1.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 124 $(rayquazadir)/rayquaza_tail_fix.4bpp: $(rayquazadir)/rayquaza_tail.4bpp cp $< $@ head -c 12 /dev/zero >> $@ $(rayquazadir)/chase_streaks.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 19 $(rayquazadir)/rayquaza_chase.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 155 graphics/picture_frame/frame5.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 86 $(roulettegfxdir)/roulette_tilt.4bpp: $(roulettegfxdir)/shroomish.4bpp \ $(roulettegfxdir)/tailow.4bpp @cat $^ >$@ $(roulettegfxdir)/poke_icons2.4bpp: $(roulettegfxdir)/wynaut.4bpp \ $(roulettegfxdir)/azurill.4bpp \ $(roulettegfxdir)/skitty.4bpp \ $(roulettegfxdir)/makuhita.4bpp @cat $^ >$@ $(bttransgfxdir)/85BBC14.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 53 $(bttransgfxdir)/rayquaza.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 938 $(bttransgfxdir)/frontier_square_1.4bpp: $(bttransgfxdir)/frontier_squares_blanktiles.4bpp \ $(bttransgfxdir)/frontier_squares_1.4bpp @cat $^ >$@ $(bttransgfxdir)/frontier_square_2.4bpp: $(bttransgfxdir)/frontier_squares_blanktiles.4bpp \ $(bttransgfxdir)/frontier_squares_2.4bpp @cat $^ >$@ $(bttransgfxdir)/frontier_square_3.4bpp: $(bttransgfxdir)/frontier_squares_blanktiles.4bpp \ $(bttransgfxdir)/frontier_squares_3.4bpp @cat $^ >$@ $(bttransgfxdir)/frontier_square_4.4bpp: $(bttransgfxdir)/frontier_squares_blanktiles.4bpp \ $(bttransgfxdir)/frontier_squares_4.4bpp @cat $^ >$@ $(pknvoptionsdir)/options.4bpp: $(pknvoptionsdir)/hoenn_map.4bpp \ $(pknvoptionsdir)/condition.4bpp \ $(pknvoptionsdir)/match_call.4bpp \ $(pknvoptionsdir)/ribbons.4bpp \ $(pknvoptionsdir)/switch_off.4bpp \ $(pknvoptionsdir)/party.4bpp \ $(pknvoptionsdir)/search.4bpp \ $(pknvoptionsdir)/cool.4bpp \ $(pknvoptionsdir)/beauty.4bpp \ $(pknvoptionsdir)/cute.4bpp \ $(pknvoptionsdir)/smart.4bpp \ $(pknvoptionsdir)/tough.4bpp \ $(pknvoptionsdir)/cancel.4bpp @cat $^ >$@ $(pknvdir)/header.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 53 $(pknvdir)/outline.4bpp: $(pknvdir)/outline.png $(GFX) $< $@ -num_tiles 53 $(pknvdir)/ui_matchcall.4bpp: $(pknvdir)/ui_matchcall.png $(GFX) $< $@ -num_tiles 13