aboutsummaryrefslogtreecommitdiff
path: root/dist/examples/build/xsd/parser-rules.make
blob: 6edd183fcad77e938b3aeba66303fc21fb7bde95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# file      : examples/build/xsd/parser-rules.make
# copyright : Copyright (c) 2006-2017 Code Synthesis Tools CC
# license   : GNU GPL v2 + exceptions; see accompanying LICENSE file

include $(root)/build/xsd/common.make

XML_PARSER := xerces

ifeq ($(XML_PARSER),xerces)
override LIBS := -lxerces-c $(LIBS)
else
override LIBS := -lexpat $(LIBS)
endif

override XSDFLAGS += --xml-parser $(XML_PARSER)

# Rules.
#
.PRECIOUS: %-pskel.hxx %-pskel.ixx %-pskel.cxx

%-pskel.hxx %-pskel.ixx %-pskel.cxx: %.xsd
	$(XSD) cxx-parser $(XSDFLAGS) $<