diff --git a/src/Jamrules b/src/Jamrules index eb34cbbf0..d2b89abb5 100644 --- a/src/Jamrules +++ b/src/Jamrules @@ -20,6 +20,16 @@ CCFLAGS += -Wwrite-strings -Wno-char-subscripts ; +rule UsingLuabind +{ + SubDirHdrs $(LUABIND_ROOT)/include ; +} + +rule UsingLua +{ + SubDirHdrs $(LUA_ROOT)/include ; +} + rule TargetDirectory { # Now set up SEARCH_SOURCE, LOCATE_TARGET, SOURCE_GRIST diff --git a/src/common/modules/museum.c b/src/common/modules/museum.c index 5b3c8f4fd..43aa17053 100644 --- a/src/common/modules/museum.c +++ b/src/common/modules/museum.c @@ -21,6 +21,7 @@ #include #include +#ifdef MUSEUM_MODULE #include "museum.h" /* kernel includes */ @@ -414,3 +415,4 @@ register_museum(void) register_function((pf_generic)use_museumexitticket, "usemuseumexitticket"); } +#endif diff --git a/src/eressea/Jamfile b/src/eressea/Jamfile index 8789c95f1..8a19ed622 100644 --- a/src/eressea/Jamfile +++ b/src/eressea/Jamfile @@ -15,6 +15,7 @@ if $(HAVE_LUA) { } if $(HAVE_LUA) { + BINARY = eressea-lua ; SOURCES = alliance.cpp building.cpp @@ -29,13 +30,14 @@ if $(HAVE_LUA) { LINKLIBS on eressea += -llua50 -llualib50 ; LINKLIBS on eressea += -lluabind ; } else { + BINARY = eressea ; SOURCES = main.c ; } SOURCES += korrektur.c ; -Main eressea : $(SOURCES) ; -LinkLibraries eressea : +Main $(BINARY) : $(SOURCES) ; +LinkLibraries $(BINARY) : kernel gamecode items @@ -47,4 +49,4 @@ LinkLibraries eressea : util ; -LINKLIBS on eressea += -lm ; +LINKLIBS on $(BINARY) += -lm ; diff --git a/src/eressea/main.c b/src/eressea/main.c index d0d1050cc..81e383482 100644 --- a/src/eressea/main.c +++ b/src/eressea/main.c @@ -126,7 +126,7 @@ static int nowrite = 0; static boolean g_writemap = false; static boolean g_killeiswald = false; static boolean opt_reportonly = false; -boolean opt_cr_absolute_coords = false; +extern boolean opt_cr_absolute_coords; struct settings global = { "Eressea", /* gamename */ diff --git a/src/lua.hpp b/src/lua.hpp index 5ea348161..bc7a961e4 100644 --- a/src/lua.hpp +++ b/src/lua.hpp @@ -1,5 +1,5 @@ extern "C" { -#include "lua.h" -#include "lauxlib.h" -#include "lualib.h" +#include +#include +#include }