mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2024-11-24 14:45:40 +00:00
Makefile.Win32: Fixed SDL2 flags when building in MSYS
This commit is contained in:
parent
a0341cd1a4
commit
6bae80bdf9
|
@ -90,8 +90,9 @@ ifneq (,$(findstring cmd.exe,$(shell echo %COMSPEC%)))
|
||||||
SDL2_LIBS = -lmingw32 -lSDL2main -lSDL2 -Wl,--no-undefined -lshell32 -lsetupapi -ladvapi32 -luuid -lversion -limm32 -lwinmm -lgdi32 -luser32 -lm -pipe
|
SDL2_LIBS = -lmingw32 -lSDL2main -lSDL2 -Wl,--no-undefined -lshell32 -lsetupapi -ladvapi32 -luuid -lversion -limm32 -lwinmm -lgdi32 -luser32 -lm -pipe
|
||||||
SDL2_CFLAGS =
|
SDL2_CFLAGS =
|
||||||
else
|
else
|
||||||
SDL2_LIBS = `sdl2-config --static-libs`
|
# Must strip out -mwindows so we don't create a GUI app (will not work in Command Prompt)
|
||||||
SDL2_CFLAGS = `sdl2-config --cflags | sed 's/-Dmain=SDL_main//'`
|
SDL2_LIBS = $(shell sdl2-config --static-libs | sed 's/-mwindows//g')
|
||||||
|
SDL2_CFLAGS = $(shell sdl2-config --cflags)
|
||||||
endif
|
endif
|
||||||
ifeq ($(strip $(NET_BOARD)),1)
|
ifeq ($(strip $(NET_BOARD)),1)
|
||||||
SDL2_LIBS += -lSDL2_net -liphlpapi
|
SDL2_LIBS += -lSDL2_net -liphlpapi
|
||||||
|
|
Loading…
Reference in a new issue