win32: build with -mwindows

This commit is contained in:
Thomas Bernard 2019-03-10 22:59:06 +01:00
parent 9bbfad7b05
commit d8793cd85a

View File

@ -110,7 +110,8 @@ ifdef COMSPEC
GENERATEDOCBIN = ../bin/generatedoc.exe GENERATEDOCBIN = ../bin/generatedoc.exe
COPT = -W -Wall -Wdeclaration-after-statement -O$(OPTIM) -g -ggdb COPT = -W -Wall -Wdeclaration-after-statement -O$(OPTIM) -g -ggdb
COPT += $(LUACOPT) COPT += $(LUACOPT)
LOPT = $(LUALOPT) LOPT = -mwindows
LOPT += $(LUALOPT)
ifeq ($(API),sdl) ifeq ($(API),sdl)
SDLCONFIG ?= $(shell which ../3rdparty/usr/bin/sdl-config || which sdl-config) SDLCONFIG ?= $(shell which ../3rdparty/usr/bin/sdl-config || which sdl-config)
COPT += $(shell $(SDLCONFIG) --cflags) $(TTFCOPT) $(JOYCOPT) COPT += $(shell $(SDLCONFIG) --cflags) $(TTFCOPT) $(JOYCOPT)