Skip to content

Commit 0e37087

Browse files
committed
makefile: add config-post.mk to augment/alter makefile variables before build rules
1 parent d6d857b commit 0e37087

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
@@ -122,7 +122,11 @@
122122
# -DDISABLE_D3D10 build without DirectX 10 driver(disable D2D driver in windows)
123123
#
124124
# makefile variables may either be set on the make command line,
125-
# or (in a more permanent way) inside a 'config.mk' file.
125+
# or (in a more permanent way) inside a 'config.mk' file before
126+
# the makefile variable set-up is evaluated. makefile variables
127+
# already defined in this makefile can also be augmented / modified
128+
# inside a 'config-post.mk' file which is included after all the
129+
# variable set-up, but before the build rules.
126130
#
127131
# The makefile searches the sources based on its location, but builds into
128132
# the current directory. It's possible to build in a separate directory by
@@ -628,6 +632,9 @@ ifeq ($(TARGET_OS),js)
628632
RTL_LIBS += $(libdir)/fb_shell.html
629633
endif
630634

635+
# allow optionally including config-post
636+
-include config-post.mk
637+
631638
#
632639
# Build rules
633640
#

0 commit comments

Comments
 (0)