aboutsummaryrefslogtreecommitdiff
path: root/odb/tracer/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'odb/tracer/makefile')
-rw-r--r--odb/tracer/makefile38
1 files changed, 27 insertions, 11 deletions
diff --git a/odb/tracer/makefile b/odb/tracer/makefile
index 1ab1487..40a9215 100644
--- a/odb/tracer/makefile
+++ b/odb/tracer/makefile
@@ -5,16 +5,18 @@
include $(dir $(lastword $(MAKEFILE_LIST)))../../build/bootstrap.make
-cxx_tun := exceptions.cxx database.cxx transaction.cxx transaction-impl.cxx
-cxx_obj := $(addprefix $(out_base)/,$(cxx_tun:.cxx=.o))
-cxx_od := $(cxx_obj:.o=.o.d)
+cxx := exceptions.cxx database.cxx transaction.cxx transaction-impl.cxx
+
+cxx_tun := $(cxx)
+cxx_obj := $(addprefix $(out_base)/,$(cxx_tun:.cxx=.o))
+cxx_od := $(cxx_obj:.o=.o.d)
odb_tracer.l := $(out_base)/odb-tracer.l
odb_tracer.l.cpp-options := $(out_base)/odb-tracer.l.cpp-options
-default := $(out_base)/
-install := $(out_base)/.install
-clean := $(out_base)/.clean
+default := $(out_base)/
+dist := $(out_base)/.dist
+clean := $(out_base)/.clean
# Import.
#
@@ -36,12 +38,21 @@ $(call include-dep,$(cxx_od))
#
$(out_base)/: $(odb_tracer.l)
-# Install.
+# Dist.
#
-$(install): $(odb_tracer.l)
- $(call install-lib,$<,$(install_lib_dir)/$(ld_lib_prefix)odb-tracer$(ld_lib_suffix))
- $(call install-dir,$(src_base),$(install_inc_dir)/odb/tracer,\
-'(' -name '*.hxx' -o -name '*.ixx' -o -name '*.txx' ')')
+$(dist): export sources := $(cxx)
+$(dist): export headers = $(subst $(src_base)/,,$(shell find $(src_base) \
+-name '*.hxx' -o -name '*.ixx' -o -name '*.txx'))
+$(dist): export extra_dist := libodb-tracer-vc9.vcproj \
+libodb-tracer-vc10.vcxproj libodb-tracer-vc10.vcxproj.filters
+$(dist): export interface_version = $(shell sed -e \
+'s/^\([0-9]*\.[0-9]*\).*/\1/' $(src_root)/version)
+
+$(dist):
+ $(call dist-data,$(sources) $(headers))
+ $(call meta-vc9proj,$(src_base)/libodb-tracer-vc9.vcproj)
+ $(call meta-vc10proj,$(src_base)/libodb-tracer-vc10.vcxproj)
+ $(call meta-automake)
# Clean.
#
@@ -52,6 +63,11 @@ $(clean): $(odb_tracer.l).o.clean \
# How to.
#
+$(call include,$(bld_root)/dist.make)
+$(call include,$(bld_root)/meta/vc9proj.make)
+$(call include,$(bld_root)/meta/vc10proj.make)
+$(call include,$(bld_root)/meta/automake.make)
+
$(call include,$(bld_root)/cxx/o-l.make)
$(call include,$(bld_root)/cxx/cxx-o.make)
$(call include,$(bld_root)/cxx/cxx-d.make)