2006-03-05 Senganal T <tsenganal@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 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         $(RESX_RES:%=/res:%)
33
34 OLEDBSTRINGS = System.Data.ProviderBase.jvm/System.Data.System.Data.ProviderBase.jvm.OleDbStrings.resources
35 SQLCLIENTSTRINGS = System.Data.ProviderBase.jvm/System.Data.System.Data.ProviderBase.jvm.SqlClientStrings.resources
36 SQLCOMMAND = System.Data.SqlClient.jvm/System.Data.SqlClient.SqlCommand.resources
37 SQLCONNECTION = System.Data.SqlClient.jvm/System.Data.SqlClient.SqlConnection.resources
38
39 RESX_RES = \
40         $(OLEDBSTRINGS) \
41         $(SQLCLIENTSTRINGS)     \
42         $(SQLCOMMAND)   \
43         $(SQLCONNECTION)
44 else
45 LIB_MCS_FLAGS += \
46         -r:System.EnterpriseServices.dll        \
47         -r:Mono.Data.Tds.dll \
48         $(OTHER_LIB_MCS_FLAGS)
49 endif
50
51 TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) -nowarn:618
52
53 EXTRA_DISTFILES = \
54         TODO                                    \
55         Test/System.Data/region.xml             \
56         Test/System.Data/store.xsd              \
57         Test/System.Data/own_schema.xsd         \
58         Test/System.Xml/2books.xml              \
59         Test/System.Xml/region.xml              \
60         Test/System.Xml/region.xsd              \
61         Test/System.Xml/store.xsd               \
62         Mono.Data.SqlExpressions/Parser.jay     \
63         app_test_2.0.config
64
65 BUILT_SOURCES = Mono.Data.SqlExpressions/Parser.cs
66
67 Mono.Data.SqlExpressions/Parser.cs: Mono.Data.SqlExpressions/Parser.jay $(topdir)/jay/skeleton.cs
68         $(topdir)/jay/jay -ct < $(topdir)/jay/skeleton.cs $< >$@
69
70 include ../../build/library.make
71
72 $(the_lib) : $(OLEDBSTRINGS) $(SQLCLIENTSTRINGS) $(SQLCOMMAND) $(SQLCONNECTION)
73 $(OLEDBSTRINGS) : System.Data.ProviderBase.jvm/OleDbStrings.resx
74         $(RESGEN) $< $@
75 $(SQLCLIENTSTRINGS) : System.Data.ProviderBase.jvm/SqlClientStrings.resx
76         $(RESGEN) $< $@
77 $(SQLCOMMAND) : System.Data.SqlClient.jvm/SqlCommand.resx
78         $(RESGEN) $< $@
79 $(SQLCONNECTION) : System.Data.SqlClient.jvm/SqlConnection.resx
80         $(RESGEN) $< $@
81 ifeq (net_2_0, $(PROFILE))
82 $(test_lib): $(test_lib).config
83
84 $(test_lib).config: app_test_2.0.config
85         cp $< $@
86 endif