Merge pull request #5714 from alexischr/update_bockbuild
[mono.git] / mcs / class / Mono.Xml.Ext / Makefile
1 thisdir = class/Mono.Xml.Ext
2 SUBDIRS = 
3 include ../../build/rules.make
4
5 LIBRARY = Mono.Xml.Ext.dll
6
7 ifeq ($(PROFILE),atomic)
8 SCARY_LIB=
9 else
10 SCARY_LIB=/lib:$(prefix)/lib
11 endif
12
13 LIB_REFS = System System.Xml
14 KEYFILE = ../ecma.pub
15 LIB_MCS_FLAGS = $(SCARY_LIB) /unsafe
16 TEST_MCS_FLAGS = $(LIB_MCS_FLAGS)
17
18 EXTRA_DISTFILES = \
19         Mono.Xml.XPath2/XQueryParser.jay
20
21 SKELETON = $(topdir)/jay/skeleton.cs
22
23 Mono.Xml.XPath2/XPath2Parser.jay: Mono.Xml.XPath2/ParserBase.jay $(SKELETON)
24         sed "s/%start Module/%start Expr/" $< | sed "/\#XQueryStart/,/\#XQueryEnd/d" | sed "/\#XPath2Start/d" | sed "/\#XPath2End/d" >$@
25
26 Mono.Xml.XPath2/XQueryParser.jay: Mono.Xml.XPath2/ParserBase.jay $(SKELETON)
27         sed "/\#XPath2Start/,/\#XPath2End/d" $< | sed "/\#XQueryStart/d" | sed "/\#XQueryEnd/d" >$@
28
29 Mono.Xml.XPath2/XPath2Parser.cs: Mono.Xml.XPath2/XPath2Parser.jay
30         echo "#define XPATH2_PARSER" > $@
31         echo "#if NET_2_0" >> $@
32         $(topdir)/jay/jay -ct < $(SKELETON) $(CURDIR)/$< >>$@
33         echo "#endif" >> $@
34
35 Mono.Xml.XPath2/XQueryParser.cs: Mono.Xml.XPath2/XQueryParser.jay $(SKELETON)
36         echo "#define XQUERY_PARSER" > $@
37         echo "#if NET_2_0" >> $@
38         $(topdir)/jay/jay -ct < $(SKELETON) $(CURDIR)/$< >>$@
39         echo "#endif" >> $@
40
41 Mono.Xml.XPath2/XPath2Tokenizer.cs: Mono.Xml.XPath2/TokenizerBase.cs
42         echo "#define XPATH2_PARSER" > $@
43         cat $< >>$@
44
45 Mono.Xml.XPath2/XQueryTokenizer.cs: Mono.Xml.XPath2/TokenizerBase.cs
46         echo "#define XQUERY_PARSER" > $@
47         cat $< >>$@
48
49 BUILT_SOURCES = Mono.Xml.XPath2/XPath2Parser.cs \
50         Mono.Xml.XPath2/XPath2Tokenizer.cs \
51         Mono.Xml.XPath2/XQueryParser.cs \
52         Mono.Xml.XPath2/XQueryTokenizer.cs
53
54 CLEAN_FILES = Mono.Xml.Ext.pdb \
55         Mono.Xml.XPath2/XPath2Parser.jay \
56         Mono.Xml.XPath2/XPath2Parser.cs \
57         Mono.Xml.XPath2/XQueryParser.cs \
58         y.output
59
60 include ../../build/library.make