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
;
rule UsingLuabind
{
SubDirHdrs $(LUABIND_ROOT)/include ;
}
rule UsingLua
{
SubDirHdrs $(LUA_ROOT)/include ;
}
rule TargetDirectory
{
# Now set up SEARCH_SOURCE, LOCATE_TARGET, SOURCE_GRIST

View File

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

View File

@ -15,6 +15,7 @@ if $(HAVE_LUA) {
}
if $(HAVE_LUA) {
BINARY = eressea-lua ;
SOURCES =
<lua>alliance.cpp
<lua>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 ;

View File

@ -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 */

View File

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