aboutsummaryrefslogtreecommitdiff
path: root/dist/examples/cxx/hybrid/evolution/passthrough/nmakefile
blob: fe85b4a7e196fc01c40589e32ab9d9b9913d4ad8 (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
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
74
75
76
77
78
79
80
root = ..\..\..\..\..

!include $(root)\build\cxx\rules.nmake

# Build.
#
EXTRA_CPPFLAGS = /I$(root)\libxsde

!if "$(XSDE_ENCODING)" == "iso8859-1"
EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --char-encoding iso8859-1
!endif

!if "$(XSDE_LONGLONG)" == "n"
EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --no-long-long
!endif

!if "$(XSDE_PARSER_VALIDATION)" == "n"
EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --suppress-parser-val
!endif

!if "$(XSDE_SERIALIZER_VALIDATION)" == "n"
EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --suppress-serializer-val
!endif

!if "$(XSDE_REUSE_STYLE)" == "mixin"
EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --reuse-style-mixin
!endif

!if "$(XSDE_POLYMORPHIC)" == "y"
EXTRA_XSDFLAGS = $(EXTRA_XSDFLAGS) --runtime-polymorphic
!endif

driver.exe: driver.obj unknown-type.obj transform.obj xml.obj \
transform-pskel.obj transform-pimpl.obj transform-sskel.obj \
transform-simpl.obj unknown-type-pimpl.obj unknown-type-simpl.obj \
$(root)\libxsde\xsde\xsde.lib

driver.obj: driver.cxx transform.hxx unknown-type.hxx xml.hxx xml.ixx \
transform-pimpl.hxx transform-simpl.hxx
transform.obj: transform.cxx transform.hxx unknown-type.hxx
xml.obj: xml.cxx xml.hxx xml.ixx transform.hxx
transform-pskel.obj: transform-pskel.cxx
transform-pimpl.obj: transform-pimpl.cxx
transform-simpl.obj: transform-simpl.cxx
transform-simpl.obj: transform-simpl.cxx
unknown-type.obj: unknown-type.cxx unknown-type.hxx transform.hxx xml.hxx \
xml.ixx
unknown-type-pimpl.obj: unknown-type-pimpl.cxx unknown-type-pimpl.hxx \
transform.hxx xml.hxx xml.ixx
unknown-type-simpl.obj: unknown-type-simpl.cxx unknown-type-simpl.hxx \
transform.hxx xml.hxx xml.ixx

transform.cxx transform.hxx \
transform-pskel.cxx transform-pskel.hxx transform-pimpl.cxx transform-pimpl.hxx \
transform-sskel.cxx transform-sskel.hxx transform-simpl.cxx transform-simpl.hxx \
: transform.xsd
	$(root)\bin\xsde.exe cxx-hybrid $(XSDFLAGS) $(EXTRA_XSDFLAGS) \
--options-file options transform.xsd


# Generate.
#
gen: transform.hxx


# Test.
#
test: driver.exe transform.xml
	.\driver.exe transform.xml

# Clean.
#
cleanobj:
	-del unknown-type.obj unknown-type-pimpl.obj unknown-type-simpl.obj \
transform-pimpl.obj transform-pskel.obj transform-simpl.obj \
transform-sskel.obj xml.obj transform.obj driver.obj driver.exe

clean: cleanobj
	-del transform-pimpl.?xx transform-pskel.?xx transform-simpl.?xx \
transform-sskel.?xx transform.?xx