2005-12-20 Atsushi Enomoto <atsushi@ximian.com>
[mono.git] / mcs / class / Commons.Xml.Relaxng / Makefile
index 2754ee2fa30cddbb86661bc97c1bc6741d60d441..322d055a0c58fbc375ad9cb6597fa05e2f8f896f 100644 (file)
@@ -2,9 +2,14 @@ thisdir = class/Commons.Xml.Relaxng
 SUBDIRS = 
 include ../../build/rules.make
 
+RESOURCE_FILES = resources/relaxng.rng
+
+OTHER_RES = $(RESOURCE_FILES)
+
 LIBRARY = Commons.Xml.Relaxng.dll
-LIB_MCS_FLAGS = /r:$(corlib) /r:System.dll /r:System.Xml.dll
-TEST_MCS_FLAGS = $(LIB_MCS_FLAGS)
+LIB_MCS_FLAGS = /r:$(corlib) /r:System.dll /r:System.Xml.dll \
+       $(foreach r, $(OTHER_RES), /resource:$(r),$(notdir $(r)))
+TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) -nowarn:0618 -nowarn:219 -nowarn:169
 EXTRA_DISTFILES = \
        Commons.Xml.Relaxng.Rnc/RncParser.jay   \
        Test/ChangeLog          \
@@ -17,12 +22,14 @@ EXTRA_DISTFILES = \
        Test/XmlFiles/team.rng  \
        Test/XmlFiles/relaxng.rng       \
        Test/XmlFiles/relaxng.rnc       \
-       $(wildcard Test/standalone_tests/*.cs)
-
+       $(wildcard Test/standalone_tests/*.cs) \
+       $(RESOURCE_FILES)
 
 Commons.Xml.Relaxng.Rnc/RncParser.cs: Commons.Xml.Relaxng.Rnc/RncParser.jay $(topdir)/jay/skeleton.cs
        $(topdir)/jay/jay -ctv < $(topdir)/jay/skeleton.cs Commons.Xml.Relaxng.Rnc/RncParser.jay > Commons.Xml.Relaxng.Rnc/RncParser.cs
 
-CLEAN_FILES = Commons.Xml.Relaxng.Rnc/RncParser.cs
+BUILT_SOURCES = Commons.Xml.Relaxng.Rnc/RncParser.cs
 
 include ../../build/library.make
+
+$(the_lib): $(OTHER_RES)