mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-09-01 12:52:53 +02:00
Allow using the DISABLE_* flags when building specific subsets of the lib target
This commit is contained in:
13
Makefile
13
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
|
||||
|
Reference in New Issue
Block a user