aboutsummaryrefslogtreecommitdiff
path: root/examples/cxx/tree/makefile
blob: 7866b33e3ff3ea38f70be47837bab95f1e2dd3da (plain)
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
# file      : examples/cxx/tree/makefile
# author    : Boris Kolpackov <boris@codesynthesis.com>
# copyright : Copyright (c) 2006-2009 Code Synthesis Tools CC
# license   : GNU GPL v2 + exceptions; see accompanying LICENSE file

include $(dir $(lastword $(MAKEFILE_LIST)))../../../build/bootstrap.make

examples := binary caching custom hello library messaging mixed multiroot \
performance polymorphism streaming wildcard

ifeq ($(xsd_with_dbxml),y)
examples += dbxml
endif

ifeq ($(xsd_with_xqilla),y)
examples += xpath
endif

default   := $(out_base)/
clean     := $(out_base)/.clean

.PHONY: $(default) $(clean)

$(default): $(addprefix $(out_base)/,$(addsuffix /,$(examples)))
$(clean): $(addprefix $(out_base)/,$(addsuffix /.clean,$(examples)))

$(foreach e,$(examples),$(call import,$(src_base)/$e/makefile))