Merge branch 'sgen-disable-gc'
[mono.git] / mcs / class / Mono.Data.Sqlite / Makefile
1 thisdir = class/Mono.Data.Sqlite
2 SUBDIRS =
3 include ../../build/rules.make
4
5 RESX_RESOURCES = resources/SR.resources
6 OTHER_RESOURCES = $(wildcard resources/*.bmp)
7
8 RESOURCES = $(RESX_RESOURCES) $(OTHER_RESOURCES)
9
10 LIBRARY = Mono.Data.Sqlite.dll
11 LIB_MCS_FLAGS = /unsafe /r:System.dll /r:System.Data.dll /r:System.Transactions.dll /r:System.Xml.dll \
12         $(RESOURCES:%=-resource:%) -d:SQLITE_STANDARD
13
14 TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) /nowarn:618
15
16 EXTRA_DISTFILES = Test/SqliteTest.cs \
17         Test/test.sql \
18         resources/SR.resx       \
19         resources/ChangeLog     \
20         resources/DataTypes.xml \
21         resources/MetaDataCollections.xml \
22         $(wildcard resources/*.bmp)
23         
24 CLEAN_FILES += $(RESX_RESOURCES)
25
26 test-local: test.db 
27
28 test.db: Test/test.sql
29         rm -f $@
30         sqlite3 $@ < $< || :
31
32 include ../../build/library.make
33
34 $(the_lib): $(RESOURCES)
35
36 $(RESX_RESOURCES): %.resources: %.resx
37         $(RESGEN) $<