1 # Makefile for the XML parser
2 # (c) 2007 Pavel Charvat <pchar@ucw.cz>
5 PROGS+=$(o)/sherlock/xml/xml-test
7 LIBSHXML_MODS=common source parse dtd
8 LIBSHXML_INCLUDES=xml.h dtd.h
10 LIBSHXML_MOD_PATHS=$(addprefix $(o)/sherlock/xml/,$(LIBSHXML_MODS))
12 $(o)/sherlock/xml/libshxml.a: $(addsuffix .o,$(LIBSHXML_MOD_PATHS))
13 $(o)/sherlock/xml/libshxml.so: $(addsuffix .oo,$(LIBSHXML_MOD_PATHS))
14 $(o)/sherlock/xml/libshxml.pc: $(LIBSH) $(LIBCHARSET)
16 $(o)/sherlock/xml/common.o: $(o)/sherlock/xml/unicat.stamp
17 $(o)/sherlock/xml/source.o: $(o)/sherlock/xml/unicat.stamp
18 $(o)/sherlock/xml/parse.o: $(o)/sherlock/xml/unicat.stamp
19 $(o)/sherlock/xml/dtd.o: $(o)/sherlock/xml/unicat.stamp
20 $(o)/sherlock/xml/unicat.stamp: $(s)/sherlock/xml/unicat.pl
21 $(M)GEN $(addprefix $(o)/sherlock/xml/unicat,.h .c)
22 $(Q)$< $(addprefix $(o)/sherlock/xml/unicat,.h .c)
25 TESTS+=$(o)/sherlock/xml/xml-test.test
26 $(o)/sherlock/xml/xml-test: $(o)/sherlock/xml/xml-test.o $(LIBSHXML)
27 $(o)/sherlock/xml/xml-test.test: $(o)/sherlock/xml/xml-test
30 API_INCLUDES+=$(o)/sherlock/xml/.include-stamp
31 $(o)/sherlock/xml/.include-stamp: $(addprefix $(s)/sherlock/xml/,$(LIBSHXML_INCLUDES))
32 $(o)/sherlock/xml/.include-stamp: IDST=sherlock/xml
33 run/lib/pkgconfig/libshxml.pc: $(o)/sherlock/xml/libshxml.pc