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
|
2003-12-16 02:05:16 +01:00
|
|
|
server.cpp
|
2003-12-14 11:10:30 +01:00
|
|
|
;
|
|
|
|
|
2004-01-23 01:11:54 +01:00
|
|
|
LINKLIBS on $(BINARY) += -L$(LUABIND_ROOT)/lib -llua50 -llualib50 ;
|
2003-12-14 13:45:24 +01:00
|
|
|
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) :
|
2003-11-15 11:10:22 +01:00
|
|
|
kernel
|
|
|
|
gamecode
|
|
|
|
items
|
|
|
|
modules
|
|
|
|
attributes
|
|
|
|
spells
|
|
|
|
races
|
|
|
|
triggers
|
|
|
|
util
|
|
|
|
;
|
|
|
|
|
2003-12-14 13:27:09 +01:00
|
|
|
LINKLIBS on $(BINARY) += -lm ;
|