summaryrefslogtreecommitdiff
path: root/dist/examples/cxx/tree/xpath/makefile
blob: d5f2833df7dd99b067ba3b7a8639281cb5a95102 (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
root := ../../..

include $(root)/build/cxx/rules.make
include $(root)/build/xsd/tree-rules.make

override LIBS += -lxqilla

# Build.
#
driver: driver.o people.o dom-parse.o

people.o: people.cxx people.hxx
driver.o: driver.cxx people.hxx dom-parse.hxx
people.o: dom-parse.cxx dom-parse.hxx

people.cxx people.hxx: people.xsd


# Test
#
.PHONY: test
test: driver people.xml
	./driver people.xml


# Clean.
#
.PHONY: clean
clean:
	rm -f people.o people.?xx driver.o dom-parse.o driver