2010-04-07 Jb Evain <jbevain@novell.com>
[mcs.git] / class / System.Data / Makefile
blob78e7c33051d8e3d1e6000dfe2a8ac6c0e701d73b
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 ifneq (1, $(FRAMEWORK_VERSION_MAJOR))
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)
33 else
34 ifeq (monotouch, $(PROFILE))
35 LIB_MCS_FLAGS += \
36 -r:Mono.Data.Tds.dll \
37 -r:System.Transactions.dll
38 else
39 LIB_MCS_FLAGS += \
40 -r:System.EnterpriseServices.dll \
41 -r:Mono.Data.Tds.dll \
42 $(OTHER_LIB_MCS_FLAGS)
43 endif
44 endif
46 TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) -nowarn:618,169,612,219,168
48 TEST_MONO_PATH = .
50 EXTRA_DISTFILES = \
51 TODO \
52 $(wildcard Test/System.Data/*.xml) \
53 $(wildcard Test/System.Data/*.xsd) \
54 $(wildcard Test/System.Xml/*.xml) \
55 $(wildcard Test/System.Xml/*.xsd) \
56 Test/System.Data/schemas/ChangeLog \
57 $(wildcard Test/System.Data/schemas/*.xsd) \
58 Mono.Data.SqlExpressions/Parser.jay \
59 app_test_2.0.config \
60 Test/System.Data/binserialize/*.bin
62 BUILT_SOURCES = Mono.Data.SqlExpressions/Parser.cs
64 Mono.Data.SqlExpressions/Parser.cs: Mono.Data.SqlExpressions/Parser.jay $(topdir)/jay/skeleton.cs
65 $(topdir)/jay/jay -ct < $(topdir)/jay/skeleton.cs $< >$@
67 include ../../build/library.make
69 ifeq (net_2_0, $(PROFILE))
70 $(test_lib): $(test_lib).config
72 $(test_lib).config: app_test_2.0.config
73 cp $< $@
74 endif