empserver/GNUmakefile.in
Markus Armbruster a98626df2d Replace the build process. The new one requires GNU Make, Autoconf
and Autoconf macros that come with Automake.  It supports multiple
separate builds of the same source tree, and updates dependencies
automatically.  Targets info, html, install, install-html, uninstall
and dist are not yet implemented.

System configuration is now automatic.  Previously, you had to choose
one of several canned system configurations, defined in Make.sysdefs.
Currently, system configuration always uses UCONTEXT for LWP, and
chooses LWP only if its requirements are met.

Feature configuration changed: instead of editing build.conf (further
processed by doconfig), you pass arguments to configure.  Note that
build.conf settings that can be overridden in econfig have no
configure equivalent; just edit econfig instead.

Because generated headers complicate makefiles, fold gamesdef.h into
its users: path.c and ipglob.c become path.c.in and ipglob.c.in,
constants.c, vers.c, options.h simply hardcode defaults (most of them
are run-time configurable).

Call the client empire instead of emp_client.  This matches what the
old standalone build did.
2005-12-20 20:25:35 +00:00

90 lines
2.7 KiB
Text

#
# Empire - A multi-player, client/server Internet based war game.
# Copyright (C) 1986-2005, Dave Pare, Jeff Bailey, Thomas Ruschak,
# Ken Stevens, Steve McClure
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# ---
#
# See the "LEGAL", "LICENSE", "CREDITS" and "README" files for all the
# related information and legal notices. It is expected that any future
# projects/authors will amend these files as needed.
#
# ---
#
# @configure_input@
# GNUmakefile.in: Makefile template for configure
#
# Known contributors to this file:
# Markus Armbruster, 2005
#
# The real meat is in Make.mk, which see.
CC := @CC@
have_gcc := @GCC@
CFLAGS := @CFLAGS@
CPPFLAGS := @CPPFLAGS@ @DEFS@
LDFLAGS := @LDFLAGS@
LIBOBJS := @LIBOBJS@
LDLIBS := @LIBS@
empthread := @empthread@
ifeq ($(empthread),POSIX)
CC := @PTHREAD_CC@
CFLAGS := $(CFLAGS) @PTHREAD_CFLAGS@ -D_EMPTH_POSIX=1
LDFLAGS := $(LDFLAGS) @PTHREAD_CFLAGS@
LDLIBS := @PTHREAD_LIBS@ $(LDLIBS)
endif
ifeq ($(empthread),LWP)
# TODO use config.h
CPPFLAGS += -DUCONTEXT
endif
termlibs := @termlibs@
CCDEPMODE := @CCDEPMODE@
@am__fastdepCC_TRUE@how_to_dep := fast
@am__fastdepCC_FALSE@@AMDEP_TRUE@how_to_dep := depcomp
AWK := @AWK@
INSTALL := @INSTALL@
INSTALL_DATA := @INSTALL_DATA@
INSTALL_PROGRAM := @INSTALL_PROGRAM@
# TODO autoconf NROFF
NROFF := groff -Tascii -P-c -U
RANLIB := @RANLIB@
prefix := @prefix@
exec_prefix := @exec_prefix@
bindir := @bindir@
datadir := @datadir@
localstatedir := @localstatedir@
mandir := @mandir@
sysconfdir := @sysconfdir@
srcdir := @srcdir@
VPATH := @srcdir@
cvs_controlled := @cvs_controlled@
# Recursively expanded so that $@ and $< work.
subst.in = sed \
-e 's?@configure_input\@?$(notdir $@). Generated from $(notdir $<) by GNUmakefile.?g' \
-e 's?@econfig\@?$(sysconfdir)/empire/econfig?g' \
-e 's?@edatadir\@?$(localstatedir)/empire?g' \
-e 's?@einfodir\@?$(datadir)/empire/info.nr?g' \
-e 's/@EMPIREHOST\@/@EMPIREHOST@/g' \
-e 's/@EMPIREPORT\@/@EMPIREPORT@/g'
include $(srcdir)/Make.mk