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) { SOURCES = alliance.cpp building.cpp eressea.cpp faction.cpp region.cpp ship.cpp unit.cpp main.cpp ; LINKLIBS on eressea += -llua50 -llualib50 ; LINKLIBS on eressea += -lluabind ; } else { SOURCES = main.c ; } SOURCES += korrektur.c ; Main eressea : $(SOURCES) ; LinkLibraries eressea : kernel gamecode items modules attributes spells races triggers util ; LINKLIBS on eressea += -lm ;