From d311e967fa4383ebcabb146fa826de87b91bb3a7 Mon Sep 17 00:00:00 2001 From: Sergey Lyubka Date: Thu, 16 Dec 2021 09:22:28 +0000 Subject: [PATCH] Add mingw target --- examples/http-server/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/http-server/Makefile b/examples/http-server/Makefile index b371a54c..27fc706b 100644 --- a/examples/http-server/Makefile +++ b/examples/http-server/Makefile @@ -15,6 +15,9 @@ $(PROG): main.c Makefile mongoose.exe: main.c $(VC98) wine cl ../../mongoose.c main.c $(VCFLAGS) ws2_32.lib /out:$@ +mingw: + gcc ../../mongoose.c main.c -I../.. -W -Wall -DMG_ENABLE_IPV6=1 -DMG_ENABLE_LINES=1 -D_POSIX_C_SOURCE=200000L -lws2_32 -o mongoose.exe + linux: all linux: CFLAGS += -O2 -fsanitize=address,undefined,shift,null,return,bounds,alignment,object-size,bool,enum -static-libasan #linux: CC = $(LIN) cc