aboutsummaryrefslogtreecommitdiff
path: root/dist/examples/build/xsd/parser-rules.make
blob: a1bc24a0f7930863060b2083649aae13ea5ac1db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# file      : examples/build/xsd/parser-rules.make
# author    : Boris Kolpackov <boris@codesynthesis.com>
# copyright : Copyright (c) 2006-2011 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) $<