2007-06-06 Nagappan A <anagappan@novell.com>
[mono.git] / mcs / class / System.Data / Makefile
1 thisdir = class/System.Data
2 SUBDIRS = 
3 include ../../build/rules.make
4
5 # I have *no idea* why I need to do this.
6
7 ifeq ($(PROFILE),atomic)
8 system = System.dll
9 else
10 system = $(topdir)/class/lib/$(PROFILE)/System.dll
11 endif
12
13 ifeq (net_2_0, $(PROFILE))
14 OTHER_LIB_MCS_FLAGS = -r:System.Configuration.dll \
15                         -r:System.Transactions.dll
16 endif
17
18 LIBRARY = System.Data.dll
19 LIB_MCS_FLAGS = \
20         -nowarn:649 -nowarn:169 -nowarn:219 -nowarn:168 -nowarn:1595 \
21         -unsafe \
22         -r:$(corlib)                            \
23         -r:$(system)                            \
24         -r:System.Xml.dll                       \
25
26
27 ifeq (net_1_1_java, $(PROFILE))
28 OTHER_RES = $(RESOURCE_FILES)
29 LIB_MCS_FLAGS +=        \
30         -r:rt.dll                               \
31         -r:J2SE.Helpers.dll                     \
32         $(OTHER_LIB_MCS_FLAGS)
33
34 else
35 LIB_MCS_FLAGS += \
36         -r:System.EnterpriseServices.dll        \
37         -r:Mono.Data.Tds.dll \
38         $(OTHER_LIB_MCS_FLAGS)
39 endif
40
41 TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) -nowarn:618
42
43 TEST_MONO_PATH = .
44
45 EXTRA_DISTFILES = \
46         TODO                                    \
47         Test/System.Data/region.xml             \
48         Test/System.Data/store.xsd              \
49         Test/System.Data/own_schema.xsd         \
50         Test/System.Xml/2books.xml              \
51         Test/System.Xml/region.xml              \
52         Test/System.Xml/region.xsd              \
53         Test/System.Xml/store.xsd               \
54         Test/System.Data/schemas/bug77248.xsd   \
55         Test/System.Data/schemas/ChangeLog      \
56         Test/System.Data/schemas/test001.xsd    \
57         Test/System.Data/schemas/test002.xsd    \
58         Test/System.Data/schemas/test003.xsd    \
59         Test/System.Data/schemas/test004.xsd    \
60         Test/System.Data/schemas/test005.xsd    \
61         Test/System.Data/schemas/test006.xsd    \
62         Test/System.Data/schemas/test007.xsd    \
63         Test/System.Data/schemas/test008.xsd    \
64         Test/System.Data/schemas/test009.xsd    \
65         Test/System.Data/schemas/test010.xsd    \
66         Test/System.Data/schemas/test011.xsd    \
67         Test/System.Data/schemas/test012.xsd    \
68         Test/System.Data/schemas/test013.xsd    \
69         Test/System.Data/schemas/test014.xsd    \
70         Test/System.Data/schemas/test015.xsd    \
71         Test/System.Data/schemas/test016.xsd    \
72         Test/System.Data/schemas/test017.xsd    \
73         Test/System.Data/schemas/test101.xsd    \
74         Test/System.Data/schemas/test102.xsd    \
75         Test/System.Data/schemas/test103.xsd    \
76         Test/System.Data/schemas/Items.xsd      \
77         Test/System.Data/TypedDataSet.xml       \
78         Mono.Data.SqlExpressions/Parser.jay     \
79         app_test_2.0.config
80
81 BUILT_SOURCES = Mono.Data.SqlExpressions/Parser.cs
82
83 Mono.Data.SqlExpressions/Parser.cs: Mono.Data.SqlExpressions/Parser.jay $(topdir)/jay/skeleton.cs
84         $(topdir)/jay/jay -ct < $(topdir)/jay/skeleton.cs $< >$@
85
86 include ../../build/library.make
87
88 ifeq (net_2_0, $(PROFILE))
89 $(test_lib): $(test_lib).config
90
91 $(test_lib).config: app_test_2.0.config
92         cp $< $@
93 endif