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
-4
View File
@@ -49,11 +49,7 @@ void ClientApplication::Init(int argc, char* argv[]) {
//load the prerequisites
ConfigUtility& config = ConfigUtility::GetSingleton();
#ifdef __unix__
config.Load("rsc/config.cfg", argc, argv);
#else
config.Load("rsc\\config.cfg", argc, argv);
#endif
//-------------------------
//Initialize the APIs
+7 -3
View File
@@ -1,11 +1,15 @@
#config
#include directories
INCLUDES+=. client_utilities renderable scenes ../common/debugging ../common/gameplay ../common/graphics ../common/map ../common/network ../common/network/packet_types ../common/ui ../common/utilities
LIBS+=client.a ../libcommon.a -lSDL_net -lSDLmain -lSDL -llua
ifeq ($(OS),Windows_NT )
#libraries
#the order of the $(LIBS) is important, at least for MinGW
LIBS+=client.a ../libcommon.a -lSDL_net
ifeq ($(OS),Windows_NT)
LIBS+=-lwsock32 -liphlpapi -lmingw32
endif
LIBS+=-lSDLmain -lSDL
#flags
CXXFLAGS+=-std=c++11 $(addprefix -I,$(INCLUDES))
#source