aboutsummaryrefslogtreecommitdiff
path: root/composite/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'composite/makefile')
-rw-r--r--composite/makefile6
1 files changed, 1 insertions, 5 deletions
diff --git a/composite/makefile b/composite/makefile
index 5881af0..185f1f9 100644
--- a/composite/makefile
+++ b/composite/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) $(odb_hdr:.hxx=.sql)
gen := $(addprefix $(out_base)/,$(genf))