
1: # Makeconfig.in - configuration included in Makefiles after substitution. 2: # 3: # Copyright (c) 1997, 1998, 1999, 2000, 2003, 2004 Joseph Samuel Myers. 4: # All rights reserved. 5: # 6: # Redistribution and use in source and binary forms, with or without 7: # modification, are permitted provided that the following conditions 8: # are met: 9: # 1. Redistributions of source code must retain the above copyright 10: # notice, this list of conditions and the following disclaimer. 11: # 2. Redistributions in binary form must reproduce the above copyright 12: # notice, this list of conditions and the following disclaimer in the 13: # documentation and/or other materials provided with the distribution. 14: # 3. The name of the author may not be used to endorse or promote products 15: # derived from this software without specific prior written permission. 16: # 17: # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 18: # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 19: # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 20: # IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 21: # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 22: # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23: # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 24: # AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 25: # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26: # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27: # SUCH DAMAGE. 28: 29: # If some variables are unexpanded in Makeconfig, this shouldn't be a 30: # problem, it will be because they weren't configured since the relevant 31: # games weren't being built. 32: 33: # Source directory 34: SRCDIR := @srcdir@ 35: # Build directories 36: BUILDDIRS := @build_dirs@ 37: # Installation prefix 38: INSTALL_PREFIX := @install_prefix@ 39: # Games directory 40: GAMESDIR := @gamesdir@ 41: # Daemon directory 42: SBINDIR := @sbindir@ 43: # Other binaries directory 44: USRBINDIR := @usrbindir@ 45: # Manual pages, section 6 46: MAN6DIR := @man6dir@ 47: # Manual pages, section 8 48: MAN8DIR := @man8dir@ 49: # Manual pages, section 5 50: MAN5DIR := @man5dir@ 51: # Constant data (arch-independent) 52: SHAREDIR := @sharedir@ 53: # Miscellaneous documentation 54: DOCDIR := @docdir@ 55: # Variable data 56: VARLIBDIR := @varlibdir@ 57: # Directory for hidden games (dm) 58: LIBEXECDIR := @libexecdir@ 59: # Installation commands, with install -c -o whatever -s etc. 60: INSTALL_BINARY := @install_binary@ 61: INSTALL_SCRIPT := @install_script@ 62: INSTALL_SCORE_GAME := @install_score_game@ 63: INSTALL_DAEMON := @install_daemon@ 64: INSTALL_MANUAL := @srcdir@/install-man 65: INSTALL_DATA := @install_constdata@ 66: INSTALL_VARDATA := @install_vardata@ 67: INSTALL_DM := @install_dm@ 68: INSTALL_SAIL_DIR := @install_sail_dir@ 69: INSTALL_HACK_DIR := @install_hack_dir@ 70: # Is INSTALL_VARDATA actually needed (for games that start with non-empty 71: # scorefile?) 72: # For games which can start with empty scorefile we do: 73: INSTALL_SCORE_FILE := @srcdir@/install-score 74: # Definitions of INSTALL_* that may have -s added 75: # This first one should no longer be needed 76: DEFS_TO_PASS := INSTALL_BINARY="$(INSTALL_BINARY)" \ 77: INSTALL_SCORE_GAME="$(INSTALL_SCORE_GAME)" \ 78: INSTALL_DAEMON="$(INSTALL_DAEMON)" INSTALL_DM="$(INSTALL_DM)" 79: # For the top level install-strip target 80: DEFS_TO_PASS_STRIP := INSTALL_BINARY="$(INSTALL_BINARY) -s" \ 81: INSTALL_SCORE_GAME="$(INSTALL_SCORE_GAME) -s" \ 82: INSTALL_DAEMON="$(INSTALL_DAEMON) -s" INSTALL_DM="$(INSTALL_DM) -s" 83: # srcdir/hide-game or : 84: HIDE_GAME := @hidegame@ 85: 86: # Compilation details 87: CC := @cc@ 88: CXX := @cxx@ 89: OPTIMIZE := @optimize_flags@ 90: WARNING := @warning_flags@ 91: CXX_WARNING := @cxx_warning_flags@ 92: CFLAGS := $(OPTIMIZE) $(WARNING) @other_cflags@ 93: CXXFLAGS := $(OPTIMIZE) $(CXX_WARNING) @other_cflags@ 94: LDFLAGS := @other_ldflags@ 95: FGETLN_DEFS := @fgetln_defs@ 96: GETLOADAVG_DEFS := @getloadavg_defs@ 97: STRLCPY_DEFS := @strlcpy_defs@ 98: GETPROGNAME_DEFS := @getprogname_defs@ 99: NCURSES_LIB := @ncurses_lib@ 100: NCURSES_INCS := @ncurses_includes@ 101: OPENSSL_LIB := @openssl_lib@ 102: OPENSSL_INCS := @openssl_includes@ 103: BASE_INCS := -Iinclude $(NCURSES_INCS) $(OPENSSL_INCS) 104: BASE_LIBS := @base_libs@ 105: YACC := @yacc@ 106: LEX := @lex@ 107: LEX_LIB := @lex_lib@ 108: 109: # More paths 110: PAGER := @pager@ 111: 112: # Individual games 113: ATC_DIR := @atc_dir@ 114: ATC_SCOREFILE := @atc_scorefile@ 115: BATTLESTAR_SCOREFILE := @battlestar_scorefile@ 116: BOGGLE_DIR := @boggle_dir@ 117: DICTIONARY_SRC := @dictionary_src@ 118: CANFIELD_SCOREFILE := @canfield_scorefile@ 119: CRIBBAGE_INSTRFILE := @cribbage_instrfile@ 120: CRIBBAGE_SCOREFILE := @cribbage_scorefile@ 121: FISH_INSTRFILE := @fish_instrfile@ 122: FORTUNE_DIR := @fortune_dir@ 123: FORTUNE_TYPE := @fortune_type@ 124: HACK_DIR := @hack_dir@ 125: MONOP_CARDSFILE := @monop_cardsfile@ 126: PHANTASIA_DIR := @phantasia_dir@ 127: QUIZ_DIR := @quiz_dir@ 128: ROBOTS_SCOREFILE := @robots_scorefile@ 129: ROGUE_SCOREFILE := @rogue_scorefile@ 130: SAIL_SCOREFILE := @sail_scorefile@ 131: SAIL_DIR := @sail_dir@ 132: SNAKE_SCOREFILE := @snake_scorefile@ 133: SNAKE_RAWSCOREFILE := @snake_rawscorefile@ 134: TETRIS_SCOREFILE := @tetris_scorefile@ 135: WTF_ACRONYMFILE := @wtf_acronymfile@ 136: WUMP_INFOFILE := @wump_infofile@