forked from github/server
kleiner fix
This commit is contained in:
parent
9fbe85c618
commit
96c5ae33fa
|
@ -7,16 +7,11 @@ SubDirHdrs $(SUBDIR)/../common/util ;
|
|||
SubDirHdrs $(SUBDIR)/../common ;
|
||||
SubDirHdrs $(SUBDIR)/.. ;
|
||||
|
||||
if $(HAVE_LUA) {
|
||||
SubDirC++Flags -DHAVE_LUA ;
|
||||
UsingLua ;
|
||||
UsingLuabind ;
|
||||
SEARCH_SOURCE += [ FDirName $(SUBDIR) lua ] ;
|
||||
}
|
||||
LUASERVER = eressea-lua ;
|
||||
SERVER = eressea ;
|
||||
|
||||
if $(HAVE_LUA) {
|
||||
BINARY = eressea-lua ;
|
||||
SOURCES =
|
||||
SERVER_SOURCES = main.c korrektur.c ;
|
||||
LUASERVER_SOURCES =
|
||||
<lua>alliance.cpp
|
||||
<lua>building.cpp
|
||||
<lua>eressea.cpp
|
||||
|
@ -25,29 +20,25 @@ if $(HAVE_LUA) {
|
|||
<lua>ship.cpp
|
||||
<lua>unit.cpp
|
||||
server.cpp
|
||||
korrektur.c
|
||||
;
|
||||
|
||||
LINKLIBS on $(BINARY) += -L$(LUABIND_ROOT)/lib -llua50 -llualib50 ;
|
||||
LINKLIBS on $(BINARY) += -lluabind ;
|
||||
LINKLIBS on $(BINARY) += -ldl -lstdc++ ;
|
||||
} else {
|
||||
BINARY = eressea ;
|
||||
SOURCES = main.c ;
|
||||
LinkLibraries $(SERVER) :
|
||||
kernel gamecode items modules attributes spells races triggers util ;
|
||||
LinkLibraries $(LUASERVER) :
|
||||
kernel gamecode items modules attributes spells races triggers util ;
|
||||
|
||||
LINKLIBS on $(SERVER) += -lm ;
|
||||
LINKLIBS on $(LUASERVER) += -L$(LUABIND_ROOT)/lib -llua50 -llualib50 ;
|
||||
LINKLIBS on $(LUASERVER) += -lm -lluabind -ldl -lstdc++ ;
|
||||
|
||||
if $(HAVE_LUA) {
|
||||
SEARCH_SOURCE += [ FDirName $(SUBDIR) lua ] ;
|
||||
SubDirC++Flags -DHAVE_LUA ;
|
||||
UsingLua ;
|
||||
UsingLuabind ;
|
||||
|
||||
Main $(LUASERVER) : $(LUASERVER_SOURCES) ;
|
||||
}
|
||||
|
||||
SOURCES += korrektur.c ;
|
||||
|
||||
Main $(BINARY) : $(SOURCES) ;
|
||||
LinkLibraries $(BINARY) :
|
||||
kernel
|
||||
gamecode
|
||||
items
|
||||
modules
|
||||
attributes
|
||||
spells
|
||||
races
|
||||
triggers
|
||||
util
|
||||
;
|
||||
|
||||
LINKLIBS on $(BINARY) += -lm ;
|
||||
Main $(SERVER) : $(SERVER_SOURCES) ;
|
||||
|
|
|
@ -18,8 +18,6 @@ function process(orders)
|
|||
write_passwords()
|
||||
write_reports()
|
||||
|
||||
print(turn .. " " .. get_turn())
|
||||
|
||||
file = "" .. get_turn()
|
||||
if write_game(file)~=0 then
|
||||
print("could not write game")
|
||||
|
@ -38,3 +36,4 @@ if orderfile==nil then
|
|||
else
|
||||
process(orderfile)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue