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
|
# file : tests/cxx/hybrid/makefile
# author : Boris Kolpackov <boris@codesynthesis.com>
# copyright : Copyright (c) 2006-2010 Code Synthesis Tools CC
# license : GNU GPL v2 + exceptions; see accompanying LICENSE file
include $(dir $(lastword $(MAKEFILE_LIST)))../../../build/bootstrap.make
# NOTE: remember to update dist/tests/cxx/hybrid/{makefile,nmakefile} if
# you change anything here.
#
all_tests := sequences polymorphism iterator built-in default enumeration \
iso8859-1 list recursive test-template union binary/cdr binary/xdr choice \
clone
build_tests := sequences
ifeq ($(xsde_polymorphic),y)
build_tests += polymorphism
endif
ifeq ($(xsde_stl),y)
ifeq ($(xsde_stl_iterator),y)
build_tests += iterator
endif
endif
ifeq ($(xsde_iostream),y)
build_tests += built-in default enumeration list test-template union
ifeq ($(xsde_encoding),iso8859-1)
build_tests += iso8859-1
endif
ifeq ($(xsde_parser_validation),y)
build_tests += choice recursive clone
ifeq ($(xsde_cdr),y)
build_tests += binary/cdr
endif
ifeq ($(xsde_xdr),y)
build_tests += binary/xdr
endif
endif
endif # xsde_iostream
default := $(out_base)/
test := $(out_base)/.test
dist := $(out_base)/.dist
dist-win := $(out_base)/.dist-win
clean := $(out_base)/.clean
$(default): $(addprefix $(out_base)/,$(addsuffix /,$(build_tests)))
$(test): $(addprefix $(out_base)/,$(addsuffix /.test,$(build_tests)))
$(clean): $(addprefix $(out_base)/,$(addsuffix /.clean,$(build_tests)))
$(dist): $(addprefix $(out_base)/,$(addsuffix /.dist,$(all_tests)))
$(dist-win): $(addprefix $(out_base)/,$(addsuffix /.dist-win,$(all_tests)))
ifneq ($(filter $(MAKECMDGOALS),dist dist-win),)
$(foreach t,$(all_tests),$(call import,$(src_base)/$t/makefile))
else
$(foreach t,$(build_tests),$(call import,$(src_base)/$t/makefile))
endif
|