aboutsummaryrefslogtreecommitdiff
path: root/dist/examples/cxx/tree/custom/wildcard/makefile
blob: 20ea1d21669c1d334fc599b15a7be0e63a5e4b2b (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
root := ../../../..

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


override XSDFLAGS += --generate-inline --generate-ostream \
--generate-serialization --custom-type data=/data_base \
--hxx-epilogue '\#include "wildcard-custom.hxx"'


# Build.
#
driver: driver.o wildcard.o wildcard-custom.o

wildcard.o: wildcard.cxx wildcard.ixx wildcard.hxx wildcard-custom.hxx
driver.o: driver.cxx wildcard.ixx wildcard.hxx wildcard-custom.hxx
wildcard-custom.o: wildcard-custom.cxx wildcard.ixx wildcard.hxx wildcard-custom.hxx

wildcard.cxx wildcard.hxx wildcard.ixx: wildcard.xsd


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


# Clean.
#
.PHONY: clean
clean:
	rm -f wildcard-custom.o wildcard.o wildcard.?xx driver.o driver