Skip to content
Matt-Young edited this page Jan 30, 2012 · 4 revisions
CFLAGS=-I /cygwin/usr/local/include
SRC=binds.c engine.c filters.c gfun.c \
tables.c graphs.c names.c console.c \
parser.c sqlwraps.c square.c \
../../sqlite/src/sqlite3.c

all: $(SRC)
        gcc $(SRC)
clean:
        echo "hello"
        echo $(SRC)

This works for me. This is for cygwin environment, but simple enough I do it on windows also. There is a change in sqlite3 source about cygwin, looks like this.

#if defined(__CYGWIN__)
   SimulateIOError( return SQLITE_ERROR );
-  UNUSED_PARAMETER(nFull);
-  cygwin_conv_to_full_win32_path(zRelative, zFull);
+  cygwin_conv_path(CCP_POSIX_TO_WIN_A, zRelative, zFull, nFull);
   return SQLITE_OK;
 #endif