From fa98ed50b0e083570bca0d7ea297e0e0dc5a0b61 Mon Sep 17 00:00:00 2001 From: nishi Date: Wed, 17 Jan 2024 09:40:00 +0000 Subject: [PATCH] better target git-svn-id: file:///raid/svn-main/nishi-libw3/trunk@16 d27a3e52-49c5-7645-884c-6793ebffc270 --- Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 -- 2.43.0