Merge pull request #1603 from iainx/coverage-null-protect
[mono.git] / mcs / class / System.Data / Makefile
1 thisdir = class/System.Data
2 SUBDIRS = 
3 include ../../build/rules.make
4
5 LIBRARY = System.Data.dll
6
7 LIB_REFS = System System.Xml System.Core
8 LIB_MCS_FLAGS = \
9         -nowarn:649 \
10         -unsafe \
11         -r:System                               \
12         -r:System.Xml.dll \
13         -r:System.Core.dll
14
15 MOBILE := $(filter monotouch monodroid xammac mobile mobile_static, $(PROFILE))
16 ifdef MOBILE
17 LIB_REFS += Mono.Data.Tds System.Transactions
18 LIB_MCS_FLAGS += \
19         -r:Mono.Data.Tds.dll \
20         -r:System.Transactions.dll
21 else
22 LIB_REFS += System.EnterpriseServices Mono.Data.Tds System.Configuration System.Transactions
23 LIB_MCS_FLAGS += \
24         -r:System.EnterpriseServices.dll        \
25         -r:Mono.Data.Tds.dll \
26         -r:System.Configuration.dll \
27         -r:System.Transactions.dll
28 endif
29
30 RESOURCE_STRINGS = ../../../external/referencesource/System.Data/system.data.txt
31
32 TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) -r:System.Core.dll -r:Mono.Data.Sqlite.dll -nowarn:618,169,612,219,168
33
34 TEST_MONO_PATH = .
35
36 EXTRA_DISTFILES = \
37         TODO                                    \
38         $(wildcard Test/System.Data/*.xml)              \
39         $(wildcard Test/System.Data/*.xsd)              \
40         $(wildcard Test/System.Xml/*.xml)               \
41         $(wildcard Test/System.Xml/*.xsd)               \
42         Test/System.Data/schemas/ChangeLog      \
43         $(wildcard Test/System.Data/schemas/*.xsd)              \
44         Mono.Data.SqlExpressions/Parser.jay     \
45         app_test_net_2_0.config                 \
46         app_test_net_4_5.config                 \
47         Test/System.Data/binserialize/*.bin     \
48         SqliteTest.db
49
50 BUILT_SOURCES = Mono.Data.SqlExpressions/Parser.cs
51
52 Mono.Data.SqlExpressions/Parser.cs: Mono.Data.SqlExpressions/Parser.jay $(topdir)/jay/skeleton.cs
53         $(topdir)/jay/jay -vct < $(topdir)/jay/skeleton.cs $(CURDIR)/$< >$@
54         rm -f y.output
55
56 include ../../build/library.make
57
58 $(test_lib): $(test_lib).config
59
60 $(test_lib).config: app_test_$(PROFILE).config
61         cp $< $@