Corrected the libs order in the root makefiles

The calls to ConfigUtility::Load() also received some tweaks, to use '/'
instead of '\' for unix compatability. Also removed -llua from graphics
makefile.
This commit is contained in:
Kayne Ruse
2014-10-19 05:40:48 +11:00
parent 387e86de63
commit e488b15acc
5 changed files with 14 additions and 14 deletions
+6 -2
View File
@@ -1,11 +1,15 @@
#config
#include directories
INCLUDES+=. accounts characters rooms server_utilities ../common/debugging ../common/gameplay ../common/map ../common/network ../common/network/packet_types ../common/utilities
LIBS+=server.a ../libcommon.a -lSDL_net -lSDLmain -lSDL -llua -lsqlite3
#libraries
#the order of the $(LIBS) is important, at least for MinGW
LIBS+=server.a ../libcommon.a -lSDL_net
ifeq ($(OS),Windows_NT)
LIBS+=-lwsock32 -liphlpapi -lmingw32
endif
LIBS+=-lSDLmain -lSDL -llua -lsqlite3
#flags
CXXFLAGS+=-std=c++11 $(addprefix -I,$(INCLUDES))
#source