summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt2
-rw-r--r--src/base/arenaFile.c2
-rw-r--r--src/base/tux.c2
-rw-r--r--src/client/game.c2
4 files changed, 7 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index f67e4b3..d2d93c7 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -29,7 +29,7 @@ IF ( Server )
ADD_DEFINITIONS ( -DPUBLIC_SERVER )
ADD_DEFINITIONS ( -DNO_SOUND )
ENDIF ( Server )
-ADD_DEFINITIONS ( -DPREFIX = ${PREFIX} )
+ADD_DEFINITIONS ( -DPREFIX="${PREFIX}" )
#include zdrojaku
INCLUDE_DIRECTORIES ( ${WORKDIR}/base )
INCLUDE_DIRECTORIES ( ${WORKDIR}/net )
diff --git a/src/base/arenaFile.c b/src/base/arenaFile.c
index 265946f..3493fe6 100644
--- a/src/base/arenaFile.c
+++ b/src/base/arenaFile.c
@@ -18,6 +18,8 @@
#ifndef PUBLIC_SERVER
#include "configFile.h"
#include "image.h"
+#endif
+#ifndef NO_SOUND
#include "music.h"
#endif
diff --git a/src/base/tux.c b/src/base/tux.c
index 84bc87d..e954fec 100644
--- a/src/base/tux.c
+++ b/src/base/tux.c
@@ -23,7 +23,9 @@
#include "term.h"
#include "radar.h"
+#ifndef NO_SOUND
#include "sound.h"
+#endif
#include "screen_world.h"
#endif
diff --git a/src/client/game.c b/src/client/game.c
index e70fdae..a20e3fa 100644
--- a/src/client/game.c
+++ b/src/client/game.c
@@ -25,9 +25,11 @@
#include "panel.h"
#include "radar.h"
+#ifndef NO_SOUND
#include "audio.h"
#include "sound.h"
#include "music.h"
+#endif
#include "screen_world.h"
#include "screen_mainMenu.h"