Skip to content

Commit 561a9b7

Browse files
committed
makefile: add config-post.mk to augment/alter makefile variables before build rules
(cherry picked from commit 0e37087)
1 parent 10cf392 commit 561a9b7

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
/lib/freebasic/*
1313
/lib64/freebasic/*
1414
/config.mk
15+
/config-post.mk
1516

1617
/doc/fbdoc/fbdoc
1718
/doc/makefbhelp/makefbhelp

makefile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,11 @@
108108
# -DDISABLE_D3D10 build without DirectX 10 driver(disable D2D driver in windows)
109109
#
110110
# makefile variables may either be set on the make command line,
111-
# or (in a more permanent way) inside a 'config.mk' file.
111+
# or (in a more permanent way) inside a 'config.mk' file before
112+
# the makefile variable set-up is evaluated. makefile variables
113+
# already defined in this makefile can also be augmented / modified
114+
# inside a 'config-post.mk' file which is included after all the
115+
# variable set-up, but before the build rules.
112116
#
113117
# The makefile searches the sources based on its location, but builds into
114118
# the current directory. It's possible to build in a separate directory by
@@ -566,6 +570,9 @@ ifeq ($(TARGET_OS),js)
566570
RTL_LIBS += $(libdir)/fb_shell.html
567571
endif
568572

573+
# allow optionally including config-post
574+
-include config-post.mk
575+
569576
#
570577
# Build rules
571578
#

0 commit comments

Comments
 (0)