server/src/eressea/Jamfile

54 lines
942 B
Text
Raw Normal View History

2003-04-27 19:03:12 +02:00
SubDir TOP eressea ;
TargetDirectory ;
SubDirHdrs $(SUBDIR)/../common/gamecode ;
SubDirHdrs $(SUBDIR)/../common/kernel ;
SubDirHdrs $(SUBDIR)/../common/util ;
SubDirHdrs $(SUBDIR)/../common ;
SubDirHdrs $(SUBDIR)/.. ;
2003-12-14 11:10:30 +01:00
if $(HAVE_LUA) {
SubDirC++Flags -DHAVE_LUA ;
UsingLua ;
UsingLuabind ;
SEARCH_SOURCE += [ FDirName $(SUBDIR) lua ] ;
}
if $(HAVE_LUA) {
2003-12-14 13:27:09 +01:00
BINARY = eressea-lua ;
2003-12-14 11:10:30 +01:00
SOURCES =
<lua>alliance.cpp
<lua>building.cpp
<lua>eressea.cpp
<lua>faction.cpp
<lua>region.cpp
<lua>ship.cpp
<lua>unit.cpp
server.cpp
2003-12-14 11:10:30 +01:00
;
LINKLIBS on $(BINARY) += -L$(LUABIND_ROOT)/lib -llua50 -llualib50 ;
LINKLIBS on $(BINARY) += -lluabind ;
LINKLIBS on $(BINARY) += -ldl -lstdc++ ;
2003-12-14 11:10:30 +01:00
} else {
2003-12-14 13:27:09 +01:00
BINARY = eressea ;
2003-12-14 11:10:30 +01:00
SOURCES = main.c ;
}
SOURCES += korrektur.c ;
2003-04-27 19:03:12 +02:00
2003-12-14 13:27:09 +01:00
Main $(BINARY) : $(SOURCES) ;
LinkLibraries $(BINARY) :
kernel
gamecode
items
modules
attributes
spells
races
triggers
util
;
2003-12-14 13:27:09 +01:00
LINKLIBS on $(BINARY) += -lm ;