[Backport to 2.4.3]
[mcs.git] / class / System.Data / Makefile
blob58114dd90725b96b2cad02f96077c4f03d49aa7f
1 thisdir = class/System.Data
2 SUBDIRS =
3 include ../../build/rules.make
5 # I have *no idea* why I need to do this.
7 ifeq ($(PROFILE),atomic)
8 system = System.dll
9 else
10 system = $(topdir)/class/lib/$(PROFILE)/System.dll
11 endif
13 ifeq (net_2_0, $(PROFILE))
14 OTHER_LIB_MCS_FLAGS = -r:System.Configuration.dll \
15 -r:System.Transactions.dll
16 endif
18 LIBRARY = System.Data.dll
19 LIB_MCS_FLAGS = \
20 -nowarn:649 \
21 -unsafe \
22 -r:$(corlib) \
23 -r:$(system) \
24 -r:System.Xml.dll \
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)
34 else
35 LIB_MCS_FLAGS += \
36 -r:System.EnterpriseServices.dll \
37 -r:Mono.Data.Tds.dll \
38 $(OTHER_LIB_MCS_FLAGS)
39 endif
41 TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) -nowarn:618,169,612,219,168
43 TEST_MONO_PATH = .
45 EXTRA_DISTFILES = \
46 TODO \
47 $(wildcard Test/System.Data/*.xml) \
48 $(wildcard Test/System.Data/*.xsd) \
49 $(wildcard Test/System.Xml/*.xml) \
50 $(wildcard Test/System.Xml/*.xsd) \
51 Test/System.Data/schemas/ChangeLog \
52 $(wildcard Test/System.Data/schemas/*.xsd) \
53 Mono.Data.SqlExpressions/Parser.jay \
54 app_test_2.0.config \
55 Test/System.Data/binserialize/*.bin
57 BUILT_SOURCES = Mono.Data.SqlExpressions/Parser.cs
59 Mono.Data.SqlExpressions/Parser.cs: Mono.Data.SqlExpressions/Parser.jay $(topdir)/jay/skeleton.cs
60 $(topdir)/jay/jay -ct < $(topdir)/jay/skeleton.cs $< >$@
62 include ../../build/library.make
64 ifeq (net_2_0, $(PROFILE))
65 $(test_lib): $(test_lib).config
67 $(test_lib).config: app_test_2.0.config
68 cp $< $@
69 endif