Add handling of new net_4_0 profile
[mono.git] / mcs / class / Mono.Data.Sqlite / Makefile
1 thisdir = class/Mono.Data.Sqlite
2 SUBDIRS =
3 include ../../build/rules.make
4
5 ifneq (1, $(FRAMEWORK_VERSION_MAJOR))
6 OTHER_LIB_MCS_FLAGS = /r:System.Transactions.dll
7
8 RESX_RESOURCES = resources/SR.resources
9
10 RESOURCES = $(RESX_RESOURCES)
11 endif
12
13 LIBRARY = Mono.Data.Sqlite.dll
14 LIB_MCS_FLAGS = /unsafe /r:System.dll /r:System.Data.dll $(OTHER_LIB_MCS_FLAGS) \
15         $(RESX_RESOURCES:%=-resource:%) -d:MONO_BACKWARD_COMPAT
16
17 TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) /nowarn:618
18
19 EXTRA_DISTFILES = Test/SqliteTest.cs \
20         Test/test.sql \
21         resources/SR.resx       \
22         resources/ChangeLog     \
23         resources/DataTypes.xml \
24         resources/MetaDataCollections.xml
25
26 run-test-local: test.db 
27
28 test.db: Test/test.sql
29         rm -f $@
30         sqlite3 $@ < $< || :
31
32 include ../../build/library.make
33 ifeq (net_2_0, $(PROFILE))
34 $(the_lib): $(RESOURCES)
35
36 $(RESX_RESOURCES): %.resources: %.resx
37         $(RESGEN) $<
38 endif
39