pokeheartgold/Makefile
PikalaxALT 81580fd13d Match pokemon.c
Troubleshooting GitHub Actions

Troubleshooting GitHub Actions, 2

Troubleshooting GitHub Actions, 3

Troubleshooting GitHub Actions, 4

Troubleshooting GitHub Actions, 5

Troubleshooting GitHub Actions, 6

Troubleshooting GitHub Actions, 7

Troubleshooting GitHub Actions, 8

Troubleshooting GitHub Actions, 9

Troubleshooting GitHub Actions, 10

Troubleshooting GitHub Actions, 11

Troubleshooting GitHub Actions, 12

Temporary revert to bionic for CI
2021-11-23 18:02:11 -05:00

83 lines
2.2 KiB
Makefile

MWCCVER := 2.0/sp2p2
PROC := arm946e
PROC_S := arm5te
PROC_LD := v5te
LCF_TEMPLATE := ARM9-TS.lcf.template
LIBS := -Llib -lsyscall -nostdlib
OPTFLAGS := -O4,p
include config.mk
ALL_BUILDDIRS := $(BUILD_DIR)/lib
include common.mk
include filesystem.mk
$(ASM_OBJS): MWASFLAGS += -DPM_ASM -include config.h
$(C_OBJS): MWCFLAGS += -include global.h
ifeq ($(NODEP),)
$(ASM_OBJS): $(WORK_DIR)/include/config.h
$(C_OBJS): $(WORK_DIR)/include/global.h
endif
ROM := $(BUILD_DIR)/poke$(buildname).nds
BANNER := $(ROM:%.nds=%.bnr)
BANNER_SPEC := $(buildname)/banner.bsf
ICON_PNG := $(buildname)/icon.png
HEADER_TEMPLATE := $(buildname)/rom_header_template.sbin
.PHONY: main sub libsyscall
.PRECIOUS: $(ROM)
MAKEFLAGS += --no-print-directory
all: $(ROM)
tidy:
@$(MAKE) -C sub tidy
$(RM) -r $(BUILD_DIR)
$(RM) $(ROM)
clean: tidy clean-filesystem clean-tools
@$(MAKE) -C lib/syscall clean
@$(MAKE) -C sub clean
main: $(SBIN) $(ELF)
sub: ; @$(MAKE) -C sub
ROMSPEC := rom.rsf
MAKEROM_FLAGS := $(DEFINES)
$(NEF): libsyscall
libsyscall:
$(MAKE) -C lib/syscall all install INSTALL_PREFIX=$(abspath $(WORK_DIR)/$(BUILD_DIR)) GAME_CODE=$(GAME_CODE)
SBIN_LZ := $(SBIN)_LZ
$(SBIN_LZ): $(BUILD_DIR)/component.files
$(WINE) $(COMPSTATIC) -9 -c -f $<
$(BUILD_DIR)/component.files: main ;
$(HEADER_TEMPLATE): ;
$(ROM): $(ROMSPEC) $(NITROFS_FILES) $(SBIN_LZ) sub $(BANNER)
$(WINE) $(MAKEROM) $(MAKEROM_FLAGS) -DBUILD_DIR=$(BUILD_DIR) -DNITROFS_FILES="$(NITROFS_FILES:files/%=%)" -DTITLE_NAME="$(TITLE_NAME)" -DBNR="$(BANNER)" -DHEADER_TEMPLATE="$(HEADER_TEMPLATE)" $< $@
$(FIXROM) $@ --secure-crc $(SECURE_CRC) --game-code $(GAME_CODE)
ifeq ($(COMPARE),1)
$(SHA1SUM) -c $(buildname)/rom.sha1
endif
$(BANNER): $(BANNER_SPEC) $(ICON_PNG:%.png=%.nbfp) $(ICON_PNG:%.png=%.nbfc)
$(WINE) $(MAKEBNR) $< $@
heartgold: ; @$(MAKE) GAME_VERSION=HEARTGOLD
soulsilver: ; @$(MAKE) GAME_VERSION=SOULSILVER
compare-heartgold: ; @$(MAKE) GAME_VERSION=HEARTGOLD COMPARE=1
compare-soulsilver: ; @$(MAKE) GAME_VERSION=SOULSILVER COMPARE=1
compare: compare-heartgold
.PHONY: heartgold soulsilver compare compare-heartgold compare-soulsilver