[genproj] Getting closer to a full build
[mono.git] / mcs / class / Mono.Data.Sqlite / Makefile
index 3c11931c08e2f693fe949fed8034683eeab6ad27..35eb5c1bb817dd6868bb67a56c04783756f440be 100644 (file)
@@ -2,38 +2,45 @@ thisdir = class/Mono.Data.Sqlite
 SUBDIRS =
 include ../../build/rules.make
 
-ifneq (1, $(FRAMEWORK_VERSION_MAJOR))
-OTHER_LIB_MCS_FLAGS = /r:System.Transactions.dll
-
 RESX_RESOURCES = resources/SR.resources
+OTHER_RESOURCES = $(wildcard resources/*.bmp)
+
+RESOURCES = $(RESX_RESOURCES) $(OTHER_RESOURCES)
 
-RESOURCES = $(RESX_RESOURCES)
-endif
+PREBUILT = $(RESX_RESOURCES:=.prebuilt)
 
 LIBRARY = Mono.Data.Sqlite.dll
-LIB_MCS_FLAGS = /unsafe /r:System.dll /r:System.Data.dll $(OTHER_LIB_MCS_FLAGS) \
-       $(RESX_RESOURCES:%=-resource:%) -d:MONO_BACKWARD_COMPAT
+LIB_REFS = System System.Data System.Transactions System.Xml
+LIB_MCS_FLAGS = /unsafe \
+       $(RESOURCES:%=-resource:%) -d:SQLITE_STANDARD
 
 TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) /nowarn:618
 
 EXTRA_DISTFILES = Test/SqliteTest.cs \
        Test/test.sql \
        resources/SR.resx       \
-       resources/ChangeLog     \
        resources/DataTypes.xml \
-       resources/MetaDataCollections.xml
+       resources/MetaDataCollections.xml \
+       $(PREBUILT) \
+       $(wildcard resources/*.bmp)
+
+CLEAN_FILES += $(RESX_RESOURCES)
 
-run-test-local: test.db 
+CLEAN_FILES = $(RESX_RESOURCES)
+
+test-local: test.db 
 
 test.db: Test/test.sql
        rm -f $@
        sqlite3 $@ < $< || :
 
 include ../../build/library.make
-ifeq (net_2_0, $(PROFILE))
+
 $(the_lib): $(RESOURCES)
 
+$(PREBUILT): %.prebuilt: %
+       cp $* $@
+
 $(RESX_RESOURCES): %.resources: %.resx
-       $(RESGEN) $<
-endif
+       $(RESGEN) -useSourcePath $< || cp $@.prebuilt $@