From: nishi Date: Wed, 17 Jan 2024 09:40:00 +0000 (+0000) Subject: better target X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=fa98ed50b0e083570bca0d7ea297e0e0dc5a0b61;p=libw3.git better target git-svn-id: file:///raid/svn-main/nishi-libw3/trunk@16 d27a3e52-49c5-7645-884c-6793ebffc270 --- diff --git a/Makefile b/Makefile index 93c5786..4202a7d 100644 --- a/Makefile +++ b/Makefile @@ -12,6 +12,16 @@ CFLAGS += -DSSL_SUPPORT LIBS += -lssl -lcrypto endif +ifdef WIN32 +CC := i686-w64-mingw32-gcc +WINDOWS := YES +endif + +ifdef WIN64 +CC := x86_64-w64-mingw32-gcc +WINDOWS := YES +endif + ifdef WINDOWS LIBS += -lws2_32 endif