# file : odb/tracer/makefile # author : Boris Kolpackov # copyright : Copyright (c) 2009-2010 Code Synthesis Tools CC # license : GNU GPL v2; see accompanying LICENSE file include $(dir $(lastword $(MAKEFILE_LIST)))../../build/bootstrap.make 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)/ dist := $(out_base)/.dist clean := $(out_base)/.clean # Import. # $(call import,\ $(scf_root)/import/libodb/stub.make,\ l: odb.l,cpp-options: odb.l.cpp-options) # Build. # $(odb_tracer.l): $(cxx_obj) $(odb.l) $(odb_tracer.l.cpp-options): value := -I$(src_root) $(odb_tracer.l.cpp-options): $(odb.l.cpp-options) $(cxx_obj) $(cxx_od): $(odb_tracer.l.cpp-options) $(call include-dep,$(cxx_od)) # Convenience alias for default target. # $(out_base)/: $(odb_tracer.l) # Dist. # $(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) details/config.h.in) $(call meta-vc9proj,$(src_base)/libodb-tracer-vc9.vcproj) $(call meta-vc10proj,$(src_base)/libodb-tracer-vc10.vcxproj) $(call meta-automake) # Clean. # $(clean): $(odb_tracer.l).o.clean \ $(odb_tracer.l.cpp-options).clean \ $(addsuffix .cxx.clean,$(cxx_obj)) \ $(addsuffix .cxx.clean,$(cxx_od)) # 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)