added improvements to makefile and man pages from CyrilB
This commit is contained in:
parent
760f799e07
commit
b6f997d4f3
3 changed files with 142 additions and 3 deletions
31
Makefile
31
Makefile
|
@ -1,9 +1,12 @@
|
|||
## $Id$
|
||||
|
||||
# default installation directories
|
||||
DESTDIR=/usr/local
|
||||
DATADIR=/usr/local
|
||||
SERVDIR=/usr/local
|
||||
|
||||
CC=g++
|
||||
ifndef CXXFLAGS
|
||||
CXXFLAGS=-O2 -Wall
|
||||
endif
|
||||
CXXFLAGS=-g -O2 -Wall -DWESNOTH_PATH=\"$(DESTDIR)/share/games/wesnoth-data\"
|
||||
SDL_CFLAGS=`sdl-config --cflags` `freetype-config --cflags`
|
||||
SDL_LIBS=`sdl-config --libs` `freetype-config --libs` -lSDL_mixer -lSDL_ttf -lSDL_image -lSDL_net
|
||||
LIBS=${SDL_LIBS} -lstdc++
|
||||
|
@ -13,9 +16,14 @@ OBJS=src/actions.o src/ai.o src/ai_attack.o src/ai_move.o src/config.o src/dialo
|
|||
MAKE_TRANS_OBJS=src/tools/make_translation.o src/config.o src/filesystem.o src/game_config.o src/log.o
|
||||
MERGE_TRANS_OBJS=src/tools/merge_translations.o src/config.o src/filesystem.o src/game_config.o src/log.o
|
||||
|
||||
all: wesnoth src/server/wesnothd;
|
||||
|
||||
wesnoth: $(OBJS)
|
||||
${CC} ${CXXFLAGS} ${INCLUDES} ${SDL_CFLAGS} -o $@ ${OBJS} ${LIBS}
|
||||
|
||||
src/server/wesnothd:;
|
||||
$(MAKE) -C $(@D)
|
||||
|
||||
make_translation: $(MAKE_TRANS_OBJS)
|
||||
${CC} ${CXXFLAGS} ${INCLUDES} -o $@ ${MAKE_TRANS_OBJS} ${LIBS}
|
||||
|
||||
|
@ -28,3 +36,20 @@ merge_translations: $(MERGE_TRANS_OBJS)
|
|||
.PHONY: clean
|
||||
clean:
|
||||
-rm -f ${OBJS} ${MAKE_TRANS_OBJS} ${MERGE_TRANS_OBJS} wesnoth make_translation merge_translations
|
||||
$(MAKE) -C src/server clean
|
||||
|
||||
install:
|
||||
# main
|
||||
mkdir -p $(DESTDIR)/games
|
||||
cp -p wesnoth $(DESTDIR)/games
|
||||
mkdir -p $(DESTDIR)/share/man/man6
|
||||
cp -p wesnoth.6 $(DESTDIR)/share/man/man6
|
||||
mkdir -p $(DESTDIR)/share/pixmaps
|
||||
# data
|
||||
mkdir -p $(DATADIR)/share/games/wesnoth-data
|
||||
cp -pr data fonts images music sounds $(DATADIR)/share/games/wesnoth-data
|
||||
# server
|
||||
mkdir -p $(SERVDIR)/games
|
||||
cp -p src/server/wesnothd $(SERVDIR)/games
|
||||
mkdir -p $(SERVDIR)/share/man/man6
|
||||
cp -p wesnothd.6 $(SERVDIR)/share/man/man6
|
||||
|
|
75
wesnoth.6
Normal file
75
wesnoth.6
Normal file
|
@ -0,0 +1,75 @@
|
|||
.\" 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
|
||||
.\"
|
||||
|
||||
.TH WESNOTH 6 "October 16, 2003" "Wesnoth" "Battle for Wesnoth"
|
||||
|
||||
.SH NAME
|
||||
battle for wesnoth \- fantasy turn-based strategy game
|
||||
|
||||
.SH SYNOPSIS
|
||||
.B wesnoth
|
||||
[\fIOPTION\fR]
|
||||
[\fIPATH_TO_DATA\fR]
|
||||
|
||||
.SH DESCRIPTION
|
||||
Battle for
|
||||
.B Wesnoth
|
||||
is a fantasy turn-based strategy game.
|
||||
|
||||
Battle for control of villages, using variety of units which have
|
||||
advantages and disadvantages in different types of terrains and
|
||||
against different types of attacks. Units gain experience and advance
|
||||
levels, and are carried over from one scenario to the next campaign.
|
||||
|
||||
Build a Hero, and lead your army. Different races, with distinctive
|
||||
abilities, weapons and spells.
|
||||
|
||||
.SH OPTIONS
|
||||
|
||||
.TP
|
||||
.BR -h , \ --help
|
||||
should tell you about what the command line options do, but doesn't yet :)
|
||||
|
||||
.TP
|
||||
.BR -f , \ --fullscreen
|
||||
run program in full screen mode.
|
||||
|
||||
.TP
|
||||
.BR -w , \ --windowed
|
||||
run program in windowed mode.
|
||||
|
||||
.TP
|
||||
.BR -t , \ --test
|
||||
run program in a small test scenario.
|
||||
|
||||
.TP
|
||||
.BR -d , \ --debug
|
||||
show some extra debugging information in-game.
|
||||
|
||||
.TP
|
||||
.BR -v , \ --version
|
||||
print version number and exit.
|
||||
|
||||
.SH AUTHOR
|
||||
Written by David White <davidnwhite@optusnet.com.au>.
|
||||
This manual page was originally written by Cyril Bouthors <cyril@bouthors.org>.
|
||||
.br
|
||||
Visit the official homepage: http://www.wesnoth.org/
|
||||
|
||||
.SH COPYRIGHT
|
||||
Copyright \(co 2003 David White <davidnwhite@optusnet.com.au>
|
||||
.br
|
||||
This is Free Software; this software is licensed under the GPL version 2, as published by the Free Software Foundation.
|
||||
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
39
wesnothd.6
Normal file
39
wesnothd.6
Normal file
|
@ -0,0 +1,39 @@
|
|||
.\" 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
|
||||
.\"
|
||||
|
||||
.TH WESNOTHD 6 "October 16, 2003" "Wesnothd" "Battle for Wesnoth multiplayer network daemon"
|
||||
|
||||
.SH NAME
|
||||
battle for wesnoth multiplayer network daemon
|
||||
|
||||
.SH SYNOPSIS
|
||||
.B wesnothd
|
||||
|
||||
.SH DESCRIPTION
|
||||
Battle for
|
||||
.B Wesnoth
|
||||
multiplayer network daemon
|
||||
|
||||
.SH AUTHOR
|
||||
Written by David White <davidnwhite@optusnet.com.au>.
|
||||
This manual page was originally written by Cyril Bouthors <cyril@bouthors.org>.
|
||||
.br
|
||||
Visit the official homepage: http://www.wesnoth.org/
|
||||
|
||||
.SH COPYRIGHT
|
||||
Copyright \(co 2003 David White <davidnwhite@optusnet.com.au>
|
||||
.br
|
||||
This is Free Software; this software is licensed under the GPL version 2, as published by the Free Software Foundation.
|
||||
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
Loading…
Add table
Reference in a new issue