1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
# file : odb/tracer/makefile
# author : Boris Kolpackov <boris@codesynthesis.com>
# 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))
$(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)
|