Merge pull request #619 from fanquake/allow_CFLAGS_override

build: respect CFLAGS in makefile.mingw
This commit is contained in:
Thomas BERNARD 2022-08-06 11:28:58 +02:00 committed by GitHub
commit fa42d8f931
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 6 deletions

View File

@ -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 \