Merge pull request #1156 from felfert/master
[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_MCS_FLAGS = \
8         -nowarn:649 \
9         -unsafe \
10         -r:System                               \
11         -r:System.Xml.dll \
12         -r:System.Core.dll
13
14 MOBILE := $(filter monotouch monodroid xammac mobile mobile_static, $(PROFILE))
15 ifdef MOBILE
16 LIB_MCS_FLAGS += \
17         -r:Mono.Data.Tds.dll \
18         -r:System.Transactions.dll
19 else
20 LIB_MCS_FLAGS += \
21         -r:System.EnterpriseServices.dll        \
22         -r:Mono.Data.Tds.dll \
23         -r:System.Configuration.dll \
24         -r:System.Transactions.dll
25 endif
26
27 TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) -r:System.Core.dll -r:Mono.Data.Sqlite.dll -nowarn:618,169,612,219,168
28
29 TEST_MONO_PATH = .
30
31 EXTRA_DISTFILES = \
32         TODO                                    \
33         $(wildcard Test/System.Data/*.xml)              \
34         $(wildcard Test/System.Data/*.xsd)              \
35         $(wildcard Test/System.Xml/*.xml)               \
36         $(wildcard Test/System.Xml/*.xsd)               \
37         Test/System.Data/schemas/ChangeLog      \
38         $(wildcard Test/System.Data/schemas/*.xsd)              \
39         Mono.Data.SqlExpressions/Parser.jay     \
40         app_test_net_2_0.config                 \
41         app_test_net_4_5.config                 \
42         Test/System.Data/binserialize/*.bin     \
43         SqliteTest.db
44
45 BUILT_SOURCES = Mono.Data.SqlExpressions/Parser.cs
46
47 Mono.Data.SqlExpressions/Parser.cs: Mono.Data.SqlExpressions/Parser.jay $(topdir)/jay/skeleton.cs
48         $(topdir)/jay/jay -vct < $(topdir)/jay/skeleton.cs $(CURDIR)/$< >$@
49         rm -f y.output
50
51 include ../../build/library.make
52
53 $(test_lib): $(test_lib).config
54
55 $(test_lib).config: app_test_$(PROFILE).config
56         cp $< $@