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.
This commit is contained in:
Markus Armbruster 2005-12-20 20:25:35 +00:00
parent cdfb94dc1f
commit a98626df2d
67 changed files with 5052 additions and 2642 deletions

View file

@ -1 +0,0 @@
Makedepend

View file

@ -1,98 +0,0 @@
#
# 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.
#
# Makefile - Wolfpack, 1996
# Note that these could have been listed 1 per line, but I chose to just
# stick them all together this way to shorten the file.
include ../../../build.conf
include ../../make.src
include ../../make.defs
LIB = $(SRCDIR)/lib/libcommands.a
NTLIB = $(SRCDIR)\lib\libcommands.lib
OBJS = acce.o add.o anti.o arm.o army.o assa.o atta.o bdes.o best.o boar.o \
bomb.o brea.o budg.o buil.o buy.o capi.o carg.o cede.o cens.o chan.o \
coas.o coll.o comm.o cons.o conv.o coun.o cuto.o decl.o deli.o demo.o \
desi.o disa.o dist.o drop.o dump.o echo.o edit.o enab.o enli.o \
expl.o fina.o flash.o flee.o fly.o foll.o forc.o fort.o fuel.o give.o \
grin.o hard.o head.o improve.o info.o land.o laun.o lboard.o ldump.o \
ledg.o leve.o load.o look.o lost.o lstat.o lten.o map.o marc.o mark.o \
mfir.o mine.o miss.o mobq.o mobu.o mora.o move.o name.o nati.o navi.o \
ndump.o new.o newe.o news.o nuke.o offe.o offs.o orde.o orig.o para.o \
path.o payo.o pboa.o peek.o pdump.o plan.o play.o \
powe.o prod.o pstat.o rada.o rang.o rea.o real.o reco.o reje.o rela.o \
repa.o repo.o rese.o reso.o retr.o rout.o sabo.o sail.o sate.o scra.o \
scut.o sdump.o sect.o sell.o set.o setres.o setsect.o shar.o shark.o \
shi.o shoo.o show.o shut.o sinf.o skyw.o sona.o spy.o sstat.o star.o \
stop.o stre.o strv.o supp.o surv.o swap.o tele.o tend.o terr.o thre.o \
togg.o torp.o trad.o tran.o trea.o turn.o upda.o upgr.o vers.o wai.o \
wing.o wipe.o work.o xdump.o zdon.o
NTOBJS = acce.obj add.obj anti.obj arm.obj army.obj assa.obj atta.obj \
bdes.obj best.obj boar.obj bomb.obj brea.obj budg.obj buil.obj \
buy.obj capi.obj carg.obj cede.obj cens.obj chan.obj coas.obj \
coll.obj comm.obj cons.obj conv.obj coun.obj cuto.obj decl.obj \
deli.obj demo.obj desi.obj disa.obj dist.obj drop.obj \
dump.obj echo.obj edit.obj enab.obj enli.obj expl.obj fina.obj \
flash.obj flee.obj fly.obj foll.obj forc.obj fort.obj fuel.obj \
give.obj grin.obj hard.obj head.obj improve.obj info.obj \
land.obj laun.obj lboard.obj ldump.obj ledg.obj leve.obj load.obj \
look.obj lost.obj lstat.obj lten.obj map.obj marc.obj mark.obj \
mfir.obj mine.obj miss.obj mobq.obj mobu.obj mora.obj move.obj \
name.obj nati.obj navi.obj ndump.obj new.obj newe.obj news.obj \
nuke.obj offe.obj offs.obj orde.obj orig.obj para.obj path.obj \
payo.obj pboa.obj pdump.obj peek.obj plan.obj play.obj powe.obj \
prod.obj pstat.obj rada.obj rang.obj rea.obj real.obj reco.obj \
reje.obj rela.obj repa.obj repo.obj rese.obj reso.obj retr.obj \
rout.obj sabo.obj sail.obj sate.obj scra.obj scut.obj sdump.obj \
sect.obj sell.obj set.obj setres.obj setsect.obj shar.obj shark.obj \
shi.obj shoo.obj show.obj shut.obj sinf.obj skyw.obj sona.obj spy.obj \
sstat.obj star.obj stop.obj stre.obj strv.obj supp.obj surv.obj \
swap.obj tele.obj tend.obj terr.obj thre.obj togg.obj torp.obj \
trad.obj tran.obj trea.obj turn.obj upda.obj upgr.obj vers.obj \
wai.obj wing.obj wipe.obj work.obj xdump.obj zdon.obj
all: $(LIB)
nt: $(NTLIB)
$(NTLIB): $(NTOBJS)
-del /q $@
lib /OUT:$@ /DEBUGTYPE:CV $(NTOBJS)
$(LIB): $(OBJS)
rm -f $(LIB)
ar cq $(LIB) $(OBJS)
$(RANLIB) $(LIB)
clean:
-(rm -f $(OBJS))
-(del /q $(NTOBJS))
include ../../make.rules
include Makedepend

View file

@ -37,7 +37,6 @@
#include <stdio.h>
#include <time.h>
#include "gamesdef.h"
#include "misc.h"
#include "player.h"
#include "version.h"
@ -167,7 +166,8 @@ vers(void)
pr("\n\n");
pr("The person to annoy if something goes wrong is:\n\t%s\n\t(%s).\n",
privname, privlog);
pr("You can get your own copy of the source %s\n", GET_SOURCE);
pr("You can get your own copy of the source from "
"http://www.wolfpackempire.com/\n");
return RET_OK;
}