d026f75e50882a897cf1fc9278bafb7ee8cfda78
[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 endif
16
17 LIBRARY = System.Data.dll
18 LIB_MCS_FLAGS = \
19         -nowarn:649 -nowarn:169 -nowarn:219 -nowarn:168 -nowarn:1595 \
20         -unsafe \
21         -r:$(corlib)                            \
22         -r:$(system)                            \
23         -r:System.Xml.dll                       \
24
25
26 ifeq (net_1_1_java, $(PROFILE))
27 OTHER_RES = $(RESOURCE_FILES)
28 LIB_MCS_FLAGS +=        \
29         -r:rt.dll                               \
30         -r:J2SE.Helpers.dll                     \
31         $(OTHER_LIB_MCS_FLAGS)
32
33 else
34 LIB_MCS_FLAGS += \
35         -r:System.EnterpriseServices.dll        \
36         -r:Mono.Data.Tds.dll \
37         $(OTHER_LIB_MCS_FLAGS)
38 endif
39
40 TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) -nowarn:618
41
42 EXTRA_DISTFILES = \
43         TODO                                    \
44         Test/System.Data/region.xml             \
45         Test/System.Data/store.xsd              \
46         Test/System.Data/own_schema.xsd         \
47         Test/System.Xml/2books.xml              \
48         Test/System.Xml/region.xml              \
49         Test/System.Xml/region.xsd              \
50         Test/System.Xml/store.xsd               \
51         Test/System.Data/schemas/bug77248.xsd   \
52         Test/System.Data/schemas/ChangeLog      \
53         Test/System.Data/schemas/test001.xsd    \
54         Test/System.Data/schemas/test002.xsd    \
55         Test/System.Data/schemas/test003.xsd    \
56         Test/System.Data/schemas/test004.xsd    \
57         Test/System.Data/schemas/test005.xsd    \
58         Test/System.Data/schemas/test006.xsd    \
59         Test/System.Data/schemas/test007.xsd    \
60         Test/System.Data/schemas/test008.xsd    \
61         Test/System.Data/schemas/test009.xsd    \
62         Test/System.Data/schemas/test010.xsd    \
63         Test/System.Data/schemas/test011.xsd    \
64         Test/System.Data/schemas/test012.xsd    \
65         Test/System.Data/schemas/test013.xsd    \
66         Test/System.Data/schemas/test014.xsd    \
67         Test/System.Data/schemas/test015.xsd    \
68         Test/System.Data/schemas/test016.xsd    \
69         Test/System.Data/schemas/test101.xsd    \
70         Test/System.Data/schemas/test102.xsd    \
71         Test/System.Data/schemas/test103.xsd    \
72         Test/System.Data/TypedDataSet.xml       \
73         Mono.Data.SqlExpressions/Parser.jay     \
74         app_test_2.0.config
75
76 BUILT_SOURCES = Mono.Data.SqlExpressions/Parser.cs
77
78 Mono.Data.SqlExpressions/Parser.cs: Mono.Data.SqlExpressions/Parser.jay $(topdir)/jay/skeleton.cs
79         $(topdir)/jay/jay -ct < $(topdir)/jay/skeleton.cs $< >$@
80
81 include ../../build/library.make
82
83 ifeq (net_2_0, $(PROFILE))
84 $(test_lib): $(test_lib).config
85
86 $(test_lib).config: app_test_2.0.config
87         cp $< $@
88 endif