OSDN Git Service

built-in extension-functions
[xerial/sqlite-jdbc.git] / sqlitejdbc / Makefile.nested
index 22a2626..b7b6d17 100644 (file)
@@ -1,6 +1,6 @@
 include Makefile.common
 
-nestedvm_version := 2007-06-30
+nestedvm_version := 2009-08-09
 nestedvm := nestedvm-$(nestedvm_version)
 
 default: test
@@ -31,7 +31,7 @@ $(nestedvm)/%:
 dl/$(nestedvm).tgz:
        @mkdir -p dl
        cp ../archive/$(nestedvm).tgz $@
-#      curl -odl/$(nestedvm).tgz http://files.zentus.com/sqlitejdbc/$(nestedvm).tgz
+#      curl -odl/$(nestedvm).tgz http://nestedvm.ibex.org/dist/$(nestedvm).tgz
 
 dl/$(sqlite)-amal.zip:
        @mkdir -p dl
@@ -49,7 +49,6 @@ build/SQLite.mips: $(nestedvm)/Makefile $(nestedvm)/env.sh dl/$(sqlite)-amal.zip
        cp ../src/main/java/org/sqlite/Nested*.c build/$(sqlite)-nestedvm
        perl -pi -e "s/sqlite3_api;/sqlite3_api = 0;/g" \
            build/$(sqlite)-nestedvm/sqlite3ext.h
-
        # we need a dummy main
        echo 'int main() { return 0; }' >> build/$(sqlite)-nestedvm/sqlite3.c
        # remove utimes
@@ -69,11 +68,10 @@ build/SQLite.mips: $(nestedvm)/Makefile $(nestedvm)/env.sh dl/$(sqlite)-amal.zip
                -DSQLITE_OMIT_LOAD_EXTENSION \
                sqlite3.c; \
        $$CC -c $$CFLAGS -o NestedDB.o Nested*.c)
-
        ./$(nestedvm)/upstream/install/bin/mips-unknown-elf-gcc \
-               -march=mips1 --static -lc \
+               -march=mips1 --static \
                -o $@ build/$(sqlite)-nestedvm/sqlite3.o \
-                             build/$(sqlite)-nestedvm/NestedDB.o
+                             build/$(sqlite)-nestedvm/NestedDB.o -lm -lc
 
 build/org/sqlite/SQLite.class: build/SQLite.mips
        java -cp $(nestedvm)/build$(sep)$(nestedvm)/upstream/build/classgen/build \