aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/access/makefile5
-rw-r--r--common/auto/makefile6
-rw-r--r--common/blob/makefile6
-rw-r--r--common/callback/makefile7
-rw-r--r--common/circular/multiple/makefile7
-rw-r--r--common/circular/single/makefile7
-rw-r--r--common/composite-id/makefile7
-rw-r--r--common/composite/makefile7
-rw-r--r--common/const-member/makefile6
-rw-r--r--common/const-object/makefile7
-rw-r--r--common/container/basics/makefile5
-rw-r--r--common/container/change-tracking/makefile5
-rw-r--r--common/ctor/makefile7
-rw-r--r--common/default/makefile7
-rw-r--r--common/definition/makefile5
-rw-r--r--common/enum/makefile7
-rw-r--r--common/erase-query/makefile7
-rw-r--r--common/include/makefile3
-rw-r--r--common/index/makefile6
-rw-r--r--common/inheritance/polymorphism/makefile7
-rw-r--r--common/inheritance/reuse/makefile7
-rw-r--r--common/inheritance/transient/makefile7
-rw-r--r--common/inverse/makefile7
-rw-r--r--common/lazy-ptr/makefile7
-rw-r--r--common/lifecycle/makefile5
-rw-r--r--common/no-id/makefile7
-rw-r--r--common/optimistic/makefile7
-rw-r--r--common/pragma/makefile6
-rw-r--r--common/prepared/makefile7
-rw-r--r--common/query/array/makefile8
-rw-r--r--common/query/basics/makefile7
-rw-r--r--common/readonly/makefile5
-rw-r--r--common/relationship-query/makefile7
-rw-r--r--common/relationship/makefile7
-rw-r--r--common/schema/embedded/basics/makefile5
-rw-r--r--common/schema/embedded/order/makefile5
-rw-r--r--common/schema/namespace/makefile7
-rw-r--r--common/session/cache/makefile7
-rw-r--r--common/session/custom/makefile9
-rw-r--r--common/template/Makefile.am2
-rw-r--r--common/template/makefile5
-rw-r--r--common/template/template-vc10.vcxproj2
-rw-r--r--common/template/template-vc11.vcxproj2
-rw-r--r--common/template/template-vc9.vcproj2
-rw-r--r--common/threads/makefile7
-rw-r--r--common/transaction/basics/makefile1
-rw-r--r--common/transaction/callback/makefile1
-rw-r--r--common/types/makefile5
-rw-r--r--common/view/makefile7
-rw-r--r--common/virtual/makefile7
-rw-r--r--common/wrapper/makefile6
51 files changed, 166 insertions, 132 deletions
diff --git a/common/access/makefile b/common/access/makefile
index 7a8a86a..1cb1d2f 100644
--- a/common/access/makefile
+++ b/common/access/makefile
@@ -34,12 +34,14 @@ gen := $(addprefix $(out_base)/,$(genf))
$(gen): $(odb)
$(gen): odb := $(odb)
-$(gen) $(dist): export odb_options += --database $(db_id) --generate-schema \
+$(gen) $(dist): export odb_options += --generate-schema \
--table-prefix access_ --accessor-regex "\#(.+)\#Get\u\1\#" \
--modifier-regex "\#(.+)\#Set\u\1\#"
$(gen): cpp_options := -I$(src_base)
$(gen): $(common.l.cpp-options)
+$(gen): odb_options += --database $(db_id)
+
$(call include-dep,$(cxx_od),$(cxx_obj),$(gen))
# Alias for default target.
@@ -50,7 +52,6 @@ $(out_base)/: $(driver)
#
name := $(subst /,-,$(subst $(src_root)/common/,,$(src_base)))
-$(dist): db_id := @database@
$(dist): sources := $(cxx_tun)
$(dist): headers := $(odb_hdr)
$(dist): data_dist := test.std
diff --git a/common/auto/makefile b/common/auto/makefile
index c317894..ed5e3f9 100644
--- a/common/auto/makefile
+++ b/common/auto/makefile
@@ -34,11 +34,12 @@ gen := $(addprefix $(out_base)/,$(genf))
$(gen): $(odb)
$(gen): odb := $(odb)
-$(gen) $(dist): export odb_options += --database $(db_id) --generate-schema \
---table-prefix auto_
+$(gen) $(dist): export odb_options += --generate-schema --table-prefix auto_
$(gen): cpp_options := -I$(src_base)
$(gen): $(common.l.cpp-options)
+$(gen): odb_options += --database $(db_id)
+
$(call include-dep,$(cxx_od),$(cxx_obj),$(gen))
# Alias for default target.
@@ -49,7 +50,6 @@ $(out_base)/: $(driver)
#
name := $(subst /,-,$(subst $(src_root)/common/,,$(src_base)))
-$(dist): db_id := @database@
$(dist): sources := $(cxx_tun)
$(dist): headers := $(odb_hdr)
$(dist): data_dist := test.std
diff --git a/common/blob/makefile b/common/blob/makefile
index ee9785f..4deb80e 100644
--- a/common/blob/makefile
+++ b/common/blob/makefile
@@ -34,11 +34,12 @@ gen := $(addprefix $(out_base)/,$(genf))
$(gen): $(odb)
$(gen): odb := $(odb)
-$(gen) $(dist): export odb_options += --database $(db_id) --generate-schema \
---table-prefix blob_
+$(gen) $(dist): export odb_options += --generate-schema --table-prefix blob_
$(gen): cpp_options := -I$(src_base)
$(gen): $(common.l.cpp-options)
+$(gen): odb_options += --database $(db_id)
+
$(call include-dep,$(cxx_od),$(cxx_obj),$(gen))
# Alias for default target.
@@ -49,7 +50,6 @@ $(out_base)/: $(driver)
#
name := $(subst /,-,$(subst $(src_root)/common/,,$(src_base)))
-$(dist): db_id := @database@
$(dist): sources := $(cxx_tun)
$(dist): headers := $(odb_hdr)
$(dist): data_dist := test.std
diff --git a/common/callback/makefile b/common/callback/makefile
index f7b0ab6..f38fa60 100644
--- a/common/callback/makefile
+++ b/common/callback/makefile
@@ -34,11 +34,13 @@ gen := $(addprefix $(out_base)/,$(genf))
$(gen): $(odb)
$(gen): odb := $(odb)
-$(gen) $(dist): export odb_options += --database $(db_id) --generate-schema \
---generate-query --table-prefix callback_
+$(gen) $(dist): export odb_options += --generate-schema --generate-query \
+--table-prefix callback_
$(gen): cpp_options := -I$(src_base)
$(gen): $(common.l.cpp-options)
+$(gen): odb_options += --database $(db_id)
+
$(call include-dep,$(cxx_od),$(cxx_obj),$(gen))
# Alias for default target.
@@ -49,7 +51,6 @@ $(out_base)/: $(driver)
#
name := $(subst /,-,$(subst $(src_root)/common/,,$(src_base)))
-$(dist): db_id := @database@
$(dist): sources := $(cxx_tun)
$(dist): headers := $(odb_hdr)
$(dist): data_dist := test.std
diff --git a/common/circular/multiple/makefile b/common/circular/multiple/makefile
index 026d6db..92784d1 100644
--- a/common/circular/multiple/makefile
+++ b/common/circular/multiple/makefile
@@ -34,8 +34,8 @@ gen := $(addprefix $(out_base)/,$(genf))
$(gen): $(odb)
$(gen): odb := $(odb)
-$(gen) $(dist): export odb_options += --database $(db_id) --generate-schema \
---schema-format embedded --generate-query --table-prefix circular_m_
+$(gen) $(dist): export odb_options += --generate-schema --generate-query \
+--schema-format embedded --table-prefix circular_m_
$(gen): cpp_options := -I$(src_base)
$(gen): $(common.l.cpp-options)
@@ -43,6 +43,8 @@ $(gen): $(common.l.cpp-options)
#
$(gen): $(addprefix $(src_base)/,$(odb_hdr))
+$(gen): odb_options += --database $(db_id)
+
$(call include-dep,$(cxx_od),$(cxx_obj),$(gen))
# Alias for default target.
@@ -53,7 +55,6 @@ $(out_base)/: $(driver)
#
name := $(subst /,-,$(subst $(src_root)/common/,,$(src_base)))
-$(dist): db_id := @database@
$(dist): sources := $(cxx_tun)
$(dist): headers := $(odb_hdr)
$(dist): data_dist := test.std
diff --git a/common/circular/single/makefile b/common/circular/single/makefile
index e5f645e..1708b6c 100644
--- a/common/circular/single/makefile
+++ b/common/circular/single/makefile
@@ -34,11 +34,13 @@ gen := $(addprefix $(out_base)/,$(genf))
$(gen): $(odb)
$(gen): odb := $(odb)
-$(gen) $(dist): export odb_options += --database $(db_id) --generate-schema \
---generate-query --table-prefix circular_s_
+$(gen) $(dist): export odb_options += --generate-schema --generate-query \
+--table-prefix circular_s_
$(gen): cpp_options := -I$(src_base)
$(gen): $(common.l.cpp-options)
+$(gen): odb_options += --database $(db_id)
+
$(call include-dep,$(cxx_od),$(cxx_obj),$(gen))
# Alias for default target.
@@ -49,7 +51,6 @@ $(out_base)/: $(driver)
#
name := $(subst /,-,$(subst $(src_root)/common/,,$(src_base)))
-$(dist): db_id := @database@
$(dist): sources := $(cxx_tun)
$(dist): headers := $(odb_hdr)
$(dist): data_dist := test.std
diff --git a/common/composite-id/makefile b/common/composite-id/makefile
index 1b080e3..29227ae 100644
--- a/common/composite-id/makefile
+++ b/common/composite-id/makefile
@@ -34,11 +34,13 @@ gen := $(addprefix $(out_base)/,$(genf))
$(gen): $(odb)
$(gen): odb := $(odb)
-$(gen) $(dist): export odb_options += --database $(db_id) --generate-schema \
---generate-query --generate-session --table-prefix t_comp_id_
+$(gen) $(dist): export odb_options += --generate-schema --generate-query \
+--generate-session --table-prefix t_comp_id_
$(gen): cpp_options := -I$(src_base)
$(gen): $(common.l.cpp-options)
+$(gen): odb_options += --database $(db_id)
+
$(call include-dep,$(cxx_od),$(cxx_obj),$(gen))
# Alias for default target.
@@ -49,7 +51,6 @@ $(out_base)/: $(driver)
#
name := $(subst /,-,$(subst $(src_root)/common/,,$(src_base)))
-$(dist): db_id := @database@
$(dist): sources := $(cxx_tun)
$(dist): headers := $(odb_hdr)
$(dist): data_dist := test.std
diff --git a/common/composite/makefile b/common/composite/makefile
index 1892ba1..a1fed9b 100644
--- a/common/composite/makefile
+++ b/common/composite/makefile
@@ -34,11 +34,13 @@ gen := $(addprefix $(out_base)/,$(genf))
$(gen): $(odb)
$(gen): odb := $(odb)
-$(gen) $(dist): export odb_options += --database $(db_id) --generate-schema \
---generate-query --table-prefix t_comp_
+$(gen) $(dist): export odb_options += --generate-schema --generate-query \
+--table-prefix t_comp_
$(gen): cpp_options := -I$(src_base)
$(gen): $(common.l.cpp-options)
+$(gen): odb_options += --database $(db_id)
+
$(call include-dep,$(cxx_od),$(cxx_obj),$(gen))
# Alias for default target.
@@ -49,7 +51,6 @@ $(out_base)/: $(driver)
#
name := $(subst /,-,$(subst $(src_root)/common/,,$(src_base)))
-$(dist): db_id := @database@
$(dist): sources := $(cxx_tun)
$(dist): headers := $(odb_hdr)
$(dist): data_dist := test.std
diff --git a/common/const-member/makefile b/common/const-member/makefile
index 83a398d..fc855c5 100644
--- a/common/const-member/makefile
+++ b/common/const-member/makefile
@@ -34,11 +34,12 @@ gen := $(addprefix $(out_base)/,$(genf))
$(gen): $(odb)
$(gen): odb := $(odb)
-$(gen) $(dist): export odb_options += --database $(db_id) --generate-schema \
---table-prefix constm_
+$(gen) $(dist): export odb_options += --generate-schema --table-prefix constm_
$(gen): cpp_options := -I$(src_base)
$(gen): $(common.l.cpp-options)
+$(gen): odb_options += --database $(db_id)
+
$(call include-dep,$(cxx_od),$(cxx_obj),$(gen))
# Alias for default target.
@@ -49,7 +50,6 @@ $(out_base)/: $(driver)
#
name := $(subst /,-,$(subst $(src_root)/common/,,$(src_base)))
-$(dist): db_id := @database@
$(dist): sources := $(cxx_tun)
$(dist): headers := $(odb_hdr)
$(dist): data_dist := test.std
diff --git a/common/const-object/makefile b/common/const-object/makefile
index 043ab76..d8015cf 100644
--- a/common/const-object/makefile
+++ b/common/const-object/makefile
@@ -34,11 +34,13 @@ gen := $(addprefix $(out_base)/,$(genf))
$(gen): $(odb)
$(gen): odb := $(odb)
-$(gen) $(dist): export odb_options += --database $(db_id) --generate-schema \
---generate-query --table-prefix consto_
+$(gen) $(dist): export odb_options += --generate-schema --generate-query \
+--table-prefix consto_
$(gen): cpp_options := -I$(src_base)
$(gen): $(common.l.cpp-options)
+$(gen): odb_options += --database $(db_id)
+
$(call include-dep,$(cxx_od),$(cxx_obj),$(gen))
# Alias for default target.
@@ -49,7 +51,6 @@ $(out_base)/: $(driver)
#
name := $(subst /,-,$(subst $(src_root)/common/,,$(src_base)))
-$(dist): db_id := @database@
$(dist): sources := $(cxx_tun)
$(dist): headers := $(odb_hdr)
$(dist): data_dist := test.std
diff --git a/common/container/basics/makefile b/common/container/basics/makefile
index baddb9f..d6c4949 100644
--- a/common/container/basics/makefile
+++ b/common/container/basics/makefile
@@ -34,11 +34,13 @@ gen := $(addprefix $(out_base)/,$(genf))
$(gen): $(odb)
$(gen): odb := $(odb)
-$(gen) $(dist): export odb_options += --database $(db_id) --generate-schema \
+$(gen) $(dist): export odb_options += --generate-schema \
--table-prefix t_cont_bs_
$(gen): cpp_options := -I$(src_base)
$(gen): $(common.l.cpp-options)
+$(gen): odb_options += --database $(db_id)
+
$(call include-dep,$(cxx_od),$(cxx_obj),$(gen))
# Alias for default target.
@@ -49,7 +51,6 @@ $(out_base)/: $(driver)
#
name := $(subst /,-,$(subst $(src_root)/common/,,$(src_base)))
-$(dist): db_id := @database@
$(dist): sources := $(cxx_tun)
$(dist): headers := $(odb_hdr)
$(dist): data_dist := test.std
diff --git a/common/container/change-tracking/makefile b/common/container/change-tracking/makefile
index b24f8ea..de4c148 100644
--- a/common/container/change-tracking/makefile
+++ b/common/container/change-tracking/makefile
@@ -34,11 +34,13 @@ gen := $(addprefix $(out_base)/,$(genf))
$(gen): $(odb)
$(gen): odb := $(odb)
-$(gen) $(dist): export odb_options += --database $(db_id) --generate-schema \
+$(gen) $(dist): export odb_options += --generate-schema \
--table-prefix t_cont_changet_
$(gen): cpp_options := -I$(src_base)
$(gen): $(common.l.cpp-options)
+$(gen): odb_options += --database $(db_id)
+
$(call include-dep,$(cxx_od),$(cxx_obj),$(gen))
# Alias for default target.
@@ -49,7 +51,6 @@ $(out_base)/: $(driver)
#
name := $(subst /,-,$(subst $(src_root)/common/,,$(src_base)))
-$(dist): db_id := @database@
$(dist): sources := $(cxx_tun)
$(dist): headers := $(odb_hdr)
$(dist): data_dist := test.std
diff --git a/common/ctor/makefile b/common/ctor/makefile
index 67f5656..a94a113 100644
--- a/common/ctor/makefile
+++ b/common/ctor/makefile
@@ -34,11 +34,13 @@ gen := $(addprefix $(out_base)/,$(genf))
$(gen): $(odb)
$(gen): odb := $(odb)
-$(gen) $(dist): export odb_options += --database $(db_id) --generate-schema \
---generate-query --table-prefix ctor_
+$(gen) $(dist): export odb_options += --generate-schema --generate-query \
+--table-prefix ctor_
$(gen): cpp_options := -I$(src_base)
$(gen): $(common.l.cpp-options)
+$(gen): odb_options += --database $(db_id)
+
$(call include-dep,$(cxx_od),$(cxx_obj),$(gen))
# Alias for default target.
@@ -49,7 +51,6 @@ $(out_base)/: $(driver)
#
name := $(subst /,-,$(subst $(src_root)/common/,,$(src_base)))
-$(dist): db_id := @database@
$(dist): sources := $(cxx_tun)
$(dist): headers := $(odb_hdr)
$(dist): data_dist := test.std
diff --git a/common/default/makefile b/common/default/makefile
index 27ad049..44e6d04 100644
--- a/common/default/makefile
+++ b/common/default/makefile
@@ -34,11 +34,13 @@ gen := $(addprefix $(out_base)/,$(genf))
$(gen): $(odb)
$(gen): odb := $(odb)
-$(gen) $(dist): export odb_options += --database $(db_id) --generate-schema \
---generate-query --table-prefix default_
+$(gen) $(dist): export odb_options += --generate-schema --generate-query \
+--table-prefix default_
$(gen): cpp_options := -I$(src_base)
$(gen): $(common.l.cpp-options)
+$(gen): odb_options += --database $(db_id)
+
$(call include-dep,$(cxx_od),$(cxx_obj),$(gen))
# Alias for default target.
@@ -49,7 +51,6 @@ $(out_base)/: $(driver)
#
name := $(subst /,-,$(subst $(src_root)/common/,,$(src_base)))
-$(dist): db_id := @database@
$(dist): sources := $(cxx_tun)
$(dist): headers := $(odb_hdr)
$(dist): data_dist := test.std
diff --git a/common/definition/makefile b/common/definition/makefile
index 837d5d6..370a739 100644
--- a/common/definition/makefile
+++ b/common/definition/makefile
@@ -34,7 +34,7 @@ gen := $(addprefix $(out_base)/,$(genf))
$(gen): $(odb)
$(gen): odb := $(odb)
-$(gen) $(dist): export odb_options += --database $(db_id) --generate-schema \
+$(gen) $(dist): export odb_options += --generate-schema \
--table-prefix definition_
$(gen): cpp_options := -I$(src_base)
$(gen): $(common.l.cpp-options)
@@ -43,6 +43,8 @@ $(gen): $(common.l.cpp-options)
#
$(gen): $(src_base)/time-mapping.hxx
+$(gen): odb_options += --database $(db_id)
+
$(call include-dep,$(cxx_od),$(cxx_obj),$(gen))
# Alias for default target.
@@ -53,7 +55,6 @@ $(out_base)/: $(driver)
#
name := $(subst /,-,$(subst $(src_root)/common/,,$(src_base)))
-$(dist): db_id := @database@
$(dist): sources := $(cxx_tun)
$(dist): headers := $(odb_hdr)
$(dist): data_dist := test.std
diff --git a/common/enum/makefile b/common/enum/makefile
index 466498f..466ad98 100644
--- a/common/enum/makefile
+++ b/common/enum/makefile
@@ -34,11 +34,13 @@ gen := $(addprefix $(out_base)/,$(genf))
$(gen): $(odb)
$(gen): odb := $(odb)
-$(gen) $(dist): export odb_options += --database $(db_id) --generate-schema \
---generate-query --table-prefix enum_
+$(gen) $(dist): export odb_options += --generate-schema --generate-query \
+--table-prefix enum_
$(gen): cpp_options := -I$(src_base)
$(gen): $(common.l.cpp-options)
+$(gen): odb_options += --database $(db_id)
+
$(call include-dep,$(cxx_od),$(cxx_obj),$(gen))
# Alias for default target.
@@ -49,7 +51,6 @@ $(out_base)/: $(driver)
#
name := $(subst /,-,$(subst $(src_root)/common/,,$(src_base)))
-$(dist): db_id := @database@
$(dist): sources := $(cxx_tun)
$(dist): headers := $(odb_hdr)
$(dist): data_dist := test.std
diff --git a/common/erase-query/makefile b/common/erase-query/makefile
index 378103f..949064e 100644
--- a/common/erase-query/makefile
+++ b/common/erase-query/makefile
@@ -34,11 +34,13 @@ gen := $(addprefix $(out_base)/,$(genf))
$(gen): $(odb)
$(gen): odb := $(odb)
-$(gen) $(dist): export odb_options += --database $(db_id) --generate-schema \
---generate-query --table-prefix erase_query_
+$(gen) $(dist): export odb_options += --generate-schema --generate-query \
+--table-prefix erase_query_
$(gen): cpp_options := -I$(src_base)
$(gen): $(common.l.cpp-options)
+$(gen): odb_options += --database $(db_id)
+
$(call include-dep,$(cxx_od),$(cxx_obj),$(gen))
# Alias for default target.
@@ -49,7 +51,6 @@ $(out_base)/: $(driver)
#
name := $(subst /,-,$(subst $(src_root)/common/,,$(src_base)))
-$(dist): db_id := @database@
$(dist): sources := $(cxx_tun)
$(dist): headers := $(odb_hdr)
$(dist): data_dist := test.std
diff --git a/common/include/makefile b/common/include/makefile
index 19d2705..eb25d9f 100644
--- a/common/include/makefile
+++ b/common/include/makefile
@@ -35,8 +35,7 @@ gen := $(addprefix $(out_base)/,$(genf))
$(gen): $(odb)
$(gen): odb := $(odb)
-$(gen) $(dist): export odb_options += --database $(db_id) \
---table-prefix include_
+$(gen): odb_options += --database $(db_id) --table-prefix include_
$(gen): cpp_options := -I$(out_base) -I$(src_base)/.. -I$(src_base)/../..
$(gen): $(common.l.cpp-options)
diff --git a/common/index/makefile b/common/index/makefile
index 82e0835..610aec3 100644
--- a/common/index/makefile
+++ b/common/index/makefile
@@ -34,11 +34,12 @@ gen := $(addprefix $(out_base)/,$(genf))
$(gen): $(odb)
$(gen): odb := $(odb)
-$(gen) $(dist): export odb_options += --database $(db_id) --generate-schema \
---table-prefix index_
+$(gen) $(dist): export odb_options += --generate-schema --table-prefix index_
$(gen): cpp_options := -I$(src_base)
$(gen): $(common.l.cpp-options)
+$(gen): odb_options += --database $(db_id)
+
$(call include-dep,$(cxx_od),$(cxx_obj),$(gen))
# Alias for default target.
@@ -49,7 +50,6 @@ $(out_base)/: $(driver)
#
name := $(subst /,-,$(subst $(src_root)/common/,,$(src_base)))
-$(dist): db_id := @database@
$(dist): sources := $(cxx_tun)
$(dist): headers := $(odb_hdr)
$(dist): data_dist := test.std
diff --git a/common/inheritance/polymorphism/makefile b/common/inheritance/polymorphism/makefile
index 2be6810..d7a8e2f 100644
--- a/common/inheritance/polymorphism/makefile
+++ b/common/inheritance/polymorphism/makefile
@@ -36,11 +36,13 @@ gen := $(addprefix $(out_base)/,$(genf))
$(gen): $(odb)
$(gen): odb := $(odb)
-$(gen) $(dist): export odb_options += --database $(db_id) --generate-schema \
---generate-query --generate-prepared --table-prefix inhrt_p_
+$(gen) $(dist): export odb_options += --generate-schema --generate-query \
+--generate-prepared --table-prefix inhrt_p_
$(gen): cpp_options := -I$(src_base)
$(gen): $(common.l.cpp-options)
+$(gen): odb_options += --database $(db_id)
+
$(call include-dep,$(cxx_od),$(cxx_obj),$(gen))
# Alias for default target.
@@ -51,7 +53,6 @@ $(out_base)/: $(driver)
#
name := $(subst /,-,$(subst $(src_root)/common/,,$(src_base)))
-$(dist): db_id := @database@
$(dist): sources := $(cxx_tun)
$(dist): headers := $(odb_hdr)
$(dist): data_dist := test.std
diff --git a/common/inheritance/reuse/makefile b/common/inheritance/reuse/makefile
index f116b0d..874d48b 100644
--- a/common/inheritance/reuse/makefile
+++ b/common/inheritance/reuse/makefile
@@ -34,11 +34,13 @@ gen := $(addprefix $(out_base)/,$(genf))
$(gen): $(odb)
$(gen): odb := $(odb)
-$(gen) $(dist): export odb_options += --database $(db_id) --generate-schema \
---generate-query --table-prefix inhrt_r_
+$(gen) $(dist): export odb_options += --generate-schema --generate-query \
+--table-prefix inhrt_r_
$(gen): cpp_options := -I$(src_base)
$(gen): $(common.l.cpp-options)
+$(gen): odb_options += --database $(db_id)
+
$(call include-dep,$(cxx_od),$(cxx_obj),$(gen))
# Alias for default target.
@@ -49,7 +51,6 @@ $(out_base)/: $(driver)
#
name := $(subst /,-,$(subst $(src_root)/common/,,$(src_base)))
-$(dist): db_id := @database@
$(dist): sources := $(cxx_tun)
$(dist): headers := $(odb_hdr)
$(dist): data_dist := test.std
diff --git a/common/inheritance/transient/makefile b/common/inheritance/transient/makefile
index 65b1afa..f20894e 100644
--- a/common/inheritance/transient/makefile
+++ b/common/inheritance/transient/makefile
@@ -34,11 +34,13 @@ gen := $(addprefix $(out_base)/,$(genf))
$(gen): $(odb)
$(gen): odb := $(odb)
-$(gen) $(dist): export odb_options += --database $(db_id) --generate-schema \
---generate-query --table-prefix inhrt_t_
+$(gen) $(dist): export odb_options += --generate-schema --generate-query \
+--table-prefix inhrt_t_
$(gen): cpp_options := -I$(src_base)
$(gen): $(common.l.cpp-options)
+$(gen): odb_options += --database $(db_id)
+
$(call include-dep,$(cxx_od),$(cxx_obj),$(gen))
# Alias for default target.
@@ -49,7 +51,6 @@ $(out_base)/: $(driver)
#
name := $(subst /,-,$(subst $(src_root)/common/,,$(src_base)))
-$(dist): db_id := @database@
$(dist): sources := $(cxx_tun)
$(dist): headers := $(odb_hdr)
$(dist): data_dist := test.std
diff --git a/common/inverse/makefile b/common/inverse/makefile
index 6089d8d..a1c3202 100644
--- a/common/inverse/makefile
+++ b/common/inverse/makefile
@@ -34,11 +34,13 @@ gen := $(addprefix $(out_base)/,$(genf))
$(gen): $(odb)
$(gen): odb := $(odb)
-$(gen) $(dist): export odb_options += --database $(db_id) --generate-schema \
---generate-query --generate-session --table-prefix t_inverse_
+$(gen) $(dist): export odb_options += --generate-schema --generate-query \
+--generate-session --table-prefix t_inverse_
$(gen): cpp_options := -I$(src_base)
$(gen): $(common.l.cpp-options)
+$(gen): odb_options += --database $(db_id)
+
$(call include-dep,$(cxx_od),$(cxx_obj),$(gen))
# Alias for default target.
@@ -49,7 +51,6 @@ $(out_base)/: $(driver)
#
name := $(subst /,-,$(subst $(src_root)/common/,,$(src_base)))
-$(dist): db_id := @database@
$(dist): sources := $(cxx_tun)
$(dist): headers := $(odb_hdr)
$(dist): data_dist := test.std
diff --git a/common/lazy-ptr/makefile b/common/lazy-ptr/makefile
index b5bafcf..cfb7010 100644
--- a/common/lazy-ptr/makefile
+++ b/common/lazy-ptr/makefile
@@ -34,11 +34,13 @@ gen := $(addprefix $(out_base)/,$(genf))
$(gen): $(odb)
$(gen): odb := $(odb)
-$(gen) $(dist): export odb_options += --database $(db_id) --generate-schema \
---generate-session --table-prefix lazy_ptr_
+$(gen) $(dist): export odb_options += --generate-schema --generate-session \
+--table-prefix lazy_ptr_
$(gen): cpp_options := -I$(src_base)
$(gen): $(common.l.cpp-options)
+$(gen): odb_options += --database $(db_id)
+
$(call include-dep,$(cxx_od),$(cxx_obj),$(gen))
# Alias for default target.
@@ -49,7 +51,6 @@ $(out_base)/: $(driver)
#
name := $(subst /,-,$(subst $(src_root)/common/,,$(src_base)))
-$(dist): db_id := @database@
$(dist): sources := $(cxx_tun)
$(dist): headers := $(odb_hdr)
$(dist): data_dist := test.std
diff --git a/common/lifecycle/makefile b/common/lifecycle/makefile
index 4caff60..3d700d9 100644
--- a/common/lifecycle/makefile
+++ b/common/lifecycle/makefile
@@ -34,11 +34,13 @@ gen := $(addprefix $(out_base)/,$(genf))
$(gen): $(odb)
$(gen): odb := $(odb)
-$(gen) $(dist): export odb_options += --database $(db_id) --generate-schema \
+$(gen) $(dist): export odb_options += --generate-schema \
--table-prefix lifecycle_
$(gen): cpp_options := -I$(src_base)
$(gen): $(common.l.cpp-options)
+$(gen): odb_options += --database $(db_id)
+
$(call include-dep,$(cxx_od),$(cxx_obj),$(gen))
# Alias for default target.
@@ -49,7 +51,6 @@ $(out_base)/: $(driver)
#
name := $(subst /,-,$(subst $(src_root)/common/,,$(src_base)))
-$(dist): db_id := @database@
$(dist): sources := $(cxx_tun)
$(dist): headers := $(odb_hdr)
$(dist): data_dist := test.std
diff --git a/common/no-id/makefile b/common/no-id/makefile
index d56c120..439e883 100644
--- a/common/no-id/makefile
+++ b/common/no-id/makefile
@@ -34,11 +34,13 @@ gen := $(addprefix $(out_base)/,$(genf))
$(gen): $(odb)
$(gen): odb := $(odb)
-$(gen) $(dist): export odb_options += --database $(db_id) --generate-schema \
---generate-query --table-prefix no_id_
+$(gen) $(dist): export odb_options += --generate-schema --generate-query \
+--table-prefix no_id_
$(gen): cpp_options := -I$(src_base)
$(gen): $(common.l.cpp-options)
+$(gen): odb_options += --database $(db_id)
+
$(call include-dep,$(cxx_od),$(cxx_obj),$(gen))
# Alias for default target.
@@ -49,7 +51,6 @@ $(out_base)/: $(driver)
#
name := $(subst /,-,$(subst $(src_root)/common/,,$(src_base)))
-$(dist): db_id := @database@
$(dist): sources := $(cxx_tun)
$(dist): headers := $(odb_hdr)
$(dist): data_dist := test.std
diff --git a/common/optimistic/makefile b/common/optimistic/makefile
index 9b5f06a..8da011e 100644
--- a/common/optimistic/makefile
+++ b/common/optimistic/makefile
@@ -34,11 +34,13 @@ gen := $(addprefix $(out_base)/,$(genf))
$(gen): $(odb)
$(gen): odb := $(odb)
-$(gen) $(dist): export odb_options += --database $(db_id) --generate-schema \
---generate-query --table-prefix t_optimistic_
+$(gen) $(dist): export odb_options += --generate-schema --generate-query \
+--table-prefix t_optimistic_
$(gen): cpp_options := -I$(src_base)
$(gen): $(common.l.cpp-options)
+$(gen): odb_options += --database $(db_id)
+
$(call include-dep,$(cxx_od),$(cxx_obj),$(gen))
# Alias for default target.
@@ -49,7 +51,6 @@ $(out_base)/: $(driver)
#
name := $(subst /,-,$(subst $(src_root)/common/,,$(src_base)))
-$(dist): db_id := @database@
$(dist): sources := $(cxx_tun)
$(dist): headers := $(odb_hdr)
$(dist): data_dist := test.std
diff --git a/common/pragma/makefile b/common/pragma/makefile
index 563809c..bb54f7a 100644
--- a/common/pragma/makefile
+++ b/common/pragma/makefile
@@ -34,11 +34,12 @@ gen := $(addprefix $(out_base)/,$(genf))
$(gen): $(odb)
$(gen): odb := $(odb)
-$(gen) $(dist): export odb_options += --database $(db_id) \
---table-prefix pragma_
+$(gen) $(dist): export odb_options += --table-prefix pragma_
$(gen): cpp_options := -I$(src_base)
$(gen): $(common.l.cpp-options)
+$(gen): odb_options += --database $(db_id)
+
$(call include-dep,$(cxx_od),$(cxx_obj),$(gen))
# Alias for default target.
@@ -49,7 +50,6 @@ $(out_base)/: $(driver)
#
name := $(subst /,-,$(subst $(src_root)/common/,,$(src_base)))
-$(dist): db_id := @database@
$(dist): sources := $(cxx_tun)
$(dist): headers := $(odb_hdr)
$(dist): data_dist := test.std
diff --git a/common/prepared/makefile b/common/prepared/makefile
index 4c2bf28..72d0974 100644
--- a/common/prepared/makefile
+++ b/common/prepared/makefile
@@ -34,11 +34,13 @@ gen := $(addprefix $(out_base)/,$(genf))
$(gen): $(odb)
$(gen): odb := $(odb)
-$(gen) $(dist): export odb_options += --database $(db_id) --generate-schema \
---generate-query --generate-prepared --omit-unprepared --table-prefix prepared_
+$(gen) $(dist): export odb_options += --generate-schema --generate-query \
+--generate-prepared --omit-unprepared --table-prefix prepared_
$(gen): cpp_options := -I$(src_base)
$(gen): $(common.l.cpp-options)
+$(gen): odb_options += --database $(db_id)
+
$(call include-dep,$(cxx_od),$(cxx_obj),$(gen))
# Alias for default target.
@@ -49,7 +51,6 @@ $(out_base)/: $(driver)
#
name := $(subst /,-,$(subst $(src_root)/common/,,$(src_base)))
-$(dist): db_id := @database@
$(dist): sources := $(cxx_tun)
$(dist): headers := $(odb_hdr)
$(dist): data_dist := test.std
diff --git a/common/query/array/makefile b/common/query/array/makefile
index 0d65398..3708b9d 100644
--- a/common/query/array/makefile
+++ b/common/query/array/makefile
@@ -34,12 +34,13 @@ gen := $(addprefix $(out_base)/,$(genf))
$(gen): $(odb)
$(gen): odb := $(odb)
-$(gen) $(dist): export odb_options += --database $(db_id) --generate-schema \
---generate-query --generate-prepared --sql-name-case oracle:upper \
---table-prefix t_query_array_
+$(gen) $(dist): export odb_options += --generate-schema --generate-query \
+--generate-prepared --sql-name-case oracle:upper --table-prefix t_query_array_
$(gen): cpp_options := -I$(src_base)
$(gen): $(common.l.cpp-options)
+$(gen): odb_options += --database $(db_id)
+
$(call include-dep,$(cxx_od),$(cxx_obj),$(gen))
# Alias for default target.
@@ -50,7 +51,6 @@ $(out_base)/: $(driver)
#
name := $(subst /,-,$(subst $(src_root)/common/,,$(src_base)))
-$(dist): db_id := @database@
$(dist): sources := $(cxx_tun)
$(dist): headers := $(odb_hdr)
$(dist): data_dist := test.std
diff --git a/common/query/basics/makefile b/common/query/basics/makefile
index 2952b21..ec63728 100644
--- a/common/query/basics/makefile
+++ b/common/query/basics/makefile
@@ -34,11 +34,13 @@ gen := $(addprefix $(out_base)/,$(genf))
$(gen): $(odb)
$(gen): odb := $(odb)
-$(gen) $(dist): export odb_options += --database $(db_id) --generate-schema \
---generate-query --generate-prepared --table-prefix t_query_basics_
+$(gen) $(dist): export odb_options += --generate-schema --generate-query \
+--generate-prepared --table-prefix t_query_basics_
$(gen): cpp_options := -I$(src_base)
$(gen): $(common.l.cpp-options)
+$(gen): odb_options += --database $(db_id)
+
$(call include-dep,$(cxx_od),$(cxx_obj),$(gen))
# Alias for default target.
@@ -49,7 +51,6 @@ $(out_base)/: $(driver)
#
name := $(subst /,-,$(subst $(src_root)/common/,,$(src_base)))
-$(dist): db_id := @database@
$(dist): sources := $(cxx_tun)
$(dist): headers := $(odb_hdr)
$(dist): data_dist := test.std
diff --git a/common/readonly/makefile b/common/readonly/makefile
index adde950..3c586bd 100644
--- a/common/readonly/makefile
+++ b/common/readonly/makefile
@@ -34,11 +34,13 @@ gen := $(addprefix $(out_base)/,$(genf))
$(gen): $(odb)
$(gen): odb := $(odb)
-$(gen) $(dist): export odb_options += --database $(db_id) --generate-schema \
+$(gen) $(dist): export odb_options += --generate-schema \
--table-prefix readonly_
$(gen): cpp_options := -I$(src_base)
$(gen): $(common.l.cpp-options)
+$(gen): odb_options += --database $(db_id)
+
$(call include-dep,$(cxx_od),$(cxx_obj),$(gen))
# Alias for default target.
@@ -49,7 +51,6 @@ $(out_base)/: $(driver)
#
name := $(subst /,-,$(subst $(src_root)/common/,,$(src_base)))
-$(dist): db_id := @database@
$(dist): sources := $(cxx_tun)
$(dist): headers := $(odb_hdr)
$(dist): data_dist := test.std
diff --git a/common/relationship-query/makefile b/common/relationship-query/makefile
index 164b0f0..56994b5 100644
--- a/common/relationship-query/makefile
+++ b/common/relationship-query/makefile
@@ -34,11 +34,13 @@ gen := $(addprefix $(out_base)/,$(genf))
$(gen): $(odb)
$(gen): odb := $(odb)
-$(gen) $(dist): export odb_options += --database $(db_id) --generate-schema \
---generate-query --generate-session --table-prefix relationship_query_
+$(gen) $(dist): export odb_options += --generate-schema --generate-query \
+--generate-session --table-prefix relationship_query_
$(gen): cpp_options := -I$(src_base)
$(gen): $(common.l.cpp-options)
+$(gen): odb_options += --database $(db_id)
+
$(call include-dep,$(cxx_od),$(cxx_obj),$(gen))
# Alias for default target.
@@ -49,7 +51,6 @@ $(out_base)/: $(driver)
#
name := $(subst /,-,$(subst $(src_root)/common/,,$(src_base)))
-$(dist): db_id := @database@
$(dist): sources := $(cxx_tun)
$(dist): headers := $(odb_hdr)
$(dist): data_dist := test.std
diff --git a/common/relationship/makefile b/common/relationship/makefile
index 4babd5e..c469a93 100644
--- a/common/relationship/makefile
+++ b/common/relationship/makefile
@@ -34,11 +34,13 @@ gen := $(addprefix $(out_base)/,$(genf))
$(gen): $(odb)
$(gen): odb := $(odb)
-$(gen) $(dist): export odb_options += --database $(db_id) --generate-schema \
---generate-query --table-prefix t_relationship_
+$(gen) $(dist): export odb_options += --generate-schema --generate-query \
+--table-prefix t_relationship_
$(gen): cpp_options := -I$(src_base)
$(gen): $(common.l.cpp-options)
+$(gen): odb_options += --database $(db_id)
+
$(call include-dep,$(cxx_od),$(cxx_obj),$(gen))
# Alias for default target.
@@ -49,7 +51,6 @@ $(out_base)/: $(driver)
#
name := $(subst /,-,$(subst $(src_root)/common/,,$(src_base)))
-$(dist): db_id := @database@
$(dist): sources := $(cxx_tun)
$(dist): headers := $(odb_hdr)
$(dist): data_dist := test.std
diff --git a/common/schema/embedded/basics/makefile b/common/schema/embedded/basics/makefile
index 7989195..96e987a 100644
--- a/common/schema/embedded/basics/makefile
+++ b/common/schema/embedded/basics/makefile
@@ -34,11 +34,13 @@ gen := $(addprefix $(out_base)/,$(genf))
$(gen): $(odb)
$(gen): odb := $(odb)
-$(gen) $(dist): export odb_options += --database $(db_id) --generate-schema \
+$(gen) $(dist): export odb_options += --generate-schema \
--schema-format embedded --schema-name test --table-prefix schema_embd_bscs_
$(gen): cpp_options := -I$(src_base)
$(gen): $(common.l.cpp-options)
+$(gen): odb_options += --database $(db_id)
+
$(call include-dep,$(cxx_od),$(cxx_obj),$(gen))
# Alias for default target.
@@ -49,7 +51,6 @@ $(out_base)/: $(driver)
#
name := $(subst /,-,$(subst $(src_root)/common/,,$(src_base)))
-$(dist): db_id := @database@
$(dist): sources := $(cxx_tun)
$(dist): headers := $(odb_hdr)
$(dist): data_dist := test.std
diff --git a/common/schema/embedded/order/makefile b/common/schema/embedded/order/makefile
index e8d840d..e8897d5 100644
--- a/common/schema/embedded/order/makefile
+++ b/common/schema/embedded/order/makefile
@@ -34,7 +34,7 @@ gen := $(addprefix $(out_base)/,$(genf))
$(gen): $(odb)
$(gen): odb := $(odb)
-$(gen) $(dist): export odb_options += --database $(db_id) --generate-schema \
+$(gen) $(dist): export odb_options += --generate-schema \
--schema-format embedded --table-prefix schema_embd_ordr_
$(gen): cpp_options := -I$(src_base)
$(gen): $(common.l.cpp-options)
@@ -43,6 +43,8 @@ $(gen): $(common.l.cpp-options)
#
$(gen): $(addprefix $(src_base)/,$(odb_hdr))
+$(gen): odb_options += --database $(db_id)
+
$(call include-dep,$(cxx_od),$(cxx_obj),$(gen))
# Alias for default target.
@@ -53,7 +55,6 @@ $(out_base)/: $(driver)
#
name := $(subst /,-,$(subst $(src_root)/common/,,$(src_base)))
-$(dist): db_id := @database@
$(dist): sources := $(cxx_tun)
$(dist): headers := $(odb_hdr)
$(dist): data_dist := test.std
diff --git a/common/schema/namespace/makefile b/common/schema/namespace/makefile
index c1157c9..38f6be1 100644
--- a/common/schema/namespace/makefile
+++ b/common/schema/namespace/makefile
@@ -34,11 +34,13 @@ gen := $(addprefix $(out_base)/,$(genf))
$(gen): $(odb)
$(gen): odb := $(odb)
-$(gen) $(dist): export odb_options += --database $(db_id) --generate-schema \
---generate-query --table-prefix schema_ns_
+$(gen) $(dist): export odb_options += --generate-schema --generate-query \
+--table-prefix schema_ns_
$(gen): cpp_options := -I$(src_base)
$(gen): $(common.l.cpp-options)
+$(gen): odb_options += --database $(db_id)
+
$(call include-dep,$(cxx_od),$(cxx_obj),$(gen))
# Alias for default target.
@@ -49,7 +51,6 @@ $(out_base)/: $(driver)
#
name := $(subst /,-,$(subst $(src_root)/common/,,$(src_base)))
-$(dist): db_id := @database@
$(dist): sources := $(cxx_tun)
$(dist): headers := $(odb_hdr)
$(dist): data_dist := test.std
diff --git a/common/session/cache/makefile b/common/session/cache/makefile
index c26b394..3219565 100644
--- a/common/session/cache/makefile
+++ b/common/session/cache/makefile
@@ -34,11 +34,13 @@ gen := $(addprefix $(out_base)/,$(genf))
$(gen): $(odb)
$(gen): odb := $(odb)
-$(gen) $(dist): export odb_options += --database $(db_id) --generate-schema \
---generate-session --table-prefix session_cache_
+$(gen) $(dist): export odb_options += --generate-schema --generate-session \
+--table-prefix session_cache_
$(gen): cpp_options := -I$(src_base)
$(gen): $(common.l.cpp-options)
+$(gen): odb_options += --database $(db_id)
+
$(call include-dep,$(cxx_od),$(cxx_obj),$(gen))
# Alias for default target.
@@ -49,7 +51,6 @@ $(out_base)/: $(driver)
#
name := $(subst /,-,$(subst $(src_root)/common/,,$(src_base)))
-$(dist): db_id := @database@
$(dist): sources := $(cxx_tun)
$(dist): headers := $(odb_hdr)
$(dist): data_dist := test.std
diff --git a/common/session/custom/makefile b/common/session/custom/makefile
index e822b7a..2342b04 100644
--- a/common/session/custom/makefile
+++ b/common/session/custom/makefile
@@ -34,12 +34,14 @@ gen := $(addprefix $(out_base)/,$(genf))
$(gen): $(odb)
$(gen): odb := $(odb)
-$(gen) $(dist): export odb_options += --database $(db_id) --generate-schema \
---generate-session --session-type ::session --hxx-prologue \
-'\#include "session.hxx"' --table-prefix session_custom_
+$(gen) $(dist): export odb_options += --generate-schema --generate-session \
+--session-type ::session --hxx-prologue '\#include "session.hxx"' \
+--table-prefix session_custom_
$(gen): cpp_options := -I$(src_base)
$(gen): $(common.l.cpp-options)
+$(gen): odb_options += --database $(db_id)
+
$(call include-dep,$(cxx_od),$(cxx_obj),$(gen))
# Alias for default target.
@@ -50,7 +52,6 @@ $(out_base)/: $(driver)
#
name := $(subst /,-,$(subst $(src_root)/common/,,$(src_base)))
-$(dist): db_id := @database@
$(dist): sources := $(cxx_tun)
$(dist): headers := $(odb_hdr)
$(dist): export extra_headers := session.hxx session.txx
diff --git a/common/template/Makefile.am b/common/template/Makefile.am
index 3571bc2..50ad1bc 100644
--- a/common/template/Makefile.am
+++ b/common/template/Makefile.am
@@ -35,6 +35,6 @@ BUILT_SOURCES += __f-odb.hxx
CLEANFILES += __f-odb.hxx __f-odb.ixx __f-odb.cxx
__f-odb.hxx: __f.hxx
- $(ODB) $(AM_CPPFLAGS) $(ODBCPPFLAGS) $(CPPFLAGS) $(ODBFLAGS) __value__(odb_options) $<
+ $(ODB) $(AM_CPPFLAGS) $(ODBCPPFLAGS) $(CPPFLAGS) $(ODBFLAGS) --database @database@ __value__(odb_options) $<
))
diff --git a/common/template/makefile b/common/template/makefile
index 63768df..0d8cf60 100644
--- a/common/template/makefile
+++ b/common/template/makefile
@@ -34,11 +34,13 @@ gen := $(addprefix $(out_base)/,$(genf))
$(gen): $(odb)
$(gen): odb := $(odb)
-$(gen) $(dist): export odb_options += --database $(db_id) --generate-schema \
+$(gen) $(dist): export odb_options += --generate-schema \
--table-prefix template_ #@@ CHANGE THIS
$(gen): cpp_options := -I$(src_base)
$(gen): $(common.l.cpp-options)
+$(gen): odb_options += --database $(db_id)
+
$(call include-dep,$(cxx_od),$(cxx_obj),$(gen))
# Alias for default target.
@@ -49,7 +51,6 @@ $(out_base)/: $(driver)
#
name := $(subst /,-,$(subst $(src_root)/common/,,$(src_base)))
-$(dist): db_id := @database@
$(dist): sources := $(cxx_tun)
$(dist): headers := $(odb_hdr)
$(dist): data_dist := test.std
diff --git a/common/template/template-vc10.vcxproj b/common/template/template-vc10.vcxproj
index c1229ea..fb21140 100644
--- a/common/template/template-vc10.vcxproj
+++ b/common/template/template-vc10.vcxproj
@@ -161,7 +161,7 @@ m4_dnl
__custom_build_entry__(
__f.hxx,
odb __f.hxx,
-odb.exe --std c++11 __xml__(__shell_quotes__(m4_patsubst(__value__(odb_options), @database@, __value__(database)) -DHAVE_CONFIG_VC_H -DODB_MSC_VER=1600 -I$(SolutionDir)\..\libcommon)) __f.hxx,
+odb.exe --std c++11 --database __value__(database) __xml__(__shell_quotes__(__value__(odb_options) -DHAVE_CONFIG_VC_H -DODB_MSC_VER=1600 -I$(SolutionDir)\..\libcommon)) __f.hxx,
__f-odb.hxx;__f-odb.ixx;__f-odb.cxx)
)
</ItemGroup>)
diff --git a/common/template/template-vc11.vcxproj b/common/template/template-vc11.vcxproj
index 048f160..c1f1b0d 100644
--- a/common/template/template-vc11.vcxproj
+++ b/common/template/template-vc11.vcxproj
@@ -165,7 +165,7 @@ m4_dnl
__custom_build_entry__(
__f.hxx,
odb __f.hxx,
-odb.exe --std c++11 __xml__(__shell_quotes__(m4_patsubst(__value__(odb_options), @database@, __value__(database)) -DHAVE_CONFIG_VC_H -DODB_MSC_VER=1600 -I$(SolutionDir)\..\libcommon)) __f.hxx,
+odb.exe --std c++11 --database __value__(database) __xml__(__shell_quotes__(__value__(odb_options) -DHAVE_CONFIG_VC_H -DODB_MSC_VER=1600 -I$(SolutionDir)\..\libcommon)) __f.hxx,
__f-odb.hxx;__f-odb.ixx;__f-odb.cxx)
)
</ItemGroup>)
diff --git a/common/template/template-vc9.vcproj b/common/template/template-vc9.vcproj
index a09174c..976b870 100644
--- a/common/template/template-vc9.vcproj
+++ b/common/template/template-vc9.vcproj
@@ -352,7 +352,7 @@ __ifelse__(__value__(odb_options),,,
__file_entry_custom_build__(
__f.hxx,
odb __f.hxx,
-odb.exe __xml__(__shell_quotes__(m4_patsubst(__value__(odb_options), @database@, __value__(database)) -DHAVE_CONFIG_VC_H -DODB_MSC_VER=1500 -I$(SolutionDir)\..\libcommon)) __f.hxx,
+odb.exe --database __value__(database) __xml__(__shell_quotes__(__value__(odb_options) -DHAVE_CONFIG_VC_H -DODB_MSC_VER=1500 -I$(SolutionDir)\..\libcommon)) __f.hxx,
__f-odb.hxx;__f-odb.ixx;__f-odb.cxx)
__file_entry__(__f-odb.hxx)
__file_entry__(__f-odb.ixx)))
diff --git a/common/threads/makefile b/common/threads/makefile
index cfd0e3f..91adc8d 100644
--- a/common/threads/makefile
+++ b/common/threads/makefile
@@ -34,11 +34,13 @@ gen := $(addprefix $(out_base)/,$(genf))
$(gen): $(odb)
$(gen): odb := $(odb)
-$(gen) $(dist): export odb_options += --database $(db_id) --generate-schema \
---generate-query --generate-prepared --table-prefix threads_
+$(gen) $(dist): export odb_options += --generate-schema --generate-query \
+--generate-prepared --table-prefix threads_
$(gen): cpp_options := -I$(src_base)
$(gen): $(common.l.cpp-options)
+$(gen): odb_options += --database $(db_id)
+
$(call include-dep,$(cxx_od),$(cxx_obj),$(gen))
# Alias for default target.
@@ -49,7 +51,6 @@ $(out_base)/: $(driver)
#
name := $(subst /,-,$(subst $(src_root)/common/,,$(src_base)))
-$(dist): db_id := @database@
$(dist): sources := $(cxx_tun)
$(dist): headers := $(odb_hdr)
$(dist): data_dist := test.std
diff --git a/common/transaction/basics/makefile b/common/transaction/basics/makefile
index b384d47..a399e8c 100644
--- a/common/transaction/basics/makefile
+++ b/common/transaction/basics/makefile
@@ -32,7 +32,6 @@ $(out_base)/: $(driver)
#
name := $(subst /,-,$(subst $(src_root)/common/,,$(src_base)))
-$(dist): db_id := @database@
$(dist): sources := $(cxx_tun)
$(dist): data_dist := test.std
$(dist): export name := $(name)
diff --git a/common/transaction/callback/makefile b/common/transaction/callback/makefile
index f4ed18b..e60c936 100644
--- a/common/transaction/callback/makefile
+++ b/common/transaction/callback/makefile
@@ -32,7 +32,6 @@ $(out_base)/: $(driver)
#
name := $(subst /,-,$(subst $(src_root)/common/,,$(src_base)))
-$(dist): db_id := @database@
$(dist): sources := $(cxx_tun)
$(dist): data_dist := test.std
$(dist): export name := $(name)
diff --git a/common/types/makefile b/common/types/makefile
index ec58785..f47e4d4 100644
--- a/common/types/makefile
+++ b/common/types/makefile
@@ -34,10 +34,12 @@ gen := $(addprefix $(out_base)/,$(genf))
$(gen): $(odb)
$(gen): odb := $(odb)
-$(gen) $(dist): export odb_options += --database $(db_id) --table-prefix types_
+$(gen) $(dist): export odb_options += --table-prefix types_
$(gen): cpp_options := -I$(src_base)
$(gen): $(common.l.cpp-options)
+$(gen): odb_options += --database $(db_id)
+
$(call include-dep,$(cxx_od),$(cxx_obj),$(gen))
# Alias for default target.
@@ -48,7 +50,6 @@ $(out_base)/: $(driver)
#
name := $(subst /,-,$(subst $(src_root)/common/,,$(src_base)))
-$(dist): db_id := @database@
$(dist): sources := $(cxx_tun)
$(dist): headers := $(odb_hdr)
$(dist): data_dist := test.std
diff --git a/common/view/makefile b/common/view/makefile
index bc74e97..6aad221 100644
--- a/common/view/makefile
+++ b/common/view/makefile
@@ -34,11 +34,13 @@ gen := $(addprefix $(out_base)/,$(genf))
$(gen): $(odb)
$(gen): odb := $(odb)
-$(gen) $(dist): export odb_options += --database $(db_id) --generate-schema \
---generate-query --generate-prepared --table-prefix t_view_
+$(gen) $(dist): export odb_options += --generate-schema --generate-query \
+--generate-prepared --table-prefix t_view_
$(gen): cpp_options := -I$(src_base)
$(gen): $(common.l.cpp-options)
+$(gen): odb_options += --database $(db_id)
+
$(call include-dep,$(cxx_od),$(cxx_obj),$(gen))
# Alias for default target.
@@ -49,7 +51,6 @@ $(out_base)/: $(driver)
#
name := $(subst /,-,$(subst $(src_root)/common/,,$(src_base)))
-$(dist): db_id := @database@
$(dist): sources := $(cxx_tun)
$(dist): headers := $(odb_hdr)
$(dist): data_dist := test.std
diff --git a/common/virtual/makefile b/common/virtual/makefile
index a98a69d..168c969 100644
--- a/common/virtual/makefile
+++ b/common/virtual/makefile
@@ -34,11 +34,13 @@ gen := $(addprefix $(out_base)/,$(genf))
$(gen): $(odb)
$(gen): odb := $(odb)
-$(gen) $(dist): export odb_options += --database $(db_id) --generate-schema \
---generate-query --generate-session --table-prefix virtual_
+$(gen) $(dist): export odb_options += --generate-schema --generate-query \
+--generate-session --table-prefix virtual_
$(gen): cpp_options := -I$(src_base)
$(gen): $(common.l.cpp-options)
+$(gen): odb_options += --database $(db_id)
+
$(call include-dep,$(cxx_od),$(cxx_obj),$(gen))
# Alias for default target.
@@ -49,7 +51,6 @@ $(out_base)/: $(driver)
#
name := $(subst /,-,$(subst $(src_root)/common/,,$(src_base)))
-$(dist): db_id := @database@
$(dist): sources := $(cxx_tun)
$(dist): headers := $(odb_hdr)
$(dist): data_dist := test.std
diff --git a/common/wrapper/makefile b/common/wrapper/makefile
index 8511bd9..68492c1 100644
--- a/common/wrapper/makefile
+++ b/common/wrapper/makefile
@@ -34,11 +34,12 @@ gen := $(addprefix $(out_base)/,$(genf))
$(gen): $(odb)
$(gen): odb := $(odb)
-$(gen) $(dist): export odb_options += --database $(db_id) --generate-schema \
---table-prefix wrapper_
+$(gen) $(dist): export odb_options += --generate-schema --table-prefix wrapper_
$(gen): cpp_options := -I$(src_base)
$(gen): $(common.l.cpp-options)
+$(gen): odb_options += --database $(db_id)
+
$(call include-dep,$(cxx_od),$(cxx_obj),$(gen))
# Alias for default target.
@@ -49,7 +50,6 @@ $(out_base)/: $(driver)
#
name := $(subst /,-,$(subst $(src_root)/common/,,$(src_base)))
-$(dist): db_id := @database@
$(dist): sources := $(cxx_tun)
$(dist): headers := $(odb_hdr)
$(dist): data_dist := test.std