Update makefiles

This commit is contained in:
SpinDizzy 2020-07-03 09:08:03 +00:00
parent f7d75b783d
commit 12081a9ff7
3 changed files with 7 additions and 6 deletions

View file

@ -58,7 +58,7 @@ SDL2_LIBS = `sdl2-config --libs`
#
PLATFORM_CFLAGS = $(SDL2_CFLAGS)
PLATFORM_LDFLAGS = $(SDL2_LIBS) -lGL -lGLU -lz -lm -lstdc++
PLATFORM_LDFLAGS = $(SDL2_LIBS) -lGL -lGLU -lz -lm -lstdc++ -lpthread -lSDL2_net
###############################################################################

View file

@ -46,6 +46,8 @@ BITS = 64
#
SDL2_INCLUDE_DIR = c:/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/SDL2
SDL2_LIB_DIR = c:/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/lib
#SDL2_INCLUDE_DIR = $(MINGW)/include/SDL2
#SDL2_LIB_DIR = $(MINGW)/lib
#
# Toolchain
@ -76,7 +78,7 @@ endif
#
# SDL2
#
SDL2_LIBS = -lmingw32 -lSDL2main -lSDL2 -luser32 -lgdi32 -lwinmm -limm32 -lversion -lsetupapi
SDL2_LIBS = -lmingw32 -lSDL2main -lSDL2 -luser32 -lgdi32 -lwinmm -limm32 -lversion -lsetupapi -lsdl2_net -liphlpapi
SDL2_CFLAGS =
#

View file

@ -153,9 +153,8 @@ SRC_FILES = \
ifeq ($(strip $(NET_BOARD)),1)
SRC_FILES += \
Src/Network/UDPReceive.cpp \
Src/Network/UDPSend.cpp \
Src/Network/WinSockWrap.cpp \
Src/Network/TCPReceive.cpp \
Src/Network/TCPSend.cpp \
Src/Network/NetBoard.cpp
endif
@ -211,7 +210,7 @@ BUILD_CFLAGS =
OPT = -O3
WARN = -Wall
CSTD = -std=iso9899:2011
CXXSTD = -std=c++11
CXXSTD = -std=c++14
COMMON_CFLAGS = -c $(ARCH) $(OPT) $(WARN) $(addprefix -I,$(sort $(INCLUDE_DIRS))) -DGLEW_STATIC