2003-07-03 10:48:48 -06:00
|
|
|
## _________ __ __
|
|
|
|
## / _____// |_____________ _/ |______ ____ __ __ ______
|
|
|
|
## \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
|
|
|
|
## / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
|
|
|
|
## /_______ /|__| |__| (____ /__| (____ /\___ /|____//____ >
|
|
|
|
## \/ \/ \//_____/ \/
|
2003-05-14 09:35:26 -06:00
|
|
|
## ______________________ ______________________
|
|
|
|
## T H E W A R B E G I N S
|
2003-07-03 09:35:45 -06:00
|
|
|
## Stratagus - A free fantasy real time strategy game engine
|
2003-05-14 09:35:26 -06:00
|
|
|
##
|
|
|
|
|
|
|
|
# Compile commands
|
|
|
|
CC=gcc
|
2004-04-30 11:29:53 -06:00
|
|
|
CCLD=$(CC)
|
2003-05-14 09:35:26 -06:00
|
|
|
RM=rm -f
|
|
|
|
MAKE=make
|
|
|
|
|
|
|
|
# Prefix for 'make install'
|
|
|
|
PREFIX=@PREFIX@
|
|
|
|
|
2004-01-01 14:24:22 -07:00
|
|
|
# Use LUA support
|
|
|
|
CCL = -DUSE_LUA
|
2003-05-14 09:35:26 -06:00
|
|
|
CCLLIB = -lm
|
|
|
|
|
|
|
|
# Video support
|
|
|
|
VIDEO_CFLAGS = @VIDEO_CFLAGS@
|
|
|
|
|
|
|
|
# Compression support
|
2004-01-09 23:18:44 -07:00
|
|
|
COMP_CFLAGS = -DUSE_ZLIB @BZ2_CFLAGS@
|
|
|
|
COMP_LIBS = -lz @BZ2_LIBS@
|
2003-05-14 09:35:26 -06:00
|
|
|
|
2004-04-23 17:14:21 -06:00
|
|
|
TOOLLIBS=$(XLDFLAGS) -lpng -lz -lm @EXTRA_LIBS@ @THREAD_LIBS@ -L/usr/local/lib \
|
|
|
|
@STATIC_LDFLAGS@
|
2003-05-14 09:35:26 -06:00
|
|
|
|
2003-07-03 09:34:53 -06:00
|
|
|
STRATAGUS_LIBS= -lpng -lz -lm \
|
2004-04-13 16:40:20 -06:00
|
|
|
@EXTRA_LIBS@ @VIDEO_LIBS@ @THREAD_LIBS@ $(CCLLIB) $(COMP_LIBS) \
|
2004-04-26 17:40:36 -06:00
|
|
|
@FLAC_LIBS@ @OGG_LIBS@ @MAD_LIBS@ @MIKMOD_LIBS@ @CDAUDIO_LIBS@ \
|
2004-01-09 03:47:29 -07:00
|
|
|
@LUA_LIBS@ @STATIC_LDFLAGS@ -lz -lm -L/usr/local/lib
|
2003-05-14 09:35:26 -06:00
|
|
|
|
|
|
|
DISTLIST=$(TOPDIR)/distlist
|
|
|
|
TAGS=$(TOPDIR)/src/tags
|
|
|
|
|
|
|
|
# Linux
|
2003-05-14 09:46:53 -06:00
|
|
|
EXE=@EXE@
|
|
|
|
OUTFILE=@OUTFILE@
|
|
|
|
ARCH=@ARCH@
|
|
|
|
OE=@OE@
|
|
|
|
OBJDIR=@OBJDIR@
|
2003-05-14 09:35:26 -06:00
|
|
|
|
|
|
|
IFLAGS= -I$(TOPDIR)/src/include $(XIFLAGS) -I$(TOPDIR)/src/movie/vp31/include
|
|
|
|
|
2004-04-13 16:40:20 -06:00
|
|
|
CFLAGS=@EXTRA_CFLAGS@ @PROFILE_CFLAGS@ @DEBUG_CFLAGS@ $(IFLAGS) \
|
2004-04-25 21:12:00 -06:00
|
|
|
-DUSE_HP_FOR_XP -DMAP_REGIONS \
|
2003-05-14 09:35:26 -06:00
|
|
|
@PROFILE_CFLAGS@ @DEBUG_CFLAGS@ @VIDEO_CFLAGS@ @BZ2_CFLAGS@ \
|
2004-01-09 03:47:29 -07:00
|
|
|
@OGG_CFLAGS@ @MAD_CFLAGS@ @FLAC_CFLAGS@ @CDAUDIO_CFLAGS@ \
|
2004-06-26 12:35:26 -06:00
|
|
|
@MIKMOD_CFLAGS@ @LUA_CFLAGS@ $(CCL) \
|
2004-04-26 17:40:36 -06:00
|
|
|
$(COMP_CFLAGS) @PLATFORM@ \
|
2004-04-25 19:10:28 -06:00
|
|
|
-I/usr/local/include
|
2003-05-14 09:35:26 -06:00
|
|
|
|
|
|
|
CTAGSFLAGS=-i defptvS -a -f
|
|
|
|
|
|
|
|
# Locks versions with a symbolic name
|
|
|
|
LOCKVER= rcs -q -n$(NAME)
|
|
|
|
|
|
|
|
# Source code documentation
|
|
|
|
DOXYGEN= doxygen
|
|
|
|
DOCIFY= docify
|
|
|
|
DOCPP= doc++
|
|
|
|
|
|
|
|
%.doc: %.c
|
|
|
|
@$(TOPDIR)/tools/aledoc $< | $(DOCIFY) > $*-c.doc 2>/dev/null
|
|
|
|
%.doc: %.h
|
|
|
|
@$(TOPDIR)/tools/aledoc $< | $(DOCIFY) > $*-h.doc 2>/dev/null
|