small fixes

This commit is contained in:
Enno Rehling 2003-12-14 12:27:09 +00:00
parent 532cbd0a36
commit 05af5cf006
5 changed files with 21 additions and 7 deletions

View File

@ -20,6 +20,16 @@ CCFLAGS += -Wwrite-strings
-Wno-char-subscripts -Wno-char-subscripts
; ;
rule UsingLuabind
{
SubDirHdrs $(LUABIND_ROOT)/include ;
}
rule UsingLua
{
SubDirHdrs $(LUA_ROOT)/include ;
}
rule TargetDirectory rule TargetDirectory
{ {
# Now set up SEARCH_SOURCE, LOCATE_TARGET, SOURCE_GRIST # Now set up SEARCH_SOURCE, LOCATE_TARGET, SOURCE_GRIST

View File

@ -21,6 +21,7 @@
#include <config.h> #include <config.h>
#include <eressea.h> #include <eressea.h>
#ifdef MUSEUM_MODULE
#include "museum.h" #include "museum.h"
/* kernel includes */ /* kernel includes */
@ -414,3 +415,4 @@ register_museum(void)
register_function((pf_generic)use_museumexitticket, "usemuseumexitticket"); register_function((pf_generic)use_museumexitticket, "usemuseumexitticket");
} }
#endif

View File

@ -15,6 +15,7 @@ if $(HAVE_LUA) {
} }
if $(HAVE_LUA) { if $(HAVE_LUA) {
BINARY = eressea-lua ;
SOURCES = SOURCES =
<lua>alliance.cpp <lua>alliance.cpp
<lua>building.cpp <lua>building.cpp
@ -29,13 +30,14 @@ if $(HAVE_LUA) {
LINKLIBS on eressea += -llua50 -llualib50 ; LINKLIBS on eressea += -llua50 -llualib50 ;
LINKLIBS on eressea += -lluabind ; LINKLIBS on eressea += -lluabind ;
} else { } else {
BINARY = eressea ;
SOURCES = main.c ; SOURCES = main.c ;
} }
SOURCES += korrektur.c ; SOURCES += korrektur.c ;
Main eressea : $(SOURCES) ; Main $(BINARY) : $(SOURCES) ;
LinkLibraries eressea : LinkLibraries $(BINARY) :
kernel kernel
gamecode gamecode
items items
@ -47,4 +49,4 @@ LinkLibraries eressea :
util util
; ;
LINKLIBS on eressea += -lm ; LINKLIBS on $(BINARY) += -lm ;

View File

@ -126,7 +126,7 @@ static int nowrite = 0;
static boolean g_writemap = false; static boolean g_writemap = false;
static boolean g_killeiswald = false; static boolean g_killeiswald = false;
static boolean opt_reportonly = false; static boolean opt_reportonly = false;
boolean opt_cr_absolute_coords = false; extern boolean opt_cr_absolute_coords;
struct settings global = { struct settings global = {
"Eressea", /* gamename */ "Eressea", /* gamename */

View File

@ -1,5 +1,5 @@
extern "C" { extern "C" {
#include "lua.h" #include <lua50/lua.h>
#include "lauxlib.h" #include <lua50/lauxlib.h>
#include "lualib.h" #include <lua50/lualib.h>
} }