From 20e60146c099ac1be52af92de66efeed8f13a722 Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 8 Dec 2018 01:16:54 -0500 Subject: build system: support custom configuration via cfgdefs.sh (and usrdefs.mk). --- Makefile.in | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'Makefile.in') diff --git a/Makefile.in b/Makefile.in index 89d4904..e117fa6 100644 --- a/Makefile.in +++ b/Makefile.in @@ -100,6 +100,9 @@ DISABLE_FRONTEND = @disable_frontend@ DISABLE_SHARED = @disable_shared@ DISABLE_STATIC = @disable_static@ +USE_CUSTOM_CFGDEFS = @use_custom_cfgdefs@ +USE_CUSTOM_USRDEFS = @use_custom_usrdefs@ + all: install: shared: @@ -128,6 +131,13 @@ include $(PROJECT_DIR)/project/arch.mk include $(PROJECT_DIR)/project/extras.mk include $(PROJECT_DIR)/project/overrides.mk +ifeq ($(USE_CUSTOM_CFGDEFS),yes) +include ./cfgdefs.mk +endif + +ifeq ($(USE_CUSTOM_USRDEFS),yes) +include ./usrdefs.mk +endif $(APP_SRCS:%.c=%.o): CFLAGS_STATIC = $(CFLAGS_APP) @@ -434,6 +444,9 @@ clean: clean-implib @echo DISABLE_FRONTEND:' '$(DISABLE_FRONTEND) @echo DISABLE_SHARED:' '$(DISABLE_SHARED) @echo DISABLE_STATIC:' '$(DISABLE_STATIC) + @echo + @echo USE_CUSTOM_CFGDEFS:' '$(USE_CUSTOM_CFGDEFS) + @echo USE_CUSTOM_USRDEFS:' '$(USE_CUSTOM_USRDEFS) .display-host: @$(CC) $(CFLAGS) -dumpmachine -- cgit v1.2.3