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