1root := ../../../.. 2 3include $(root)/build/cxx/rules.make 4include $(root)/build/xsd/tree-rules.make 5 6 7override XSDFLAGS += --generate-ostream --generate-insertion XDR \ 8--generate-extraction XDR 9 10 11override LIBS += -lnsl 12 13 14# Build. 15# 16driver: driver.o library.o 17 18library.o: library.cxx library.hxx 19driver.o: driver.cxx library.hxx 20 21library.cxx library.hxx: library.xsd 22 23 24# Test 25# 26.PHONY: test 27test: driver library.xml 28 ./driver library.xml 29 30 31# Clean. 32# 33.PHONY: clean 34clean: 35 rm -f library.o library.?xx driver.o driver 36