]> git.pond.sub.org Git - empserver/blobdiff - GNUmakefile.in
ship: Unbreak MOB_ACCESS real-time mobility update for ships
[empserver] / GNUmakefile.in
index ce418f1041ea5bee9ebf07dd73dcb0700a1d744c..a198950ce6b1ba06ceba704697451e5527e60bc0 100644 (file)
@@ -1,73 +1,80 @@
-# 
+#
 #   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
+#   Copyright (C) 1986-2021, Dave Pare, Jeff Bailey, Thomas Ruschak,
+#                 Ken Stevens, Steve McClure, Markus Armbruster
+#
+#   Empire 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
+#   the Free Software Foundation, either version 3 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
-# 
+#   along with this program.  If not, see <http://www.gnu.org/licenses/>.
+#
 #   ---
-# 
-#   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.
-# 
+#
+#   See files README, COPYING and CREDITS in the root of the source
+#   tree for related information and legal notices.  It is expected
+#   that 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
-# 
+#      Markus Armbruster, 2005-2020
+#
 
 # The real meat is in Make.mk, which see.
 
+TARNAME := @PACKAGE_TARNAME@
+
 CC := @CC@
-have_gcc := @GCC@
 CFLAGS := @CFLAGS@
 CPPFLAGS := @CPPFLAGS@ @DEFS@
 LDFLAGS := @LDFLAGS@
 LIBOBJS := @LIBOBJS@
-LDLIBS := @LIBS@
+LDLIBS := -lm
 empthread := @empthread@
 ifeq ($(empthread),POSIX)
 CC := @PTHREAD_CC@
-CFLAGS := $(CFLAGS) @PTHREAD_CFLAGS@ -D_EMPTH_POSIX=1
+CFLAGS := $(CFLAGS) @PTHREAD_CFLAGS@
 LDFLAGS := $(LDFLAGS) @PTHREAD_CFLAGS@
 LDLIBS := @PTHREAD_LIBS@ $(LDLIBS)
 endif
-ifeq ($(empthread),LWP)
-# TODO use config.h
-CPPFLAGS += -DUCONTEXT
+ifeq ($(empthread),Windows)
+CFLAGS := $(CFLAGS) -mthreads
 endif
-termlibs := @termlibs@
+LIBS_client := @LIBS_client@ $(LDLIBS)
+LIBS_server := @LIBS_server@ $(LDLIBS)
+LDLIBS := @LIBS@ $(LDLIBS)
 CCDEPMODE := @CCDEPMODE@
 @am__fastdepCC_TRUE@how_to_dep := fast
 @am__fastdepCC_FALSE@@AMDEP_TRUE@how_to_dep := depcomp
+EXEEXT := @EXEEXT@
+ifneq (@OBJEXT@,o)
+$(error This makefile can't cope with your compiler's object file names)
+endif
 
 AWK := @AWK@
 INSTALL := @INSTALL@
 INSTALL_DATA := @INSTALL_DATA@
 INSTALL_PROGRAM := @INSTALL_PROGRAM@
-# TODO autoconf NROFF
-NROFF := groff -Tascii -P-c -U
+NROFF := @NROFF@
 RANLIB := @RANLIB@
+SHELL := @SHELL@
 
 prefix := @prefix@
 exec_prefix := @exec_prefix@
 bindir := @bindir@
+sbindir := @sbindir@
+datarootdir := @datarootdir@
 datadir := @datadir@
 localstatedir := @localstatedir@
 mandir := @mandir@
@@ -76,15 +83,9 @@ sysconfdir := @sysconfdir@
 srcdir := @srcdir@
 VPATH := @srcdir@
 
-cvs_controlled := @cvs_controlled@
+revctrl := @revctrl@
 
-# 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'
+EMPIREHOST := @EMPIREHOST@
+EMPIREPORT := @EMPIREPORT@
 
 include $(srcdir)/Make.mk