--- Imakefile.orig 1996-11-22 02:28:46.000000000 +0100 +++ Imakefile 2014-03-30 17:51:01.000000000 +0200 @@ -24,23 +24,28 @@ XCOMM This is the directory where the highscore, level & sound data will be XCOMM placed. Default will be the current directory. - XBOING_DIR = . + XBOING_DIR = ${LOCALBASE}/lib/X11/xboing XCOMM These are some defines that must be set. Some may be overwritten in the XCOMM machine arch section. - XPMLIB = -L/usr/X11/lib -lXpm - XPMINCLUDE = -I/usr/X11/include/X11 + XPMLIB = -lXpm + XPMINCLUDE = -I${LOCALBASE}/include/X11 XBOINGINCLUDE = -I./include LEVEL_INSTALL_DIR = $(XBOING_DIR)/levels SOUNDS_DIR = $(XBOING_DIR)/sounds BACKUP_DIR = $(XBOING_DIR)/../backups HIGH_SCORE_FILE = $(XBOING_DIR)/.xboing.scr +#ifdef WITHOUT_AUDIO AUDIO_AVAILABLE = False AUDIO_SRC = audio/NOaudio.c +#else + AUDIO_AVAILABLE = True + AUDIO_SRC = audio/LINUXaudio.c +#endif AUDIO_INCLUDE = AUDIO_LIB = - CDEBUGFLAGS = -g + CDEBUGFLAGS = -O2 -pipe XCOMM Uncomment this if you want to use ANY of the AUDIO sound systems #define COMPILE_IN_AUDIO @@ -132,8 +137,8 @@ -DLEVEL_INSTALL_DIR=\"$(LEVEL_INSTALL_DIR)\" \ -DAUDIO_AVAILABLE=\"$(AUDIO_AVAILABLE)\" \ -DSOUNDS_DIR=\"$(SOUNDS_DIR)\" \ - -DREADMEP_FILE=\"$(XBOING_DIR)/docs/problems.doc\" -XCOMM -DUSE_FLOCK=\"True\" \ + -DREADMEP_FILE=\"$(XBOING_DIR)/problems.doc\" \ + -DUSE_FLOCK=\"True\" XCOMM -DNEED_USLEEP=\"True\" \ XCOMM -DNO_LOCKING=\"True\" @@ -182,30 +187,30 @@ @echo "XBoing directory is " $(XBOING_DIR) @: @echo "Creating directory " $(XBOING_DIR) - @if [ ! -d $(XBOING_DIR) ]; then mkdir $(XBOING_DIR); fi - $(INSTALL) -c $(INSTDATFLAGS) docs/problems.doc $(XBOING_DIR) + @if [ ! -d ${DESTDIR}$(XBOING_DIR) ]; then mkdir ${DESTDIR}$(XBOING_DIR); fi + $(INSTALL) -c $(INSTDATFLAGS) docs/problems.doc ${DESTDIR}$(XBOING_DIR) @: @echo "Creating directory " $(LEVEL_INSTALL_DIR) - @if [ ! -d $(LEVEL_INSTALL_DIR) ]; then mkdir $(LEVEL_INSTALL_DIR); fi + @if [ ! -d ${DESTDIR}$(LEVEL_INSTALL_DIR) ]; then mkdir ${DESTDIR}$(LEVEL_INSTALL_DIR); fi @: @echo "Copying level data into directory " $(LEVEL_INSTALL_DIR) @cd ./levels; set -x; for file in *.data; do \ - $(INSTALL) -c $(INSTDATFLAGS) $$file $(LEVEL_INSTALL_DIR);\ + $(INSTALL) -c $(INSTDATFLAGS) $$file ${DESTDIR}$(LEVEL_INSTALL_DIR);\ done @: @if [ "$(AUDIO_AVAILABLE)" = "True" ]; \ then \ echo "Creating directory " $(SOUNDS_DIR); \ - if [ ! -d $(SOUNDS_DIR) ]; then mkdir $(SOUNDS_DIR); fi;\ + if [ ! -d ${DESTDIR}$(SOUNDS_DIR) ]; then mkdir ${DESTDIR}$(SOUNDS_DIR); fi;\ echo "Copying sound files into directory " $(SOUNDS_DIR);\ cd ./sounds; set -x; for file in *.au; do \ - $(INSTALL) -c $(INSTDATFLAGS) $$file $(SOUNDS_DIR); \ + $(INSTALL) -c $(INSTDATFLAGS) $$file ${DESTDIR}$(SOUNDS_DIR); \ done; \ fi @: - @echo "Creating a highscore file " $(HIGH_SCORE_FILE) - @touch $(HIGH_SCORE_FILE); - @chmod a+rw $(HIGH_SCORE_FILE); + @echo "Creating a highscore file " ${DESTDIR}$(HIGH_SCORE_FILE) + @touch ${DESTDIR}$(HIGH_SCORE_FILE); + @chmod a+rw ${DESTDIR}$(HIGH_SCORE_FILE); XCOMM I use this for my daily backup of my code.