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:50:07 -0500
commitd2a366e5ff23d663ff517b0b74c58ccd15e6738b (patch)
tree2031951faf295f6bf387aea7b5e696f00424fb30 /Makefile.in
parent543a15487016fc3fd712503111e93d47a7fd088e (diff)
downloadslibtool-d2a366e5ff23d663ff517b0b74c58ccd15e6738b.tar.bz2
slibtool-d2a366e5ff23d663ff517b0b74c58ccd15e6738b.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