summaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-12-08 01:16:54 -0500
committermidipix <writeonce@midipix.org>2018-12-10 20:48:39 -0500
commit20e60146c099ac1be52af92de66efeed8f13a722 (patch)
tree13c69d59fed857ff139f1b81a3a99a7a7a4fc9ac /Makefile.in
parent5f22deaa92b82165ab290af6fbf7dee6bcd704da (diff)
downloadbcparser-20e60146c099ac1be52af92de66efeed8f13a722.tar.bz2
bcparser-20e60146c099ac1be52af92de66efeed8f13a722.tar.xz
build system: support custom configuration via cfgdefs.sh (and usrdefs.mk).
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in13
1 files changed, 13 insertions, 0 deletions
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