summaryrefslogtreecommitdiff
path: root/config.lib
diff options
context:
space:
mode:
Diffstat (limited to 'config.lib')
-rw-r--r--config.lib15
1 files changed, 15 insertions, 0 deletions
diff --git a/config.lib b/config.lib
index f916a08cd..e8078abfc 100644
--- a/config.lib
+++ b/config.lib
@@ -2904,6 +2904,7 @@ make_sed() {
s@!!SOURCE_LIST!!@$SOURCE_LIST@g;
s@!!SRC_OBJS_DIR!!@$SRC_OBJS_DIR@g;
s@!!LANG_OBJS_DIR!!@$LANG_OBJS_DIR@g;
+ s@!!GRF_OBJS_DIR!!@$GRF_OBJS_DIR@g;
s@!!SRC_DIR!!@$SRC_DIR@g;
s@!!SCRIPT_SRC_DIR!!@$SCRIPT_SRC_DIR@g;
s@!!OSXAPP!!@$OSXAPP@g;
@@ -3029,6 +3030,20 @@ generate_lang() {
echo "LANG_DIRS += $LANG_OBJS_DIR" >> Makefile.am
}
+generate_grf() {
+ STAGE="[GRF]"
+
+ make_sed
+
+ # Create the language file
+ mkdir -p $GRF_OBJS_DIR
+
+ log 1 "Generating grf/Makefile..."
+ echo "# Auto-generated file from 'Makefile.grf.in' -- DO NOT EDIT" > $GRF_OBJS_DIR/Makefile
+ < $ROOT_DIR/Makefile.grf.in sed "$SRC_REPLACE" >> $GRF_OBJS_DIR/Makefile
+ echo "DIRS += $GRF_OBJS_DIR" >> Makefile.am
+}
+
generate_src_normal() {
STAGE=$1