include Makefile.common
-nestedvm_version := 2007-06-30
+nestedvm_version := 2009-08-09
nestedvm := nestedvm-$(nestedvm_version)
default: test
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
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
-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 \