]> mj.ucw.cz Git - libucw.git/blob - sherlock/xml/Makefile
Hotfix in XML Makefile. I dont know why but the previous version did not
[libucw.git] / sherlock / xml / Makefile
1 # Makefile for the XML parser
2 # (c) 2007 Pavel Charvat <pchar@ucw.cz>
3
4 DIRS+=sherlock/xml
5 PROGS+=$(o)/sherlock/xml/xml-test
6
7 LIBSHXML_MODS=common source parse dtd
8 LIBSHXML_INCLUDES=xml.h dtd.h
9
10 LIBSHXML_MOD_PATHS=$(addprefix $(o)/sherlock/xml/,$(LIBSHXML_MODS))
11
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)
15
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)
23         $(Q)touch $@
24
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
28
29 API_LIBS+=libshxml
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