jamrules und fixes, damit die kranke uni-installation klappt

This commit is contained in:
Enno Rehling 2005-05-08 17:32:01 +00:00
parent 6eb123d6cc
commit 64a85e8138
3 changed files with 16 additions and 29 deletions

View File

@ -1,15 +1,17 @@
C++ = g++ ;
CC = gcc ;
if $(JAMUNAME[5]) = "GNU/Linux" {
DEBIAN = 1 ;
}
LINKFLAGS += -rdynamic ;
if ! $(HAVE_LUA) {
HAVE_LUA = 1 ;
}
if ! $(DISTCC_HOSTS) {
}
else {
if $(DISTCC_HOSTS) {
DISTCC = 1 ;
}
@ -53,8 +55,11 @@ if ! $(LUABIND) {
}
C++FLAGS += -DHAVE_LUABIND_$(LUABIND) ;
if $(HOST) = "hamunaptra" {
XMLHDRS = /homes2/info-f/enno/software/hamunaptra/include/libxml2 ;
if $(LOCAL_USR) {
XMLHDRS = $(LOCAL_USR)/include/libxml2 ;
C++FLAGS += -I$(LOCAL_USR)/include ;
CFLAGS += -I$(LOCAL_USR)/include ;
LINKLIBS += -L$(LOCAL_USR)/lib ;
} else {
XMLHDRS = /usr/include/libxml2 ;
}
@ -70,10 +75,10 @@ rule iconv
rule luabind
{
LINKLIBS on $(<) += -L$(LUABIND_ROOT)/lib ;
if $(HOST) = "hamunaptra" {
LINKLIBS on $(<) += -llua -llualib ;
} else {
if $(DEBIAN) {
LINKLIBS on $(<) += -llua50 -llualib50 ;
} else {
LINKLIBS on $(<) += -llua -llualib ;
}
LINKLIBS on $(<) += -lm -lluabind ;
}

View File

@ -226,7 +226,9 @@ extern char * strdup(const char *s);
/**** ****
** The Eressea boolean type **
**** ****/
#ifndef HAS_BOOLEAN
#ifdef __cplusplus
typedef bool boolean;
#else
typedef int boolean;
# define false ((boolean)0)
# define true ((boolean)!false)

View File

@ -220,23 +220,6 @@ game_init(void)
#endif
}
static void
getgarbage(void)
{
faction *f;
/* Get rid of stuff that was only relevant last turn */
#if 0
for (r = regions; r; r = r->next) {
freestrlist(r->comments);
r->comments = 0;
freestrlist(r->botschaften);
r->botschaften = 0;
}
#endif
}
#ifdef SHORTPWDS
static void
readshortpwds()
@ -287,9 +270,6 @@ processturn(char *filename)
printf(" - Korrekturen Runde %d\n", turn);
korrektur();
turn++;
puts(" - entferne Texte der letzten Runde");
getgarbage();
puts(" - Nehme Korrekturen am Datenbestand vor");
if ((i=readorders(filename))!=0) return i;
if (!nomonsters) {
if (turn == 0) srand(time((time_t *) NULL));