feat: set a target directory to build artifacts to

This commit is contained in:
Muhammad Nauman Raza 2025-01-08 13:41:42 +00:00
parent 383e34529e
commit ea2307790d
Signed by: devraza
GPG key ID: 91EAD6081011574B

View file

@ -8,6 +8,7 @@ KEEP_TEMPS ?= 0
# `File name`.gba # `File name`.gba
FILE_NAME := pokeemerald FILE_NAME := pokeemerald
BUILD_DIR := build BUILD_DIR := build
BINARY_DIR := target
# Compares the ROM to a checksum of the original - only makes sense using when non-modern # Compares the ROM to a checksum of the original - only makes sense using when non-modern
COMPARE ?= 0 COMPARE ?= 0
@ -60,7 +61,7 @@ endif
CPP := $(PREFIX)cpp CPP := $(PREFIX)cpp
ROM_NAME := $(FILE_NAME).gba ROM_NAME := $(BINARY_DIR)/$(FILE_NAME).gba
OBJ_DIR_NAME := $(BUILD_DIR)/modern OBJ_DIR_NAME := $(BUILD_DIR)/modern
OBJ_DIR_NAME_TEST := $(BUILD_DIR)/modern-test OBJ_DIR_NAME_TEST := $(BUILD_DIR)/modern-test
OBJ_DIR_NAME_DEBUG := $(BUILD_DIR)/modern-debug OBJ_DIR_NAME_DEBUG := $(BUILD_DIR)/modern-debug