2004-11-17 Atsushi Enomoto <atsushi@ximian.com>
[mono.git] / mcs / class / System.XML / Makefile
index 629d09a7714cd4ce01e19aa5c38e2611fdd149c4..964fced2967b58ad8001765e289f9d0be21dd2ba 100644 (file)
@@ -3,8 +3,15 @@ SUBDIRS =
 include ../../build/rules.make
 
 LIBRARY = System.Xml.dll
+LIBRARY_USE_INTERMEDIATE_FILE = yes
 
-LIB_MCS_FLAGS = /unsafe /r:$(corlib) /r:System.dll
+ifeq ($(PROFILE),atomic)
+SCARY_LIB=
+else
+SCARY_LIB=/lib:$(prefix)/lib /noconfig
+endif
+
+LIB_MCS_FLAGS = $(SCARY_LIB) /unsafe /r:$(corlib) /r:System.dll /nowarn:0162 /nowarn:0618 /nowarn:0612
 TEST_MCS_FLAGS = $(LIB_MCS_FLAGS)
 
 EXTRA_DISTFILES = \
@@ -16,6 +23,7 @@ EXTRA_DISTFILES = \
        $(wildcard System.Xml.Serialization/standalone_tests/*.cs) \
        $(wildcard System.Xml.Serialization/standalone_tests/*.output) \
        System.Xml.XPath/Parser.jay     \
+       System.Xml.Query/XQueryParser.jay       \
        Test/Microsoft.Test.csproj      \
        Test/Mono.Test.csproj           \
        Test/MonoMicro.Test.csproj      \
@@ -23,9 +31,14 @@ EXTRA_DISTFILES = \
        Test/XmlFiles/xsd/ChangeLog     \
        Test/XmlFiles/xsl/empty.xsl     \
        Test/XmlFiles/xsl/ChangeLog     \
-       Test/XmlFiles/ChangeLog         \
-       Test/NUnit.Prefs
+       Test/XmlFiles/ChangeLog
+
+System.Xml.XPath/Parser.cs: System.Xml.XPath/Parser.jay $(topdir)/jay/skeleton.cs
+       $(topdir)/jay/jay -ct < $(topdir)/jay/skeleton.cs $< >$@
+
+System.Xml.Query/XQueryParser.cs: System.Xml.Query/XQueryParser.jay System.Xml.Query/skeleton-2.0.cs
+       $(topdir)/jay/jay -ct < System.Xml.Query/skeleton-2.0.cs $< >$@
 
-CLEAN_FILES = Test/XmlFiles/xsl/result.xml
+CLEAN_FILES = Test/XmlFiles/xsl/result.xml System.Xml.XPath/Parser.cs System.Xml.Query/XQueryParser.cs
 
 include ../../build/library.make