aboutsummaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
Diffstat (limited to 'build')
-rw-r--r--build/configuration.make11
1 files changed, 10 insertions, 1 deletions
diff --git a/build/configuration.make b/build/configuration.make
index 2cf8c9a..768beb2 100644
--- a/build/configuration.make
+++ b/build/configuration.make
@@ -13,7 +13,16 @@ $(call -include,$(dcf_root)/configuration-dynamic.make)
ifdef db_id
-$(out_root)/%: db_id := $(db_id)
+ifeq ($(db_id),mysql)
+db_macro := DATABASE_MYSQL
+endif
+
+ifeq ($(db_id),sqlite)
+db_macro := DATABASE_SQLITE
+endif
+
+$(out_root)/%: db_id := $(db_id)
+$(out_root)/%: db_macro := $(db_macro)
else