diff options
author | midipix <writeonce@midipix.org> | 2018-12-08 01:16:54 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2018-12-10 20:50:01 -0500 |
commit | 5c5f8e23dea853ec4974a18e2705f6c0053c2503 (patch) | |
tree | b7cf7c98f1caac22e18d86fd5284a4ef9dfc690d /Makefile.in | |
parent | 5457467bb7b59620d474c89fe6f53d4ff873cd88 (diff) | |
download | ptycon-5c5f8e23dea853ec4974a18e2705f6c0053c2503.tar.bz2 ptycon-5c5f8e23dea853ec4974a18e2705f6c0053c2503.tar.xz |
build system: support custom configuration via cfgdefs.sh (and usrdefs.mk).
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 13 |
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 |