From d40daa6f222a78031c11790ca400bc0067039c40 Mon Sep 17 00:00:00 2001 From: fanquake Date: Wed, 27 Jul 2022 15:52:37 +0100 Subject: [PATCH] build: respect CFLAGS in makefile.mingw Similar to the other Makefile. --- miniupnpc/Makefile.mingw | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/miniupnpc/Makefile.mingw b/miniupnpc/Makefile.mingw index 9fd262c..3c01a70 100644 --- a/miniupnpc/Makefile.mingw +++ b/miniupnpc/Makefile.mingw @@ -21,15 +21,18 @@ RM = del else RM = rm -f endif -#CFLAGS = -Wall -g -#CPPFLAGS = -DDEBUG -D_WIN32_WINNT=0X501 -CFLAGS = -Wall -W -Wstrict-prototypes -Os -CPPFLAGS = -DNDEBUG -D_WIN32_WINNT=0X501 + +CFLAGS ?= -Os +CFLAGS += -Wall +CFLAGS += -W -Wstrict-prototypes + +CPPFLAGS += -DNDEBUG -D_WIN32_WINNT=0X501 CPPFLAGS += -Iinclude CPPFLAGS += -I. -LDLIBS = -lws2_32 -liphlpapi -# -lwsock32 + # -liphlpapi is needed for GetBestRoute() and GetIpAddrTable() +LDLIBS = -lws2_32 -liphlpapi + PYTHON=\utils\python25\python OBJS=miniwget.o minixml.o igd_desc_parse.o minisoap.o \ minissdpc.o \