SubDir TOP eressea ; TargetDirectory ; SubDirHdrs $(SUBDIR)/../common/gamecode ; SubDirHdrs $(SUBDIR)/../common/kernel ; SubDirHdrs $(SUBDIR)/../common/util ; SubDirHdrs $(SUBDIR)/../common ; SubDirHdrs $(SUBDIR)/.. ; if $(HAVE_LUA) { SubDirC++Flags -DHAVE_LUA ; UsingLua ; UsingLuabind ; SEARCH_SOURCE += [ FDirName $(SUBDIR) lua ] ; } if $(HAVE_LUA) { BINARY = eressea-lua ; SOURCES = alliance.cpp building.cpp eressea.cpp faction.cpp region.cpp ship.cpp unit.cpp server.cpp ; LINKLIBS on $(BINARY) += -L$(LUABIND_ROOT)/lib -llua50 -llualib50 ; LINKLIBS on $(BINARY) += -lluabind ; LINKLIBS on $(BINARY) += -ldl -lstdc++ ; } else { BINARY = eressea ; SOURCES = main.c ; } SOURCES += korrektur.c ; Main $(BINARY) : $(SOURCES) ; LinkLibraries $(BINARY) : kernel gamecode items modules attributes spells races triggers util ; LINKLIBS on $(BINARY) += -lm ;