Fix mongoose/examples compilation with mingw

PUBLISHED_FROM=46800f43ba03082cc589d70e6118d754f4cdc9d0
This commit is contained in:
Alexander Alashkin
2016-03-10 13:11:22 +01:00
committed by Marko Mikulicic
parent 4927195ee4
commit df311203dc
21 changed files with 61 additions and 243 deletions
+5 -2
View File
@@ -1,12 +1,15 @@
PROG = api_server
SOURCES = $(PROG).c sqlite3.c db_plugin_sqlite.c ../../mongoose.c
CFLAGS = -W -Wall -pthread $(CFLAGS_EXTRA)
CFLAGS = -W -Wall $(CFLAGS_EXTRA)
ifeq ($(OS), Windows_NT)
CFLAGS += -lws2_32 -D_MG_PROVIDE_STRNLEN
CC = mingw32-gcc
else
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S), Linux)
CFLAGS += -ldl -lm
CFLAGS += -ldl -lm -pthread
endif
endif