Index: README ================================================================== --- README +++ README @@ -29,14 +29,15 @@ * Linux (it should hopefully work on other POSIX systems, although this is untested; it might use some Linux-specific functions and/or GNU-specific functions; I may be willing to accept contributions if this can be fixed). -* SQLite version 3 (a recent version). Add a symlink to the sqlite3.o file -into the same directory with the source files (or you can compile it from -source with the desired options; the default options will do, although it -is safe to omit the deprecated functions and to set SQLITE_DQS=0). +* SQLite version 3 (a recent version). Add a symlink to the sqlite3.h and +sqlite3.o files into the same directory with the source files (or you can +compile it from source with the desired options; the default options will +do, although it is safe (and is recommended) to omit the deprecated +functions and to set SQLITE_DQS=0). * SDL1.x (the compatibility layers have not been tested with this software; if you have tested it please report it, and you may contribute patches to fix it). @@ -45,14 +46,10 @@ * If you wish to alter some of the files, Node.js or a compatible JavaScript runtime is required for compiling these files (you do not need this if you do not wish to modify Free Hero Mesh). -* The smallxrm is required. It is included with this package; you must -compile smallxrm.c as smallxrm.o (one way is "bash smallxrm.c", or you -can use gcc or clang with the options you want). - * Colour display, with resolution at least 640x480 (preferably more), and at least 256 colours. * Keyboard and mouse, with three mouse buttons (the mouse wheel is not needed and is not used, but it is OK if you have it). Index: compile ================================================================== --- compile +++ compile @@ -10,10 +10,16 @@ test "xx$CFLAGS" = "x`cat CFLAGS`" || rm bindings.o class.o picture.o function.o exec.o game.o edit.o picedit.o hash.o || true echo "x$CFLAGS" > CFLAGS test "x$EXE" = "x" && export EXE=~/bin/heromesh echo 'Flags: ' "$CFLAGS" echo 'Target filename: ' "$EXE" +if test \! \( -f sqlite3.o -a -f sqlite3.h \); then + echo '**ERROR**' + echo 'SQLite files are not found.' + echo 'Please read the installation/compilation instructions in the README file.' +fi +test -f sqlite3.o -a -f sqlite3.h which node > /dev/null || echo 'Node.js not found; ignoring changes to instructions/quarks' which node > /dev/null || touch -cm instruc.h names.h quarks.h test instruc -nt instruc.h && node instruc.js > instruc.h test instruc.js -nt instruc.h && node instruc.js > instruc.h test names.js -nt names.h && node names.js > names.h