git.y1.nz

SameBoy

Accurate GB/GBC emulator
download: https://git.y1.nz/archives/sameboy.tar.gz
README | Files | Log | Refs | LICENSE

commit c40221abb628ac66d1adebb7e48f312846a3f88f
parent eb38034b76e2e22596118fdf3c5829c5a6a56fe3
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Tue, 22 Jul 2025 23:31:38 +0300

Allow using the DISABLE_* flags when building specific subsets of the lib target

Diffstat:
MMakefile13++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/Makefile b/Makefile @@ -100,15 +100,8 @@ else CPPP_FLAGS += -UGB_DISABLE_CHEAT_SEARCH endif -ifneq ($(CORE_FILTER)$(DISABLE_TIMEKEEPING),) -ifneq ($(MAKECMDGOALS),lib) -$(error SameBoy features can only be disabled when compiling the 'lib' target) -endif -endif - CPPP_FLAGS += -UGB_INTERNAL - include version.mk COPYRIGHT_YEAR := $(shell grep -oE "20[2-9][0-9]" LICENSE) export VERSION @@ -121,6 +114,12 @@ LIBDIR := build/lib PKGCONF_DIR := $(LIBDIR)/pkgconfig PKGCONF_FILE := $(PKGCONF_DIR)/sameboy.pc +ifneq ($(CORE_FILTER)$(DISABLE_TIMEKEEPING),) +ifneq ($(filter-out lib $(LIBDIR)/% $(INC)/%,$(MAKECMDGOALS)),) +$(error SameBoy features can only be disabled when compiling the 'lib' target) +endif +endif + BOOTROMS_DIR ?= $(BIN)/BootROMs ifdef DATA_DIR

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.