Initial Makefile sync
This commit is contained in:
@@ -1,17 +1,20 @@
|
|||||||
TOOLCHAIN := $(DEVKITARM)
|
include config.mk
|
||||||
COMPARE ?= 0
|
|
||||||
|
|
||||||
|
# Default make rule
|
||||||
|
all: rom
|
||||||
|
|
||||||
|
# Toolchain selection
|
||||||
|
TOOLCHAIN := $(DEVKITARM)
|
||||||
# don't use dkP's base_tools anymore
|
# don't use dkP's base_tools anymore
|
||||||
# because the redefinition of $(CC) conflicts
|
# because the redefinition of $(CC) conflicts
|
||||||
# with when we want to use $(CC) to preprocess files
|
# with when we want to use $(CC) to preprocess files
|
||||||
# thus, manually create the variables for the bin
|
# thus, manually create the variables for the bin
|
||||||
# files, or use arm-none-eabi binaries on the system
|
# files, or use arm-none-eabi binaries on the system
|
||||||
# if dkP is not installed on this system
|
# if dkP is not installed on this system
|
||||||
|
|
||||||
ifneq (,$(TOOLCHAIN))
|
ifneq (,$(TOOLCHAIN))
|
||||||
ifneq ($(wildcard $(TOOLCHAIN)/bin),)
|
ifneq ($(wildcard $(TOOLCHAIN)/bin),)
|
||||||
export PATH := $(TOOLCHAIN)/bin:$(PATH)
|
export PATH := $(TOOLCHAIN)/bin:$(PATH)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
PREFIX := arm-none-eabi-
|
PREFIX := arm-none-eabi-
|
||||||
@@ -20,14 +23,9 @@ OBJDUMP := $(PREFIX)objdump
|
|||||||
AS := $(PREFIX)as
|
AS := $(PREFIX)as
|
||||||
LD := $(PREFIX)ld
|
LD := $(PREFIX)ld
|
||||||
|
|
||||||
# note: the makefile must be set up so MODERNCC is never called
|
|
||||||
# if MODERN=0
|
|
||||||
MODERNCC := $(PREFIX)gcc
|
|
||||||
|
|
||||||
ifeq ($(OS),Windows_NT)
|
|
||||||
EXE := .exe
|
|
||||||
else
|
|
||||||
EXE :=
|
EXE :=
|
||||||
|
ifeq ($(OS),Windows_NT)
|
||||||
|
EXE := .exe
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# use arm-none-eabi-cpp for macOS
|
# use arm-none-eabi-cpp for macOS
|
||||||
@@ -47,42 +45,20 @@ else
|
|||||||
CPP := $(PREFIX)cpp
|
CPP := $(PREFIX)cpp
|
||||||
endif
|
endif
|
||||||
|
|
||||||
include config.mk
|
|
||||||
|
|
||||||
GCC_VER = $(shell $(CC) -dumpversion)
|
|
||||||
|
|
||||||
ifeq ($(MODERN),0)
|
|
||||||
CC1 := tools/agbcc/bin/agbcc$(EXE)
|
|
||||||
override CFLAGS += -mthumb-interwork -Wimplicit -Wparentheses -Werror -O2 -fhex-asm
|
|
||||||
LIBPATH := -L ../../tools/agbcc/lib
|
|
||||||
else
|
|
||||||
CC1 := $(shell $(MODERNCC) --print-prog-name=cc1) -quiet
|
|
||||||
override CFLAGS += -mthumb -mthumb-interwork -O2 -mcpu=arm7tdmi -mabi=apcs-gnu -fno-toplevel-reorder -fno-aggressive-loop-optimizations -Wno-pointer-to-int-cast
|
|
||||||
LIBPATH := -L $(shell dirname $(shell $(MODERNCC) --print-file-name=libgcc.a)) -L $(shell dirname $(shell $(MODERNCC) --print-file-name=libc.a))
|
|
||||||
endif
|
|
||||||
|
|
||||||
CPPFLAGS := -iquote include -D$(GAME_VERSION) -DREVISION=$(GAME_REVISION) -D$(GAME_LANGUAGE) -DMODERN=$(MODERN)
|
|
||||||
ifeq ($(MODERN),0)
|
|
||||||
CPPFLAGS += -I tools/agbcc -I tools/agbcc/include -nostdinc -undef
|
|
||||||
endif
|
|
||||||
|
|
||||||
SHELL := /bin/bash -o pipefail
|
|
||||||
|
|
||||||
ROM := poke$(BUILD_NAME).gba
|
ROM := poke$(BUILD_NAME).gba
|
||||||
OBJ_DIR := build/$(BUILD_NAME)
|
OBJ_DIR := $(BUILD_DIR)/$(BUILD_NAME)
|
||||||
|
|
||||||
ELF = $(ROM:.gba=.elf)
|
ELF := $(ROM:.gba=.elf)
|
||||||
MAP = $(ROM:.gba=.map)
|
MAP := $(ROM:.gba=.map)
|
||||||
SYM = $(ROM:.gba=.sym)
|
SYM := $(ROM:.gba=.sym)
|
||||||
|
|
||||||
|
# Commonly used directories
|
||||||
C_SUBDIR = src
|
C_SUBDIR = src
|
||||||
DATA_C_SUBDIR = src/data
|
|
||||||
ASM_SUBDIR = asm
|
ASM_SUBDIR = asm
|
||||||
|
DATA_SRC_SUBDIR = src/data
|
||||||
DATA_ASM_SUBDIR = data
|
DATA_ASM_SUBDIR = data
|
||||||
SONG_SUBDIR = sound/songs
|
SONG_SUBDIR = sound/songs
|
||||||
MID_SUBDIR = sound/songs/midi
|
MID_SUBDIR = sound/songs/midi
|
||||||
SAMPLE_SUBDIR = sound/direct_sound_samples
|
|
||||||
CRY_SUBDIR = sound/direct_sound_samples/cries
|
|
||||||
|
|
||||||
C_BUILDDIR = $(OBJ_DIR)/$(C_SUBDIR)
|
C_BUILDDIR = $(OBJ_DIR)/$(C_SUBDIR)
|
||||||
ASM_BUILDDIR = $(OBJ_DIR)/$(ASM_SUBDIR)
|
ASM_BUILDDIR = $(OBJ_DIR)/$(ASM_SUBDIR)
|
||||||
@@ -90,32 +66,55 @@ DATA_ASM_BUILDDIR = $(OBJ_DIR)/$(DATA_ASM_SUBDIR)
|
|||||||
SONG_BUILDDIR = $(OBJ_DIR)/$(SONG_SUBDIR)
|
SONG_BUILDDIR = $(OBJ_DIR)/$(SONG_SUBDIR)
|
||||||
MID_BUILDDIR = $(OBJ_DIR)/$(MID_SUBDIR)
|
MID_BUILDDIR = $(OBJ_DIR)/$(MID_SUBDIR)
|
||||||
|
|
||||||
|
SHELL := bash -o pipefail
|
||||||
|
|
||||||
|
# Set flags for tools
|
||||||
ASFLAGS := -mcpu=arm7tdmi --defsym $(GAME_VERSION)=1 --defsym REVISION=$(GAME_REVISION) --defsym $(GAME_LANGUAGE)=1 --defsym MODERN=$(MODERN)
|
ASFLAGS := -mcpu=arm7tdmi --defsym $(GAME_VERSION)=1 --defsym REVISION=$(GAME_REVISION) --defsym $(GAME_LANGUAGE)=1 --defsym MODERN=$(MODERN)
|
||||||
|
|
||||||
LDFLAGS = -Map ../../$(MAP)
|
INCLUDE_DIRS := include
|
||||||
|
INCLUDE_CPP_ARGS := $(INCLUDE_DIRS:%=-iquote %)
|
||||||
|
INCLUDE_SCANINC_ARGS := $(INCLUDE_DIRS:%=-I %)
|
||||||
|
|
||||||
LIB := $(LIBPATH) -lc -lgcc
|
O_LEVEL ?= 2
|
||||||
ifneq ($(MODERN),0)
|
CPPFLAGS := $(INCLUDE_CPP_ARGS) -Wno-trigraphs -D$(GAME_VERSION) -DREVISION=$(GAME_REVISION) -D$(GAME_LANGUAGE) -DMODERN=$(MODERN)
|
||||||
ifneq ($(DEVKITARM),)
|
ifeq ($(MODERN),0)
|
||||||
ifeq ($(TOOLCHAIN),$(DEVKITARM))
|
CPPFLAGS += -I tools/agbcc/include -I tools/agbcc -nostdinc -undef
|
||||||
LIB += -lsysbase -lc
|
CC1 := tools/agbcc/bin/agbcc$(EXE)
|
||||||
|
override CFLAGS += -mthumb-interwork -Wimplicit -Wparentheses -Werror -O$(O_LEVEL) -fhex-asm
|
||||||
|
LIBPATH := -L ../../tools/agbcc/lib
|
||||||
|
LIB := $(LIBPATH) -lgcc -lc
|
||||||
|
else
|
||||||
|
# Note: The makefile must be set up to not call these if modern == 0
|
||||||
|
MODERNCC := $(PREFIX)gcc
|
||||||
|
PATH_MODERNCC := PATH="$(PATH)" $(MODERNCC)
|
||||||
|
CC1 := $(shell $(PATH_MODERNCC) --print-prog-name=cc1) -quiet
|
||||||
|
override CFLAGS += -mthumb -mthumb-interwork -O$(O_LEVEL) -mabi=apcs-gnu -mtune=arm7tdmi -march=armv4t -fno-toplevel-reorder -Wno-pointer-to-int-cast
|
||||||
|
LIBPATH := -L "$(dir $(shell $(PATH_MODERNCC) -mthumb -print-file-name=libgcc.a))" -L "$(dir $(shell $(PATH_MODERNCC) -mthumb -print-file-name=libnosys.a))" -L "$(dir $(shell $(PATH_MODERNCC) -mthumb -print-file-name=libc.a))"
|
||||||
|
LIB := $(LIBPATH) -lgcc -lc -lnosys
|
||||||
endif
|
endif
|
||||||
endif
|
# Enable debug info if set
|
||||||
LIB += -lnosys
|
ifeq ($(DINFO),1)
|
||||||
|
override CFLAGS += -g
|
||||||
endif
|
endif
|
||||||
|
|
||||||
SHA1 := $(shell { command -v sha1sum || command -v shasum; } 2>/dev/null) -c
|
# Variable filled out in other make files
|
||||||
GFX := tools/gbagfx/gbagfx
|
AUTO_GEN_TARGETS :=
|
||||||
AIF := tools/aif2pcm/aif2pcm
|
include make_tools.mk
|
||||||
MID := tools/mid2agb/mid2agb
|
# Tool executables
|
||||||
SCANINC := tools/scaninc/scaninc
|
GFX := $(TOOLS_DIR)/gbagfx/gbagfx$(EXE)
|
||||||
PREPROC := tools/preproc/preproc
|
AIF := $(TOOLS_DIR)/aif2pcm/aif2pcm$(EXE)
|
||||||
RAMSCRGEN := tools/ramscrgen/ramscrgen
|
MID := $(TOOLS_DIR)/mid2agb/mid2agb$(EXE)
|
||||||
FIX := tools/gbafix/gbafix
|
SCANINC := $(TOOLS_DIR)/scaninc/scaninc$(EXE)
|
||||||
MAPJSON := tools/mapjson/mapjson
|
PREPROC := $(TOOLS_DIR)/preproc/preproc$(EXE)
|
||||||
JSONPROC := tools/jsonproc/jsonproc
|
RAMSCRGEN := $(TOOLS_DIR)/ramscrgen/ramscrgen$(EXE)
|
||||||
|
FIX := $(TOOLS_DIR)/gbafix/gbafix$(EXE)
|
||||||
|
MAPJSON := $(TOOLS_DIR)/mapjson/mapjson$(EXE)
|
||||||
|
JSONPROC := $(TOOLS_DIR)/jsonproc/jsonproc$(EXE)
|
||||||
|
|
||||||
PERL := perl
|
PERL := perl
|
||||||
|
SHA1 := $(shell { command -v sha1sum || command -v shasum; } 2>/dev/null) -c
|
||||||
|
|
||||||
|
MAKEFLAGS += --no-print-directory
|
||||||
|
|
||||||
# Clear the default suffixes
|
# Clear the default suffixes
|
||||||
.SUFFIXES:
|
.SUFFIXES:
|
||||||
@@ -124,25 +123,41 @@ PERL := perl
|
|||||||
# Delete files that weren't built properly
|
# Delete files that weren't built properly
|
||||||
.DELETE_ON_ERROR:
|
.DELETE_ON_ERROR:
|
||||||
|
|
||||||
# Secondary expansion is required for dependency variables in object rules.
|
ALL_BUILDS := firered firered_rev1 leafgreen leafgreen_rev1
|
||||||
.SECONDEXPANSION:
|
ALL_BUILDS += $(ALL_BUILDS:%=%_modern)
|
||||||
|
|
||||||
$(shell mkdir -p $(C_BUILDDIR) $(ASM_BUILDDIR) $(DATA_ASM_BUILDDIR) $(SONG_BUILDDIR) $(MID_BUILDDIR))
|
RULES_NO_SCAN += clean clean-assets tidy generated clean-generated
|
||||||
|
.PHONY: all rom modern compare $(ALL_BUILDS) $(ALL_BUILDS:%=compare_%)
|
||||||
|
.PHONY: $(RULES_NO_SCAN)
|
||||||
|
|
||||||
infoshell = $(foreach line, $(shell $1 | sed "s/ /__SPACE__/g"), $(info $(subst __SPACE__, ,$(line))))
|
infoshell = $(foreach line, $(shell $1 | sed "s/ /__SPACE__/g"), $(info $(subst __SPACE__, ,$(line))))
|
||||||
|
|
||||||
# Build tools when building the rom
|
# Check if we need to scan dependencies based on the chosen rule OR user preference
|
||||||
# Disable dependency scanning for clean/tidy/tools
|
NODEP ?= 0
|
||||||
ifeq (,$(filter-out all compare syms modern,$(MAKECMDGOALS)))
|
# Check if we need to pre-build tools and generate assets based on the chosen rule.
|
||||||
$(call infoshell, $(MAKE) tools)
|
SETUP_PREREQS ?= 1
|
||||||
else
|
# Disable dependency scanning for rules that don't need it.
|
||||||
NODEP := 1
|
ifneq (,$(MAKECMDGOALS))
|
||||||
|
ifeq (,$(filter-out $(RULES_NO_SCAN),$(MAKECMDGOALS)))
|
||||||
|
NODEP := 1
|
||||||
|
SETUP_PREREQS := 0
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
C_SRCS := $(wildcard $(C_SUBDIR)/*.c)
|
ifeq ($(SETUP_PREREQS),1)
|
||||||
|
# If set on: Default target or a rule requiring a scan
|
||||||
|
# Forcibly execute `make tools` since we need them for what we are doing.
|
||||||
|
$(call infoshell, $(MAKE) -f make_tools.mk)
|
||||||
|
# Oh and also generate mapjson sources before we use `SCANINC`.
|
||||||
|
$(call infoshell, $(MAKE) generated)
|
||||||
|
endif
|
||||||
|
|
||||||
|
# Collect sources
|
||||||
|
C_SRCS_IN := $(wildcard $(C_SUBDIR)/*.c $(C_SUBDIR)/*/*.c $(C_SUBDIR)/*/*/*.c)
|
||||||
|
C_SRCS := $(foreach src,$(C_SRCS_IN),$(if $(findstring .inc.c,$(src)),,$(src)))
|
||||||
C_OBJS := $(patsubst $(C_SUBDIR)/%.c,$(C_BUILDDIR)/%.o,$(C_SRCS))
|
C_OBJS := $(patsubst $(C_SUBDIR)/%.c,$(C_BUILDDIR)/%.o,$(C_SRCS))
|
||||||
|
|
||||||
C_ASM_SRCS += $(wildcard $(C_SUBDIR)/*.s $(C_SUBDIR)/*/*.s $(C_SUBDIR)/*/*/*.s)
|
C_ASM_SRCS := $(wildcard $(C_SUBDIR)/*.s $(C_SUBDIR)/*/*.s $(C_SUBDIR)/*/*/*.s)
|
||||||
C_ASM_OBJS := $(patsubst $(C_SUBDIR)/%.s,$(C_BUILDDIR)/%.o,$(C_ASM_SRCS))
|
C_ASM_OBJS := $(patsubst $(C_SUBDIR)/%.s,$(C_BUILDDIR)/%.o,$(C_ASM_SRCS))
|
||||||
|
|
||||||
ASM_SRCS := $(wildcard $(ASM_SUBDIR)/*.s)
|
ASM_SRCS := $(wildcard $(ASM_SUBDIR)/*.s)
|
||||||
@@ -160,186 +175,38 @@ SONG_OBJS := $(patsubst $(SONG_SUBDIR)/%.s,$(SONG_BUILDDIR)/%.o,$(SONG_SRCS))
|
|||||||
MID_SRCS := $(wildcard $(MID_SUBDIR)/*.mid)
|
MID_SRCS := $(wildcard $(MID_SUBDIR)/*.mid)
|
||||||
MID_OBJS := $(patsubst $(MID_SUBDIR)/%.mid,$(MID_BUILDDIR)/%.o,$(MID_SRCS))
|
MID_OBJS := $(patsubst $(MID_SUBDIR)/%.mid,$(MID_BUILDDIR)/%.o,$(MID_SRCS))
|
||||||
|
|
||||||
OBJS := $(C_OBJS) $(C_ASM_OBJS) $(ASM_OBJS) $(DATA_ASM_OBJS) $(SONG_OBJS) $(MID_OBJS)
|
OBJS := $(C_OBJS) $(C_ASM_OBJS) $(ASM_OBJS) $(DATA_ASM_OBJS) $(SONG_OBJS) $(MID_OBJS)
|
||||||
OBJS_REL := $(patsubst $(OBJ_DIR)/%,%,$(OBJS))
|
OBJS_REL := $(patsubst $(OBJ_DIR)/%,%,$(OBJS))
|
||||||
|
|
||||||
TOOLDIRS := $(filter-out tools/agbcc tools/binutils tools/analyze_source,$(wildcard tools/*))
|
SUBDIRS := $(sort $(dir $(OBJS)))
|
||||||
TOOLBASE = $(TOOLDIRS:tools/%=%)
|
$(shell mkdir -p $(SUBDIRS))
|
||||||
TOOLS = $(foreach tool,$(TOOLBASE),tools/$(tool)/$(tool)$(EXE))
|
|
||||||
|
|
||||||
ALL_BUILDS := firered firered_rev1 leafgreen leafgreen_rev1
|
# Pretend rules that are actually flags defer to `make all`
|
||||||
ALL_BUILDS += $(ALL_BUILDS:%=%_modern)
|
modern: all
|
||||||
|
compare: all
|
||||||
.PHONY: all rom tools clean-tools mostlyclean clean compare tidy syms $(TOOLDIRS) $(ALL_BUILDS) $(ALL_BUILDS:%=compare_%) modern
|
|
||||||
|
|
||||||
MAKEFLAGS += --no-print-directory
|
|
||||||
|
|
||||||
AUTO_GEN_TARGETS :=
|
|
||||||
|
|
||||||
all: tools rom
|
|
||||||
|
|
||||||
syms: $(SYM)
|
|
||||||
|
|
||||||
|
# Other rules
|
||||||
rom: $(ROM)
|
rom: $(ROM)
|
||||||
ifeq ($(COMPARE),1)
|
ifeq ($(COMPARE),1)
|
||||||
@$(SHA1) $(BUILD_NAME).sha1
|
@$(SHA1) $(BUILD_NAME).sha1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
tools: $(TOOLDIRS)
|
syms: $(SYM)
|
||||||
|
|
||||||
$(TOOLDIRS):
|
clean: tidy clean-tools clean-generated clean-assets
|
||||||
@$(MAKE) -C $@
|
# @$(MAKE) clean -C libagbsyscall
|
||||||
|
|
||||||
# For contributors to make sure a change didn't affect the contents of the ROM.
|
clean-assets:
|
||||||
compare:
|
rm -f $(MID_SUBDIR)/*.s
|
||||||
@$(MAKE) COMPARE=1
|
rm -f $(DATA_ASM_SUBDIR)/layouts/layouts.inc $(DATA_ASM_SUBDIR)/layouts/layouts_table.inc
|
||||||
|
rm -f $(DATA_ASM_SUBDIR)/maps/connections.inc $(DATA_ASM_SUBDIR)/maps/events.inc $(DATA_ASM_SUBDIR)/maps/groups.inc $(DATA_ASM_SUBDIR)/maps/headers.inc
|
||||||
mostlyclean: tidy
|
find sound -iname '*.bin' -exec rm {} +
|
||||||
rm -f $(SAMPLE_SUBDIR)/*.bin
|
find . \( -iname '*.1bpp' -o -iname '*.4bpp' -o -iname '*.8bpp' -o -iname '*.gbapal' -o -iname '*.lz' -o -iname '*.rl' -o -iname '*.latfont' -o -iname '*.hwjpnfont' -o -iname '*.fwjpnfont' \) -exec rm {} +
|
||||||
rm -f $(CRY_SUBDIR)/*.bin
|
|
||||||
$(RM) $(SONG_OBJS) $(MID_SUBDIR)/*.s
|
|
||||||
find . \( -iname '*.1bpp' -o -iname '*.4bpp' -o -iname '*.8bpp' -o -iname '*.gbapal' -o -iname '*.lz' -o -iname '*.latfont' -o -iname '*.hwjpnfont' -o -iname '*.fwjpnfont' \) -exec rm {} +
|
|
||||||
$(RM) $(DATA_ASM_SUBDIR)/layouts/layouts.inc $(DATA_ASM_SUBDIR)/layouts/layouts_table.inc
|
|
||||||
$(RM) $(DATA_ASM_SUBDIR)/maps/connections.inc $(DATA_ASM_SUBDIR)/maps/events.inc $(DATA_ASM_SUBDIR)/maps/groups.inc $(DATA_ASM_SUBDIR)/maps/headers.inc
|
|
||||||
find $(DATA_ASM_SUBDIR)/maps \( -iname 'connections.inc' -o -iname 'events.inc' -o -iname 'header.inc' \) -exec rm {} +
|
find $(DATA_ASM_SUBDIR)/maps \( -iname 'connections.inc' -o -iname 'events.inc' -o -iname 'header.inc' \) -exec rm {} +
|
||||||
$(RM) $(AUTO_GEN_TARGETS)
|
|
||||||
|
|
||||||
clean-tools:
|
|
||||||
@$(foreach tooldir,$(TOOLDIRS),$(MAKE) clean -C $(tooldir);)
|
|
||||||
|
|
||||||
clean: mostlyclean clean-tools
|
|
||||||
|
|
||||||
tidy:
|
tidy:
|
||||||
$(RM) $(ALL_BUILDS:%=poke%{.gba,.elf,.map})
|
rm -f $(ROM) $(ELF) $(MAP)
|
||||||
$(RM) -r build
|
rm -rf $(OBJ_DIR)
|
||||||
|
|
||||||
include graphics_file_rules.mk
|
|
||||||
include tileset_rules.mk
|
|
||||||
include map_data_rules.mk
|
|
||||||
include spritesheet_rules.mk
|
|
||||||
include json_data_rules.mk
|
|
||||||
include songs.mk
|
|
||||||
|
|
||||||
%.s: ;
|
|
||||||
%.png: ;
|
|
||||||
%.pal: ;
|
|
||||||
%.aif: ;
|
|
||||||
|
|
||||||
%.1bpp: %.png ; $(GFX) $< $@
|
|
||||||
%.4bpp: %.png ; $(GFX) $< $@
|
|
||||||
%.8bpp: %.png ; $(GFX) $< $@
|
|
||||||
%.gbapal: %.pal ; $(GFX) $< $@
|
|
||||||
%.gbapal: %.png ; $(GFX) $< $@
|
|
||||||
%.lz: % ; $(GFX) $< $@
|
|
||||||
%.rl: % ; $(GFX) $< $@
|
|
||||||
$(CRY_SUBDIR)/%.bin: $(CRY_SUBDIR)/%.aif ; $(AIF) $< $@ --compress
|
|
||||||
sound/%.bin: sound/%.aif ; $(AIF) $< $@
|
|
||||||
sound/songs/%.s: sound/songs/%.mid
|
|
||||||
$(MID) $< $@
|
|
||||||
|
|
||||||
ifeq ($(MODERN),0)
|
|
||||||
$(C_BUILDDIR)/agb_flash.o: CFLAGS := -O -mthumb-interwork
|
|
||||||
$(C_BUILDDIR)/agb_flash_1m.o: CFLAGS := -O -mthumb-interwork
|
|
||||||
$(C_BUILDDIR)/agb_flash_mx.o: CFLAGS := -O -mthumb-interwork
|
|
||||||
|
|
||||||
$(C_BUILDDIR)/m4a.o: CC1 := tools/agbcc/bin/old_agbcc$(EXE)
|
|
||||||
|
|
||||||
$(C_BUILDDIR)/isagbprn.o: CC1 := tools/agbcc/bin/old_agbcc$(EXE)
|
|
||||||
$(C_BUILDDIR)/isagbprn.o: CFLAGS := -mthumb-interwork
|
|
||||||
|
|
||||||
$(C_BUILDDIR)/trainer_tower.o: CFLAGS += -ffreestanding
|
|
||||||
$(C_BUILDDIR)/battle_anim_flying.o: CFLAGS += -ffreestanding
|
|
||||||
|
|
||||||
$(C_BUILDDIR)/librfu_intr.o: CC1 := tools/agbcc/bin/agbcc_arm$(EXE)
|
|
||||||
$(C_BUILDDIR)/librfu_intr.o: CFLAGS := -O2 -mthumb-interwork -quiet
|
|
||||||
else
|
|
||||||
$(C_BUILDDIR)/berry_crush_2.o: CFLAGS += -Wno-address-of-packed-member
|
|
||||||
$(C_BUILDDIR)/berry_crush_3.o: CFLAGS += -Wno-address-of-packed-member
|
|
||||||
$(C_BUILDDIR)/braille_text.o: CFLAGS += -Wno-address-of-packed-member
|
|
||||||
$(C_BUILDDIR)/text.o: CFLAGS += -Wno-address-of-packed-member
|
|
||||||
$(C_BUILDDIR)/battle_tower.o: CFLAGS += -Wno-div-by-zero
|
|
||||||
$(C_BUILDDIR)/librfu_intr.o: override CFLAGS += -marm -mthumb-interwork -O2 -mtune=arm7tdmi -march=armv4t -mabi=apcs-gnu -fno-toplevel-reorder -fno-aggressive-loop-optimizations -Wno-pointer-to-int-cast
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(NODEP),1)
|
|
||||||
$(C_BUILDDIR)/%.o: c_dep :=
|
|
||||||
else
|
|
||||||
$(C_BUILDDIR)/%.o: c_dep = $(shell [[ -f $(C_SUBDIR)/$*.c ]] && $(SCANINC) -I include -I tools/agbcc/include $(C_SUBDIR)/$*.c)
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(DINFO),1)
|
|
||||||
override CFLAGS += -g
|
|
||||||
endif
|
|
||||||
|
|
||||||
$(C_BUILDDIR)/%.o : $(C_SUBDIR)/%.c $$(c_dep)
|
|
||||||
@$(CPP) $(CPPFLAGS) $< -o $(C_BUILDDIR)/$*.i
|
|
||||||
@$(PREPROC) $(C_BUILDDIR)/$*.i charmap.txt | $(CC1) $(CFLAGS) -o $(C_BUILDDIR)/$*.s
|
|
||||||
@echo -e ".text\n\t.align\t2, 0 @ Don't pad with nop\n" >> $(C_BUILDDIR)/$*.s
|
|
||||||
$(AS) $(ASFLAGS) -o $@ $(C_BUILDDIR)/$*.s
|
|
||||||
|
|
||||||
ifeq ($(NODEP),1)
|
|
||||||
$(C_BUILDDIR)/%.o: c_asm_dep :=
|
|
||||||
else
|
|
||||||
$(C_BUILDDIR)/%.o: c_asm_dep = $(shell [[ -f $(C_SUBDIR)/$*.s ]] && $(SCANINC) -I "" $(C_SUBDIR)/$*.s)
|
|
||||||
endif
|
|
||||||
|
|
||||||
$(C_BUILDDIR)/%.o: $(C_SUBDIR)/%.s $$(c_asm_dep)
|
|
||||||
$(AS) $(ASFLAGS) -o $@ $<
|
|
||||||
|
|
||||||
ifeq ($(NODEP),1)
|
|
||||||
$(DATA_ASM_BUILDDIR)/%.o: data_dep :=
|
|
||||||
else
|
|
||||||
$(DATA_ASM_BUILDDIR)/%.o: data_dep = $(shell $(SCANINC) -I . $(DATA_ASM_SUBDIR)/$*.s)
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(NODEP),1)
|
|
||||||
$(ASM_BUILDDIR)/%.o: $(ASM_SUBDIR)/%.s
|
|
||||||
$(AS) $(ASFLAGS) -o $@ $<
|
|
||||||
else
|
|
||||||
define ASM_DEP
|
|
||||||
$1: $2 $$(shell $(SCANINC) -I include -I "" $2)
|
|
||||||
$$(AS) $$(ASFLAGS) -o $$@ $$<
|
|
||||||
endef
|
|
||||||
$(foreach src, $(ASM_SRCS), $(eval $(call ASM_DEP,$(patsubst $(ASM_SUBDIR)/%.s,$(ASM_BUILDDIR)/%.o, $(src)),$(src))))
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(NODEP),1)
|
|
||||||
$(DATA_ASM_BUILDDIR)/%.o: $(DATA_ASM_SUBDIR)/%.s
|
|
||||||
$(PREPROC) $< charmap.txt | $(CPP) -I include - | $(AS) $(ASFLAGS) -o $@
|
|
||||||
else
|
|
||||||
define DATA_ASM_DEP
|
|
||||||
$1: $2 $$(shell $(SCANINC) -I include -I "" $2)
|
|
||||||
$$(PREPROC) $$< charmap.txt | $$(CPP) -I include - | $$(AS) $$(ASFLAGS) -o $$@
|
|
||||||
endef
|
|
||||||
$(foreach src, $(REGULAR_DATA_ASM_SRCS), $(eval $(call DATA_ASM_DEP,$(patsubst $(DATA_ASM_SUBDIR)/%.s,$(DATA_ASM_BUILDDIR)/%.o, $(src)),$(src))))
|
|
||||||
endif
|
|
||||||
|
|
||||||
$(SONG_BUILDDIR)/%.o: $(SONG_SUBDIR)/%.s
|
|
||||||
$(AS) $(ASFLAGS) -I sound -o $@ $<
|
|
||||||
|
|
||||||
$(OBJ_DIR)/sym_bss.ld: sym_bss.txt
|
|
||||||
$(RAMSCRGEN) .bss $< ENGLISH > $@
|
|
||||||
|
|
||||||
$(OBJ_DIR)/sym_common.ld: sym_common.txt $(C_OBJS) $(wildcard common_syms/*.txt)
|
|
||||||
$(RAMSCRGEN) COMMON $< ENGLISH -c $(C_BUILDDIR),common_syms > $@
|
|
||||||
|
|
||||||
$(OBJ_DIR)/sym_ewram.ld: sym_ewram.txt
|
|
||||||
$(RAMSCRGEN) ewram_data $< ENGLISH > $@
|
|
||||||
|
|
||||||
ifeq ($(MODERN),0)
|
|
||||||
LD_SCRIPT := ld_script.ld
|
|
||||||
LD_SCRIPT_DEPS := $(OBJ_DIR)/sym_bss.ld $(OBJ_DIR)/sym_common.ld $(OBJ_DIR)/sym_ewram.ld
|
|
||||||
else
|
|
||||||
LD_SCRIPT := ld_script_modern.ld
|
|
||||||
LD_SCRIPT_DEPS :=
|
|
||||||
endif
|
|
||||||
|
|
||||||
$(ELF): $(LD_SCRIPT) $(LD_SCRIPT_DEPS) $(OBJS)
|
|
||||||
@cd $(OBJ_DIR) && $(LD) $(LDFLAGS) -T ../../$< --print-memory-usage -o ../../$@ $(OBJS_REL) $(LIB) | cat
|
|
||||||
$(FIX) $@ -t"$(TITLE)" -c$(GAME_CODE) -m$(MAKER_CODE) -r$(GAME_REVISION) --silent
|
|
||||||
|
|
||||||
$(ROM): $(ELF)
|
|
||||||
$(OBJCOPY) -O binary --gap-fill 0xFF --pad-to 0x9000000 $< $@
|
|
||||||
|
|
||||||
# "friendly" target names for convenience sake
|
# "friendly" target names for convenience sake
|
||||||
firered: ; @$(MAKE) GAME_VERSION=FIRERED
|
firered: ; @$(MAKE) GAME_VERSION=FIRERED
|
||||||
@@ -357,11 +224,168 @@ firered_rev1_modern: ; @$(MAKE) GAME_VERSION=FIRERED GAME_REVISION=1 MODERN=1
|
|||||||
leafgreen_modern: ; @$(MAKE) GAME_VERSION=LEAFGREEN MODERN=1
|
leafgreen_modern: ; @$(MAKE) GAME_VERSION=LEAFGREEN MODERN=1
|
||||||
leafgreen_rev1_modern: ; @$(MAKE) GAME_VERSION=LEAFGREEN GAME_REVISION=1 MODERN=1
|
leafgreen_rev1_modern: ; @$(MAKE) GAME_VERSION=LEAFGREEN GAME_REVISION=1 MODERN=1
|
||||||
|
|
||||||
modern: ; @$(MAKE) MODERN=1
|
# Other rules
|
||||||
|
include graphics_file_rules.mk
|
||||||
|
include tileset_rules.mk
|
||||||
|
include map_data_rules.mk
|
||||||
|
include spritesheet_rules.mk
|
||||||
|
include json_data_rules.mk
|
||||||
|
include audio_rules.mk
|
||||||
|
|
||||||
###################
|
generated: $(AUTO_GEN_TARGETS)
|
||||||
### Symbol file ###
|
|
||||||
###################
|
|
||||||
|
|
||||||
|
%.s: ;
|
||||||
|
%.png: ;
|
||||||
|
%.pal: ;
|
||||||
|
%.aif: ;
|
||||||
|
|
||||||
|
%.1bpp: %.png ; $(GFX) $< $@
|
||||||
|
%.4bpp: %.png ; $(GFX) $< $@
|
||||||
|
%.8bpp: %.png ; $(GFX) $< $@
|
||||||
|
%.gbapal: %.pal ; $(GFX) $< $@
|
||||||
|
%.gbapal: %.png ; $(GFX) $< $@
|
||||||
|
%.lz: % ; $(GFX) $< $@
|
||||||
|
%.rl: % ; $(GFX) $< $@
|
||||||
|
|
||||||
|
# NOTE: Tools must have been built prior (FIXME)
|
||||||
|
generated: tools $(AUTO_GEN_TARGETS)
|
||||||
|
clean-generated:
|
||||||
|
-rm -f $(AUTO_GEN_TARGETS)
|
||||||
|
|
||||||
|
ifeq ($(MODERN),0)
|
||||||
|
$(C_BUILDDIR)/agb_flash.o: CFLAGS := -O -mthumb-interwork
|
||||||
|
$(C_BUILDDIR)/agb_flash_1m.o: CFLAGS := -O -mthumb-interwork
|
||||||
|
$(C_BUILDDIR)/agb_flash_mx.o: CFLAGS := -O -mthumb-interwork
|
||||||
|
|
||||||
|
$(C_BUILDDIR)/m4a.o: CC1 := $(TOOLS_DIR)/agbcc/bin/old_agbcc$(EXE)
|
||||||
|
|
||||||
|
$(C_BUILDDIR)/isagbprn.o: CC1 := $(TOOLS_DIR)/agbcc/bin/old_agbcc$(EXE)
|
||||||
|
$(C_BUILDDIR)/isagbprn.o: CFLAGS := -mthumb-interwork
|
||||||
|
|
||||||
|
$(C_BUILDDIR)/trainer_tower.o: CFLAGS += -ffreestanding
|
||||||
|
$(C_BUILDDIR)/battle_anim_flying.o: CFLAGS += -ffreestanding
|
||||||
|
|
||||||
|
$(C_BUILDDIR)/librfu_intr.o: CC1 := $(TOOLS_DIR)/agbcc/bin/agbcc_arm$(EXE)
|
||||||
|
$(C_BUILDDIR)/librfu_intr.o: CFLAGS := -O2 -mthumb-interwork -quiet
|
||||||
|
else
|
||||||
|
$(C_BUILDDIR)/berry_crush_2.o: CFLAGS += -Wno-address-of-packed-member
|
||||||
|
$(C_BUILDDIR)/berry_crush_3.o: CFLAGS += -Wno-address-of-packed-member
|
||||||
|
$(C_BUILDDIR)/braille_text.o: CFLAGS += -Wno-address-of-packed-member
|
||||||
|
$(C_BUILDDIR)/text.o: CFLAGS += -Wno-address-of-packed-member
|
||||||
|
$(C_BUILDDIR)/battle_tower.o: CFLAGS += -Wno-div-by-zero
|
||||||
|
$(C_BUILDDIR)/librfu_intr.o: override CFLAGS += -marm -mthumb-interwork -O2 -mtune=arm7tdmi -march=armv4t -mabi=apcs-gnu -fno-toplevel-reorder -fno-aggressive-loop-optimizations -Wno-pointer-to-int-cast
|
||||||
|
endif
|
||||||
|
|
||||||
|
# Dependency rules (for the *.c & *.s sources to .o files)
|
||||||
|
# Have to be explicit or else missing files won't be reported.
|
||||||
|
|
||||||
|
# As a side effect, they're evaluated immediately instead of when the rule is invoked.
|
||||||
|
# It doesn't look like $(shell) can be deferred so there might not be a better way (Icedude_907: there is soon).
|
||||||
|
|
||||||
|
# For C dependencies.
|
||||||
|
# Args: $1 = Output file without extension (build/assets/src/data), $2 = Input file (src/data.c)
|
||||||
|
define C_DEP
|
||||||
|
$(call C_DEP_IMPL,$1,$2,$1)
|
||||||
|
endef
|
||||||
|
# Internal implementation details.
|
||||||
|
# $1: Output file without extension, $2 input file, $3 temp path (if keeping)
|
||||||
|
define C_DEP_IMPL
|
||||||
|
$1.o: $2
|
||||||
|
ifeq (,$(KEEP_TEMPS))
|
||||||
|
@echo "$$(CC1) <flags> -o $$@ $$<"
|
||||||
|
@$$(CPP) $$(CPPFLAGS) $$< | $$(PREPROC) -i $$< charmap.txt | $$(CC1) $$(CFLAGS) -o - - | cat - <(echo -e ".text\n\t.align\t2, 0") | $$(AS) $$(ASFLAGS) -o $$@ -
|
||||||
|
else
|
||||||
|
@$$(CPP) $$(CPPFLAGS) $$< -o $3.i
|
||||||
|
@$$(PREPROC) $3.i charmap.txt | $$(CC1) $$(CFLAGS) -o $3.s
|
||||||
|
@echo -e ".text\n\t.align\t2, 0 @ Don't pad with nop\n" >> $3.s
|
||||||
|
$$(AS) $$(ASFLAGS) -o $$@ $3.s
|
||||||
|
endif
|
||||||
|
$(call C_SCANINC,$1,$2)
|
||||||
|
endef
|
||||||
|
# Calls SCANINC to find dependencies
|
||||||
|
define C_SCANINC
|
||||||
|
ifneq ($(NODEP),1)
|
||||||
|
$1.o: $1.d
|
||||||
|
$1.d: $2
|
||||||
|
$(SCANINC) -M $1.d $(INCLUDE_SCANINC_ARGS) -I tools/agbcc/include -I gflib $2
|
||||||
|
include $1.d
|
||||||
|
endif
|
||||||
|
endef
|
||||||
|
|
||||||
|
# Create generic rules if no dependency scanning, else create the real rules
|
||||||
|
ifeq ($(NODEP),1)
|
||||||
|
$(eval $(call C_DEP,$(C_BUILDDIR)/%,$(C_SUBDIR)/%.c))
|
||||||
|
else
|
||||||
|
$(foreach src,$(C_SRCS),$(eval $(call C_DEP,$(OBJ_DIR)/$(basename $(src)),$(src))))
|
||||||
|
endif
|
||||||
|
|
||||||
|
# Similar methodology for Assembly files
|
||||||
|
# $1: Output path without extension, $2: Input file (`*.s`)
|
||||||
|
define ASM_DEP
|
||||||
|
$1.o: $2
|
||||||
|
$$(AS) $$(ASFLAGS) -o $$@ $$<
|
||||||
|
$(call ASM_SCANINC,$1,$2)
|
||||||
|
endef
|
||||||
|
# As above but first doing a preprocessor pass
|
||||||
|
define ASM_DEP_PREPROC
|
||||||
|
$1.o: $2
|
||||||
|
$$(PREPROC) $$< charmap.txt | $$(CPP) $(INCLUDE_SCANINC_ARGS) - | $$(PREPROC) -ie $$< charmap.txt | $$(AS) $$(ASFLAGS) -o $$@
|
||||||
|
$(call ASM_SCANINC,$1,$2)
|
||||||
|
endef
|
||||||
|
|
||||||
|
define ASM_SCANINC
|
||||||
|
ifneq ($(NODEP),1)
|
||||||
|
$1.o: $1.d
|
||||||
|
$1.d: $2
|
||||||
|
$(SCANINC) -M $1.d $(INCLUDE_SCANINC_ARGS) -I "" $2
|
||||||
|
include $1.d
|
||||||
|
endif
|
||||||
|
endef
|
||||||
|
|
||||||
|
# Dummy rules or real rules
|
||||||
|
ifeq ($(NODEP),1)
|
||||||
|
$(eval $(call ASM_DEP,$(ASM_BUILDDIR)/%,$(ASM_SUBDIR)/%.s))
|
||||||
|
$(eval $(call ASM_DEP_PREPROC,$(C_BUILDDIR)/%,$(C_SUBDIR)/%.s))
|
||||||
|
$(eval $(call ASM_DEP_PREPROC,$(DATA_ASM_BUILDDIR)/%,$(DATA_ASM_SUBDIR)/%.s))
|
||||||
|
else
|
||||||
|
$(foreach src, $(ASM_SRCS), $(eval $(call ASM_DEP,$(src:%.s=$(OBJ_DIR)/%),$(src))))
|
||||||
|
$(foreach src, $(C_ASM_SRCS), $(eval $(call ASM_DEP_PREPROC,$(src:%.s=$(OBJ_DIR)/%),$(src))))
|
||||||
|
$(foreach src, $(REGULAR_DATA_ASM_SRCS), $(eval $(call ASM_DEP_PREPROC,$(src:%.s=$(OBJ_DIR)/%),$(src))))
|
||||||
|
endif
|
||||||
|
|
||||||
|
$(OBJ_DIR)/sym_bss.ld: sym_bss.txt
|
||||||
|
$(RAMSCRGEN) .bss $< ENGLISH > $@
|
||||||
|
|
||||||
|
$(OBJ_DIR)/sym_common.ld: sym_common.txt $(C_OBJS) $(wildcard common_syms/*.txt)
|
||||||
|
$(RAMSCRGEN) COMMON $< ENGLISH -c $(C_BUILDDIR),common_syms > $@
|
||||||
|
|
||||||
|
$(OBJ_DIR)/sym_ewram.ld: sym_ewram.txt
|
||||||
|
$(RAMSCRGEN) ewram_data $< ENGLISH > $@
|
||||||
|
|
||||||
|
# Linker script
|
||||||
|
ifeq ($(MODERN),0)
|
||||||
|
LD_SCRIPT := ld_script.ld
|
||||||
|
LD_SCRIPT_DEPS := $(OBJ_DIR)/sym_bss.ld $(OBJ_DIR)/sym_common.ld $(OBJ_DIR)/sym_ewram.ld
|
||||||
|
else
|
||||||
|
LD_SCRIPT := ld_script_modern.ld
|
||||||
|
LD_SCRIPT_DEPS :=
|
||||||
|
endif
|
||||||
|
|
||||||
|
$(OBJ_DIR)/ld_script.ld: $(LD_SCRIPT) $(LD_SCRIPT_DEPS)
|
||||||
|
sed "s#tools/#tools/#g" $(LD_SCRIPT) > $(OBJ_DIR)/ld_script.ld
|
||||||
|
|
||||||
|
# Final rules
|
||||||
|
|
||||||
|
# Elf from object files
|
||||||
|
$(ELF): $(OBJ_DIR)/ld_script.ld $(OBJS)
|
||||||
|
@echo "cd $(OBJ_DIR) && $(LD) $(LDFLAGS) -T ld_script.ld -o ../../$@ <objects> <lib>"
|
||||||
|
@cd $(OBJ_DIR) && $(LD) $(LDFLAGS) -T ld_script.ld --print-memory-usage -o ../../$@ $(OBJS_REL) $(LIB) | cat
|
||||||
|
$(FIX) $@ -t"$(TITLE)" -c$(GAME_CODE) -m$(MAKER_CODE) -r$(GAME_REVISION) --silent
|
||||||
|
|
||||||
|
# Builds the rom from the elf file
|
||||||
|
$(ROM): $(ELF)
|
||||||
|
$(OBJCOPY) -O binary --gap-fill 0xFF --pad-to 0x9000000 $< $@
|
||||||
|
|
||||||
|
# Symbol file (`make syms`)
|
||||||
$(SYM): $(ELF)
|
$(SYM): $(ELF)
|
||||||
$(OBJDUMP) -t $< | sort -u | grep -E "^0[2389]" | $(PERL) -p -e 's/^(\w{8}) (\w).{6} \S+\t(\w{8}) (\S+)$$/\1 \2 \3 \4/g' > $@
|
$(OBJDUMP) -t $< | sort -u | grep -E "^0[2389]" | $(PERL) -p -e 's/^(\w{8}) (\w).{6} \S+\t(\w{8}) (\S+)$$/\1 \2 \3 \4/g' > $@
|
||||||
|
|||||||
@@ -3,49 +3,50 @@
|
|||||||
GAME_VERSION ?= FIRERED
|
GAME_VERSION ?= FIRERED
|
||||||
GAME_REVISION ?= 0
|
GAME_REVISION ?= 0
|
||||||
GAME_LANGUAGE ?= ENGLISH
|
GAME_LANGUAGE ?= ENGLISH
|
||||||
|
|
||||||
|
# Builds the ROM using a modern compiler
|
||||||
MODERN ?= 0
|
MODERN ?= 0
|
||||||
|
# Compares the ROM to a checksum of the original - only makes sense using when non-modern
|
||||||
COMPARE ?= 0
|
COMPARE ?= 0
|
||||||
|
|
||||||
|
ifeq (modern,$(MAKECMDGOALS))
|
||||||
|
MODERN := 1
|
||||||
|
endif
|
||||||
|
ifeq (compare,$(MAKECMDGOALS))
|
||||||
|
COMPARE := 1
|
||||||
|
endif
|
||||||
|
|
||||||
# For gbafix
|
# For gbafix
|
||||||
MAKER_CODE := 01
|
MAKER_CODE := 01
|
||||||
|
|
||||||
|
BUILD_DIR := build
|
||||||
|
|
||||||
# Version
|
# Version
|
||||||
ifeq ($(GAME_VERSION),FIRERED)
|
ifeq ($(GAME_VERSION),FIRERED)
|
||||||
TITLE := POKEMON FIRE
|
TITLE := POKEMON FIRE
|
||||||
GAME_CODE := BPR
|
GAME_CODE := BPR
|
||||||
BUILD_NAME := firered
|
BUILD_NAME := firered
|
||||||
else
|
else
|
||||||
ifeq ($(GAME_VERSION),LEAFGREEN)
|
ifeq ($(GAME_VERSION),LEAFGREEN)
|
||||||
TITLE := POKEMON LEAF
|
TITLE := POKEMON LEAF
|
||||||
GAME_CODE := BPG
|
GAME_CODE := BPG
|
||||||
BUILD_NAME := leafgreen
|
BUILD_NAME := leafgreen
|
||||||
else
|
else
|
||||||
$(error unknown version $(GAME_VERSION))
|
$(error unknown version $(GAME_VERSION))
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Revision
|
# Revision
|
||||||
ifeq ($(GAME_REVISION),0)
|
|
||||||
BUILD_NAME := $(BUILD_NAME)
|
|
||||||
else
|
|
||||||
ifeq ($(GAME_REVISION),1)
|
ifeq ($(GAME_REVISION),1)
|
||||||
BUILD_NAME := $(BUILD_NAME)_rev1
|
BUILD_NAME := $(BUILD_NAME)_rev1
|
||||||
else
|
|
||||||
$(error unknown revision $(GAME_REVISION))
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# Modern GCC
|
||||||
|
ifeq ($(MODERN),1)
|
||||||
|
BUILD_NAME := $(BUILD_NAME)_modern
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Language
|
# Language
|
||||||
ifeq ($(GAME_LANGUAGE),ENGLISH)
|
ifeq ($(GAME_LANGUAGE),ENGLISH)
|
||||||
BUILD_NAME := $(BUILD_NAME)
|
GAME_CODE := $(GAME_CODE)E
|
||||||
GAME_CODE := $(GAME_CODE)E
|
|
||||||
else
|
|
||||||
$(error unknown language $(GAME_LANGUAGE))
|
|
||||||
endif
|
|
||||||
|
|
||||||
# Modern GCC
|
|
||||||
ifeq ($(MODERN), 0)
|
|
||||||
BUILD_NAME := $(BUILD_NAME)
|
|
||||||
else
|
|
||||||
BUILD_NAME := $(BUILD_NAME)_modern
|
|
||||||
endif
|
endif
|
||||||
|
|||||||
+12
-13
@@ -1,27 +1,26 @@
|
|||||||
# JSON files are run through jsonproc, which is a tool that converts JSON data to an output file
|
# JSON files are run through jsonproc, which is a tool that converts JSON data to an output file
|
||||||
# based on an Inja template. https://github.com/pantor/inja
|
# based on an Inja template. https://github.com/pantor/inja
|
||||||
|
|
||||||
AUTO_GEN_TARGETS += $(DATA_C_SUBDIR)/items.h
|
AUTO_GEN_TARGETS += $(DATA_SRC_SUBDIR)/wild_encounters.h
|
||||||
|
$(DATA_SRC_SUBDIR)/wild_encounters.h: $(DATA_SRC_SUBDIR)/wild_encounters.json $(DATA_SRC_SUBDIR)/wild_encounters.json.txt
|
||||||
$(DATA_C_SUBDIR)/items.h: $(DATA_C_SUBDIR)/items.json $(DATA_C_SUBDIR)/items.json.txt
|
|
||||||
$(JSONPROC) $^ $@
|
$(JSONPROC) $^ $@
|
||||||
|
|
||||||
$(C_BUILDDIR)/item.o: c_dep += $(DATA_C_SUBDIR)/items.h
|
$(C_BUILDDIR)/wild_encounter.o: c_dep += $(DATA_SRC_SUBDIR)/wild_encounters.h
|
||||||
|
|
||||||
AUTO_GEN_TARGETS += $(DATA_C_SUBDIR)/wild_encounters.h
|
AUTO_GEN_TARGETS += $(DATA_SRC_SUBDIR)/region_map/region_map_entries.h
|
||||||
$(DATA_C_SUBDIR)/wild_encounters.h: $(DATA_C_SUBDIR)/wild_encounters.json $(DATA_C_SUBDIR)/wild_encounters.json.txt
|
$(DATA_SRC_SUBDIR)/region_map/region_map_entries.h: $(DATA_SRC_SUBDIR)/region_map/region_map_sections.json $(DATA_SRC_SUBDIR)/region_map/region_map_sections.entries.json.txt
|
||||||
$(JSONPROC) $^ $@
|
$(JSONPROC) $^ $@
|
||||||
|
|
||||||
$(C_BUILDDIR)/wild_encounter.o: c_dep += $(DATA_C_SUBDIR)/wild_encounters.h
|
$(C_BUILDDIR)/region_map.o: c_dep += $(DATA_SRC_SUBDIR)/region_map/region_map_entries.h
|
||||||
|
|
||||||
AUTO_GEN_TARGETS += $(DATA_C_SUBDIR)/region_map/region_map_entry_strings.h
|
AUTO_GEN_TARGETS += $(DATA_SRC_SUBDIR)/region_map/region_map_entry_strings.h
|
||||||
$(DATA_C_SUBDIR)/region_map/region_map_entry_strings.h: $(DATA_C_SUBDIR)/region_map/region_map_sections.json $(DATA_C_SUBDIR)/region_map/region_map_sections.strings.json.txt
|
$(DATA_SRC_SUBDIR)/region_map/region_map_entry_strings.h: $(DATA_SRC_SUBDIR)/region_map/region_map_sections.json $(DATA_SRC_SUBDIR)/region_map/region_map_sections.strings.json.txt
|
||||||
$(JSONPROC) $^ $@
|
$(JSONPROC) $^ $@
|
||||||
|
|
||||||
$(C_BUILDDIR)/region_map.o: c_dep += $(DATA_C_SUBDIR)/region_map/region_map_entry_strings.h
|
$(C_BUILDDIR)/region_map.o: c_dep += $(DATA_SRC_SUBDIR)/region_map/region_map_entry_strings.h
|
||||||
|
|
||||||
AUTO_GEN_TARGETS += $(DATA_C_SUBDIR)/region_map/region_map_entries.h
|
AUTO_GEN_TARGETS += $(DATA_SRC_SUBDIR)/items.h
|
||||||
$(DATA_C_SUBDIR)/region_map/region_map_entries.h: $(DATA_C_SUBDIR)/region_map/region_map_sections.json $(DATA_C_SUBDIR)/region_map/region_map_sections.entries.json.txt
|
$(DATA_SRC_SUBDIR)/items.h: $(DATA_SRC_SUBDIR)/items.json $(DATA_SRC_SUBDIR)/items.json.txt
|
||||||
$(JSONPROC) $^ $@
|
$(JSONPROC) $^ $@
|
||||||
|
|
||||||
$(C_BUILDDIR)/region_map.o: c_dep += $(DATA_C_SUBDIR)/region_map/region_map_entries.h
|
$(C_BUILDDIR)/item.o: c_dep += $(DATA_SRC_SUBDIR)/items.h
|
||||||
|
|||||||
@@ -0,0 +1,22 @@
|
|||||||
|
# This controls building executables in the `tools` folder.
|
||||||
|
# Can be invoked through the `Makefile` or standalone.
|
||||||
|
|
||||||
|
MAKEFLAGS += --no-print-directory
|
||||||
|
|
||||||
|
# Inclusive list. If you don't want a tool to be built, don't add it here.
|
||||||
|
TOOLS_DIR := tools
|
||||||
|
TOOL_NAMES := aif2pcm bin2c gbafix gbagfx jsonproc mapjson mid2agb preproc ramscrgen rsfont scaninc
|
||||||
|
|
||||||
|
TOOLDIRS := $(TOOL_NAMES:%=$(TOOLS_DIR)/%)
|
||||||
|
|
||||||
|
# Tool making doesnt require a pokefirered dependency scan.
|
||||||
|
RULES_NO_SCAN += tools check-tools clean-tools $(TOOLDIRS)
|
||||||
|
.PHONY: $(RULES_NO_SCAN)
|
||||||
|
|
||||||
|
tools: $(TOOLDIRS)
|
||||||
|
|
||||||
|
$(TOOLDIRS):
|
||||||
|
@$(MAKE) -C $@
|
||||||
|
|
||||||
|
clean-tools:
|
||||||
|
@$(foreach tooldir,$(TOOLDIRS),$(MAKE) clean -C $(tooldir);)
|
||||||
+19
-19
@@ -1,32 +1,32 @@
|
|||||||
# Map JSON data
|
# Map JSON data
|
||||||
|
|
||||||
|
# Inputs
|
||||||
MAPS_DIR = $(DATA_ASM_SUBDIR)/maps
|
MAPS_DIR = $(DATA_ASM_SUBDIR)/maps
|
||||||
LAYOUTS_DIR = $(DATA_ASM_SUBDIR)/layouts
|
LAYOUTS_DIR = $(DATA_ASM_SUBDIR)/layouts
|
||||||
|
|
||||||
|
# Outputs
|
||||||
|
MAPS_OUTDIR := $(MAPS_DIR)
|
||||||
|
LAYOUTS_OUTDIR := $(LAYOUTS_DIR)
|
||||||
|
INCLUDECONSTS_OUTDIR := include/constants
|
||||||
|
|
||||||
|
AUTO_GEN_TARGETS += $(INCLUDECONSTS_OUTDIR)/map_groups.h
|
||||||
|
AUTO_GEN_TARGETS += $(INCLUDECONSTS_OUTDIR)/layouts.h
|
||||||
|
|
||||||
MAP_DIRS := $(dir $(wildcard $(MAPS_DIR)/*/map.json))
|
MAP_DIRS := $(dir $(wildcard $(MAPS_DIR)/*/map.json))
|
||||||
MAP_CONNECTIONS := $(patsubst $(MAPS_DIR)/%/,$(MAPS_DIR)/%/connections.inc,$(MAP_DIRS))
|
MAP_CONNECTIONS := $(patsubst $(MAPS_DIR)/%/,$(MAPS_DIR)/%/connections.inc,$(MAP_DIRS))
|
||||||
MAP_EVENTS := $(patsubst $(MAPS_DIR)/%/,$(MAPS_DIR)/%/events.inc,$(MAP_DIRS))
|
MAP_EVENTS := $(patsubst $(MAPS_DIR)/%/,$(MAPS_DIR)/%/events.inc,$(MAP_DIRS))
|
||||||
MAP_HEADERS := $(patsubst $(MAPS_DIR)/%/,$(MAPS_DIR)/%/header.inc,$(MAP_DIRS))
|
MAP_HEADERS := $(patsubst $(MAPS_DIR)/%/,$(MAPS_DIR)/%/header.inc,$(MAP_DIRS))
|
||||||
|
|
||||||
$(MAPS_DIR)/%/header.inc: $(MAPS_DIR)/%/map.json
|
|
||||||
$(MAPJSON) map firered $< $(LAYOUTS_DIR)/layouts.json
|
|
||||||
$(MAPS_DIR)/%/events.inc: $(MAPS_DIR)/%/header.inc ;
|
|
||||||
$(MAPS_DIR)/%/connections.inc: $(MAPS_DIR)/%/events.inc ;
|
|
||||||
|
|
||||||
$(MAPS_DIR)/groups.inc: $(MAPS_DIR)/map_groups.json
|
|
||||||
$(MAPJSON) groups firered $<
|
|
||||||
$(MAPS_DIR)/connections.inc: $(MAPS_DIR)/groups.inc ;
|
|
||||||
$(MAPS_DIR)/events.inc: $(MAPS_DIR)/connections.inc ;
|
|
||||||
$(MAPS_DIR)/headers.inc: $(MAPS_DIR)/events.inc ;
|
|
||||||
include/constants/map_groups.h: $(MAPS_DIR)/headers.inc ;
|
|
||||||
|
|
||||||
$(LAYOUTS_DIR)/layouts.inc: $(LAYOUTS_DIR)/layouts.json
|
|
||||||
$(MAPJSON) layouts firered $<
|
|
||||||
$(LAYOUTS_DIR)/layouts_table.inc: $(LAYOUTS_DIR)/layouts.inc ;
|
|
||||||
include/constants/layouts.h: $(LAYOUTS_DIR)/layouts_table.inc ;
|
|
||||||
|
|
||||||
$(DATA_ASM_BUILDDIR)/maps.o: $(DATA_ASM_SUBDIR)/maps.s $(LAYOUTS_DIR)/layouts.inc $(LAYOUTS_DIR)/layouts_table.inc $(MAPS_DIR)/headers.inc $(MAPS_DIR)/groups.inc $(MAPS_DIR)/connections.inc $(MAP_CONNECTIONS) $(MAP_HEADERS)
|
$(DATA_ASM_BUILDDIR)/maps.o: $(DATA_ASM_SUBDIR)/maps.s $(LAYOUTS_DIR)/layouts.inc $(LAYOUTS_DIR)/layouts_table.inc $(MAPS_DIR)/headers.inc $(MAPS_DIR)/groups.inc $(MAPS_DIR)/connections.inc $(MAP_CONNECTIONS) $(MAP_HEADERS)
|
||||||
$(PREPROC) $< charmap.txt | $(CPP) -I include -nostdinc -undef -Wno-unicode - | $(AS) $(ASFLAGS) -o $@
|
$(PREPROC) $< charmap.txt | $(CPP) -I include -nostdinc -undef -Wno-unicode - | $(PREPROC) -ie $< charmap.txt | $(AS) $(ASFLAGS) -o $@
|
||||||
$(DATA_ASM_BUILDDIR)/map_events.o: $(DATA_ASM_SUBDIR)/map_events.s $(MAPS_DIR)/events.inc $(MAP_EVENTS)
|
$(DATA_ASM_BUILDDIR)/map_events.o: $(DATA_ASM_SUBDIR)/map_events.s $(MAPS_DIR)/events.inc $(MAP_EVENTS)
|
||||||
$(PREPROC) $< charmap.txt | $(CPP) -I include -nostdinc -undef -Wno-unicode - | $(AS) $(ASFLAGS) -o $@
|
$(PREPROC) $< charmap.txt | $(CPP) -I include -nostdinc -undef -Wno-unicode - | $(PREPROC) -ie $< charmap.txt | $(AS) $(ASFLAGS) -o $@
|
||||||
|
|
||||||
|
$(MAPS_OUTDIR)/%/header.inc $(MAPS_OUTDIR)/%/events.inc $(MAPS_OUTDIR)/%/connections.inc: $(MAPS_DIR)/%/map.json
|
||||||
|
$(MAPJSON) map firered $< $(LAYOUTS_DIR)/layouts.json $(@D)
|
||||||
|
|
||||||
|
$(MAPS_OUTDIR)/connections.inc $(MAPS_OUTDIR)/groups.inc $(MAPS_OUTDIR)/events.inc $(MAPS_OUTDIR)/headers.inc $(INCLUDECONSTS_OUTDIR)/map_groups.h: $(MAPS_DIR)/map_groups.json
|
||||||
|
$(MAPJSON) groups firered $< $(MAPS_OUTDIR) $(INCLUDECONSTS_OUTDIR)
|
||||||
|
|
||||||
|
$(LAYOUTS_OUTDIR)/layouts.inc $(LAYOUTS_OUTDIR)/layouts_table.inc $(INCLUDECONSTS_OUTDIR)/layouts.h: $(LAYOUTS_DIR)/layouts.json
|
||||||
|
$(MAPJSON) layouts firered $< $(LAYOUTS_OUTDIR) $(INCLUDECONSTS_OUTDIR)
|
||||||
|
|||||||
@@ -1,829 +0,0 @@
|
|||||||
STD_REVERB = 50
|
|
||||||
|
|
||||||
$(MID_BUILDDIR)/%.o: $(MID_SUBDIR)/%.s
|
|
||||||
$(AS) $(ASFLAGS) -I sound -o $@ $<
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_rocket_hideout.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G133 -V090
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_follow_me.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G131 -V068
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_rs_vs_trainer.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G011 -V080 -P1
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_rs_vs_gym_leader.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G010 -V080
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_victory_road.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G154 -V090
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_cycling.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G141 -V090
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_intro_fight.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G136 -V090
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_hall_of_fame.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G145 -V079
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_encounter_deoxys.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G184 -V079
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_dummy.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R40
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_credits.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G149 -V090
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_encounter_gym_leader.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G144 -V090
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_dex_rating.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G175 -V070 -P5
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_obtain_key_item.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G178 -V077 -P5
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_caught_intro.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G179 -V094 -P5
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_level_up.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G008 -V090 -P5
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_obtain_item.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G008 -V090 -P5
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_evolved.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G008 -V090 -P5
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_caught.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G170 -V100
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_cinnabar.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G138 -V090
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_gym.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G134 -V090
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_fuchsia.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G167 -V090
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_poke_jump.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G132 -V090
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_heal_unused.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G140 -V090
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_oak_lab.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G160 -V075
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_berry_pick.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G132 -V090
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_vermillion.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G172 -V090
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_route1.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G150 -V079
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_route3.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G152 -V083
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_route11.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G153 -V090
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_pallet.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G159 -V100
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_heal.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G008 -V090 -P5
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_slots_jackpot.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G008 -V100 -P5
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_slots_win.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G008 -V100 -P5
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_obtain_badge.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G008 -V090 -P5
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_obtain_berry.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G008 -V090 -P5
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_photo.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G180 -V100 -P5
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_evolution_intro.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G009 -V080 -P1
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_move_deleted.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G008 -V090 -P5
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_obtain_tmhm.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G008 -V090 -P5
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_too_bad.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G008 -V090 -P5
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_surf.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G164 -V071
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_sevii_123.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G173 -V084
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_sevii_45.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G188 -V084
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_sevii_67.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G189 -V084
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_sevii_cave.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G147 -V090
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_sevii_dungeon.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G146 -V090
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_sevii_route.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G187 -V080
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_net_center.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G162 -V096
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_pewter.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G173 -V084
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_oak.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G161 -V086
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_mystery_gift.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G183 -V100
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_route24.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G151 -V086
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_teachy_tv_show.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G131 -V068
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_mt_moon.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G147 -V090
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_school.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G012 -V100 -P1
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_poke_tower.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G165 -V090
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_poke_center.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G162 -V096
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_poke_flute.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G165 -V048 -P5
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_poke_mansion.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G148 -V090
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_jigglypuff.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G135 -V068 -P5
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_encounter_rival.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G174 -V079
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_rival_exit.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G174 -V079
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_encounter_rocket.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G142 -V096
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_ss_anne.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G163 -V090
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_new_game_exit.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G182 -V088
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_new_game_intro.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G182 -V088
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_evolution.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G009 -V080 -P1
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_lavender.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G139 -V090
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_silph.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G166 -V076
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_encounter_girl.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G143 -V051
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_encounter_boy.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G144 -V090
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_game_corner.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G132 -V090
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_slow_pallet.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G159 -V092
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_new_game_instruct.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G182 -V085
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_viridian_forest.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G146 -V090
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_trainer_tower.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G134 -V090
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_celadon.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G168 -V070
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_title.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G137 -V090
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_game_freak.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G181 -V075
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_teachy_tv_menu.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G186 -V059
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_union_room.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G132 -V090
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_vs_legend.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G157 -V090
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_vs_deoxys.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G185 -V080
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_vs_gym_leader.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G155 -V090
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_vs_champion.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G158 -V090
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_vs_mewtwo.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G157 -V090
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_vs_trainer.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G156 -V090
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_vs_wild.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G157 -V090
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_door.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G129 -V100 -P5
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_victory_gym_leader.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G171 -V090
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_victory_trainer.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G169 -V089
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/mus_victory_wild.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G170 -V090
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/ph_choice_blend.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -G130 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/ph_choice_held.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -G130 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/ph_choice_solo.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -G130 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/ph_cloth_blend.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -G130 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/ph_cloth_held.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -G130 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/ph_cloth_solo.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -G130 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/ph_cure_blend.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -G130 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/ph_cure_held.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -G130 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/ph_cure_solo.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -G130 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/ph_dress_blend.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -G130 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/ph_dress_held.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -G130 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/ph_dress_solo.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -G130 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/ph_face_blend.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -G130 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/ph_face_held.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -G130 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/ph_face_solo.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -G130 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/ph_fleece_blend.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -G130 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/ph_fleece_held.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -G130 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/ph_fleece_solo.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -G130 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/ph_foot_blend.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -G130 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/ph_foot_held.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -G130 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/ph_foot_solo.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -G130 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/ph_goat_blend.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -G130 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/ph_goat_held.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -G130 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/ph_goat_solo.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -G130 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/ph_goose_blend.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -G130 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/ph_goose_held.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -G130 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/ph_goose_solo.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -G130 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/ph_kit_blend.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -G130 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/ph_kit_held.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -G130 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/ph_kit_solo.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -G130 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/ph_lot_blend.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -G130 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/ph_lot_held.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -G130 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/ph_lot_solo.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -G130 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/ph_mouth_blend.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -G130 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/ph_mouth_held.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -G130 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/ph_mouth_solo.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -G130 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/ph_nurse_blend.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -G130 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/ph_nurse_held.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -G130 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/ph_nurse_solo.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -G130 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/ph_price_blend.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -G130 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/ph_price_held.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -G130 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/ph_price_solo.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -G130 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/ph_strut_blend.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -G130 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/ph_strut_held.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -G130 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/ph_strut_solo.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -G130 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/ph_thought_blend.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -G130 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/ph_thought_held.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -G130 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/ph_thought_solo.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -G130 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/ph_trap_blend.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -G130 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/ph_trap_held.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -G130 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/ph_trap_solo.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -G130 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_bang.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V110 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_taillow_wing_flap.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V105 -P5
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_glass_flute.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V105 -P5
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_boo.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G127 -V110 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_ball.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G127 -V070 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_ball_open.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G127 -V100 -P5
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_mugshot.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V090 -P5
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_contest_heart.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V090 -P5
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_contest_curtain_fall.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V070 -P5
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_contest_curtain_rise.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V070 -P5
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_contest_icon_change.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V110 -P5
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_contest_mons_turn.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V090 -P5
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_contest_icon_clear.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V090 -P5
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_card.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G127 -V100 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_ledge.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G127 -V100 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_itemfinder.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G127 -V090 -P5
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_applause.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V100 -P5
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_field_poison.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G127 -V110 -P5
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_rs_door.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G127 -V080 -P5
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_elevator.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V100 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_escalator.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V100 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_exp.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V080 -P5
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_exp_max.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V094 -P5
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_fu_zaku.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G127 -V120 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_contest_condition_lose.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G127 -V110 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_lavaridge_fall_warp.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G127 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_balloon_red.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V105 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_balloon_blue.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V105 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_balloon_yellow.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V105 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_bridge_walk.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V095 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_failure.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G127 -V120 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_rotating_gate.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V090 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_low_health.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G127 -V100 -P3
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_sliding_door.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V095 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_vend.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V110 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_bike_hop.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G127 -V090 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_bike_bell.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V090 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_contest_place.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G127 -V110 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_exit.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G127 -V120 -P5
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_use_item.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G127 -V100 -P5
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_unlock.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V100 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_ball_bounce_1.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V100 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_ball_bounce_2.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V100 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_ball_bounce_3.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V100 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_ball_bounce_4.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V100 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_super_effective.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G127 -V110 -P5
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_not_effective.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G127 -V110 -P5
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_effective.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G127 -V110 -P5
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_puddle.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V020 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_berry_blender.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V090 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_switch.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G127 -V100 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_ball_throw.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V120 -P5
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_ship.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G127 -V075 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_flee.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G127 -V090 -P5
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_intro_blast.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G127 -V100 -P5
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_pc_login.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G127 -V100 -P5
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_pc_off.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G127 -V100 -P5
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_pc_on.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G127 -V100 -P5
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_pin.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G127 -V060 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_ding_dong.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G127 -V090 -P5
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_pokenav_off.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G127 -V100 -P5
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_pokenav_on.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G127 -V100 -P5
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_faint.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G127 -V110 -P5
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_shiny.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V095 -P5
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_rs_shop.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G127 -V090 -P5
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_ice_crack.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G127 -V100 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_ice_stairs.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V090 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_ice_break.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V100 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_fall.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V110 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_save.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V080 -P5
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_success.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G127 -V080 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_select.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G127 -V080 -P5
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_ball_trade.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G127 -V100 -P5
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_thunderstorm.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V080 -P2
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_thunderstorm_stop.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V080 -P2
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_thunder.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V110 -P3
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_thunder2.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V110 -P3
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_rain.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V080 -P2
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_rain_stop.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V080 -P2
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_downpour.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V100 -P2
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_downpour_stop.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V100 -P2
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_orb.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V100 -P5
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_egg_hatch.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V120 -P5
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_roulette_ball.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V110 -P2
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_roulette_ball2.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V110 -P2
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_ball_tray_exit.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G127 -V100 -P5
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_ball_tray_ball.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V110 -P5
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_ball_tray_enter.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V110 -P5
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_click.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G127 -V110 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_warp_in.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G127 -V090 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_warp_out.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G127 -V090 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_note_a.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V110 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_note_b.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V110 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_note_c.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V110 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_note_c_high.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V110 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_note_d.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V110 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_mud_ball.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V110 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_note_e.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V110 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_note_f.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V110 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_note_g.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V110 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_breakable_door.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V110 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_truck_door.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V110 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_truck_unload.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G127 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_truck_move.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_truck_stop.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_repel.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G127 -V090 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_m_double_slap.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V110 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_m_comet_punch.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V120 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_m_pay_day.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V095 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_m_fire_punch.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V110 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_m_scratch.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V110 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_m_vicegrip.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V110 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_m_razor_wind.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V110 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_m_razor_wind2.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V090 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_m_swords_dance.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V100 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_m_cut.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V120 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_m_gust.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V110 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_m_gust2.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V110 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_m_wing_attack.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V105 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_m_fly.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V110 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_m_bind.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V100 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_m_mega_kick.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V090 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_m_mega_kick2.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V110 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_m_jump_kick.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V110 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_m_sand_attack.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V110 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_m_headbutt.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V110 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_m_horn_attack.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V110 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_m_take_down.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V105 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_m_tail_whip.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V110 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_m_leer.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G128 -V110 -P4
|
|
||||||
|
|
||||||
$(MID_SUBDIR)/se_dex_search.s: %.s: %.mid
|
|
||||||
$(MID) $< $@ -E -R$(STD_REVERB) -G127 -v100 -P5
|
|
||||||
Reference in New Issue
Block a user