- SOURCE += engines/windowsaio.c
- LIBS += -lpthread -lrt -lpsapi
- CFLAGS += -DPSAPI_VERSION=1
+ SOURCE := $(filter-out engines/mmap.c,$(SOURCE))
+ SOURCE += engines/windowsaio.c os/windows/posix.c
+ LIBS += -lpthread -lpsapi -lws2_32
+ CFLAGS += -DPSAPI_VERSION=1 -Ios/windows/posix/include -Wno-format
+ CC = x86_64-w64-mingw32-gcc
+ #CC = i686-w64-mingw32-gcc