]> git.pond.sub.org Git - empserver/blob - GNUmakefile.in
Replace the build process. The new one requires GNU Make, Autoconf
[empserver] / GNUmakefile.in
1
2 #   Empire - A multi-player, client/server Internet based war game.
3 #   Copyright (C) 1986-2005, Dave Pare, Jeff Bailey, Thomas Ruschak,
4 #                            Ken Stevens, Steve McClure
5
6 #   This program is free software; you can redistribute it and/or modify
7 #   it under the terms of the GNU General Public License as published by
8 #   the Free Software Foundation; either version 2 of the License, or
9 #   (at your option) any later version.
10
11 #   This program is distributed in the hope that it will be useful,
12 #   but WITHOUT ANY WARRANTY; without even the implied warranty of
13 #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 #   GNU General Public License for more details.
15
16 #   You should have received a copy of the GNU General Public License
17 #   along with this program; if not, write to the Free Software
18 #   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19
20 #   ---
21
22 #   See the "LEGAL", "LICENSE", "CREDITS" and "README" files for all the
23 #   related information and legal notices. It is expected that any future
24 #   projects/authors will amend these files as needed.
25
26 #   ---
27
28 #   @configure_input@
29 #   GNUmakefile.in: Makefile template for configure
30 #  
31 #   Known contributors to this file:
32 #      Markus Armbruster, 2005
33
34
35 # The real meat is in Make.mk, which see.
36
37 CC := @CC@
38 have_gcc := @GCC@
39 CFLAGS := @CFLAGS@
40 CPPFLAGS := @CPPFLAGS@ @DEFS@
41 LDFLAGS := @LDFLAGS@
42 LIBOBJS := @LIBOBJS@
43 LDLIBS := @LIBS@
44 empthread := @empthread@
45 ifeq ($(empthread),POSIX)
46 CC := @PTHREAD_CC@
47 CFLAGS := $(CFLAGS) @PTHREAD_CFLAGS@ -D_EMPTH_POSIX=1
48 LDFLAGS := $(LDFLAGS) @PTHREAD_CFLAGS@
49 LDLIBS := @PTHREAD_LIBS@ $(LDLIBS)
50 endif
51 ifeq ($(empthread),LWP)
52 # TODO use config.h
53 CPPFLAGS += -DUCONTEXT
54 endif
55 termlibs := @termlibs@
56 CCDEPMODE := @CCDEPMODE@
57 @am__fastdepCC_TRUE@how_to_dep := fast
58 @am__fastdepCC_FALSE@@AMDEP_TRUE@how_to_dep := depcomp
59
60 AWK := @AWK@
61 INSTALL := @INSTALL@
62 INSTALL_DATA := @INSTALL_DATA@
63 INSTALL_PROGRAM := @INSTALL_PROGRAM@
64 # TODO autoconf NROFF
65 NROFF := groff -Tascii -P-c -U
66 RANLIB := @RANLIB@
67
68 prefix := @prefix@
69 exec_prefix := @exec_prefix@
70 bindir := @bindir@
71 datadir := @datadir@
72 localstatedir := @localstatedir@
73 mandir := @mandir@
74 sysconfdir := @sysconfdir@
75
76 srcdir := @srcdir@
77 VPATH := @srcdir@
78
79 cvs_controlled := @cvs_controlled@
80
81 # Recursively expanded so that $@ and $< work.
82 subst.in = sed \
83         -e 's?@configure_input\@?$(notdir $@).  Generated from $(notdir $<) by GNUmakefile.?g' \
84         -e 's?@econfig\@?$(sysconfdir)/empire/econfig?g' \
85         -e 's?@edatadir\@?$(localstatedir)/empire?g' \
86         -e 's?@einfodir\@?$(datadir)/empire/info.nr?g' \
87         -e 's/@EMPIREHOST\@/@EMPIREHOST@/g' \
88         -e 's/@EMPIREPORT\@/@EMPIREPORT@/g'
89
90 include $(srcdir)/Make.mk