aboutsummaryrefslogtreecommitdiff
path: root/schema
diff options
context:
space:
mode:
Diffstat (limited to 'schema')
-rw-r--r--schema/custom/makefile6
-rw-r--r--schema/embedded/makefile6
2 files changed, 2 insertions, 10 deletions
diff --git a/schema/custom/makefile b/schema/custom/makefile
index 23f3de2..1e36d55 100644
--- a/schema/custom/makefile
+++ b/schema/custom/makefile
@@ -38,13 +38,9 @@ endif
# Build.
#
$(driver): $(cxx_obj) $(odb_db.l) $(odb.l)
-$(cxx_obj) $(cxx_od): cpp_options := -I$(out_base) -I$(src_base)
+$(cxx_obj) $(cxx_od): cpp_options := -I$(out_base) -I$(src_base) -D$(db_macro)
$(cxx_obj) $(cxx_od): $(odb.l.cpp-options) $(odb_db.l.cpp-options)
-ifeq ($(db_id),mysql)
-$(cxx_obj) $(cxx_od): cpp_options += -DDATABASE_MYSQL
-endif
-
genf := $(addprefix $(odb_hdr:.hxx=-odb),.hxx .ixx .cxx)
gen := $(addprefix $(out_base)/,$(genf))
diff --git a/schema/embedded/makefile b/schema/embedded/makefile
index c54d509..46f1e3c 100644
--- a/schema/embedded/makefile
+++ b/schema/embedded/makefile
@@ -38,13 +38,9 @@ endif
# Build.
#
$(driver): $(cxx_obj) $(odb_db.l) $(odb.l)
-$(cxx_obj) $(cxx_od): cpp_options := -I$(out_base) -I$(src_base)
+$(cxx_obj) $(cxx_od): cpp_options := -I$(out_base) -I$(src_base) -D$(db_macro)
$(cxx_obj) $(cxx_od): $(odb.l.cpp-options) $(odb_db.l.cpp-options)
-ifeq ($(db_id),mysql)
-$(cxx_obj) $(cxx_od): cpp_options += -DDATABASE_MYSQL
-endif
-
genf := $(addprefix $(odb_hdr:.hxx=-odb),.hxx .ixx .cxx)
gen := $(addprefix $(out_base)/,$(genf))