Forget the original rules file for the distribution.
This commit is contained in:
parent
48aa5c445a
commit
4b9c9bb396
1 changed files with 251 additions and 0 deletions
251
Rules.make.orig
Normal file
251
Rules.make.orig
Normal file
|
@ -0,0 +1,251 @@
|
|||
## ___________ _________ _____ __
|
||||
## \_ _____/______ ____ ____ \_ ___ \____________ _/ ____\/ |_
|
||||
## | __) \_ __ \_/ __ \_/ __ \/ \ \/\_ __ \__ \\ __\\ __\
|
||||
## | \ | | \/\ ___/\ ___/\ \____| | \// __ \| | | |
|
||||
## \___ / |__| \___ >\___ >\______ /|__| (____ /__| |__|
|
||||
## \/ \/ \/ \/ \/
|
||||
## ______________________ ______________________
|
||||
## T H E W A R B E G I N S
|
||||
## FreeCraft - A free fantasy real time strategy game engine
|
||||
##
|
||||
## Rules.make - Make RULES (GNU MAKE).
|
||||
##
|
||||
## (c) Copyright 1998-2000 by Lutz Sammer
|
||||
##
|
||||
## $Id$
|
||||
##
|
||||
|
||||
############################################################################
|
||||
# Configurable:
|
||||
# Choose what you want to include and the correct
|
||||
# version. Minimal is now the default.
|
||||
############################################################################
|
||||
|
||||
# Uncomment next to get guile with gtk (and choose your gtklib version)
|
||||
|
||||
#GUILEGTK = -DGUILE_GTK $(shell gtk-config --cflags)
|
||||
#GUILEGTK = -DGUILE_GTK -I/usr/X11R6/include -I/usr/lib/glib/include
|
||||
#GUILEGTKLIB = -lguilegtk-1.0 $(shell gtk-config --libs)
|
||||
#GUILEGTKLIB = -lguilegtk-1.2 $(shell gtk-config --libs)
|
||||
#GUILEGTKLIB = -L/opt/gnome/lib -lguilegtk-1.1 \
|
||||
$(shell /opt/gnome/bin/gtk-config --libs)
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
# Uncomment next for a version with guile (GNU scheme interpreter)
|
||||
# (and choose your guile version)
|
||||
|
||||
# guile 1.2 old version
|
||||
# If you have unreferenced "gh_vector_ref" define LIBGUILE12
|
||||
#GUILE = -DLIBGUILE12 -DUSE_CCL $(GUILEGTK)
|
||||
#GUILELIB = $(GUILEGTKLIB) -lguile -ldl
|
||||
|
||||
# guile 1.3 latest version
|
||||
# -lreadline -lncurses are needed with the distribution SuSe 5.3
|
||||
#GUILE_CFLAGS = $(shell guile-config compile)
|
||||
#GUILE = -DUSE_CCL $(GUILEGTK) $(GUILE_CFLAGS)
|
||||
#GUILELIB = $(GUILEGTKLIB) -lguile -lqthreads -ldl -lm
|
||||
#GUILELIB = $(GUILEGTKLIB) $(shell guile-config link) -lreadline -lncurses
|
||||
#GUILELIB = $(GUILEGTKLIB) $(shell guile-config link)
|
||||
|
||||
# guile
|
||||
#CCL = $(GUILE)
|
||||
#CCLLIB = $(GUILELIB)
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Comment next for a version without SIOD (scheme interpreter)
|
||||
#
|
||||
|
||||
# Try to use siod (currently default)
|
||||
CCL = -DUSE_CCL2
|
||||
CCLLIB = -lm
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
# Uncomment next to add threaded sound support
|
||||
# You should have a thread safe X11 (libc6 or glibc)
|
||||
|
||||
#THREAD = -D_REENTRANT -DUSE_THREAD
|
||||
#THREADLIB = -lpthread
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
# Choose correct version of glib (needed for gtk)
|
||||
|
||||
# Where do you have installed your glib?
|
||||
#GLIB = -DUSE_GLIB -I/usr/lib/glib/include/
|
||||
#GLIBLIB = -lglib
|
||||
|
||||
# Should work with >= 1.2
|
||||
#GLIB_CFLAGS = $(shell glib-config glib --cflags)
|
||||
#GLIBLIB = $(shell glib-config glib --libs)
|
||||
#GLIB = -DUSE_GLIB $(GLIB_CFLAGS)
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Video driver part
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
# Uncomment the next for the normal X11 support.
|
||||
|
||||
#VIDEO = -DUSE_X11
|
||||
#VIDEOLIB = -lXext -lX11 -ldl
|
||||
|
||||
# Uncomment the next to get the support for SDL.
|
||||
|
||||
# Old SDL <1.0.0
|
||||
#SDL_CFLAGS =
|
||||
#SDLLIB = -lSDL -ldl -lpthread
|
||||
|
||||
# New SDL >=1.0.0
|
||||
SDL_CFLAGS = $(shell sdl-config --cflags)
|
||||
#SDLLIB = $(shell sdl-config --static-libs)
|
||||
SDLLIB = $(shell sdl-config --libs)
|
||||
|
||||
# Without SDL Sound
|
||||
#SDL = -DUSE_SDL $(SDL_CFLAGS)
|
||||
# With SDL Sound
|
||||
SDL = -DUSE_SDL -DUSE_SDLA $(SDL_CFLAGS)
|
||||
|
||||
# Uncomment the next for the SDL X11/SVGALIB support.
|
||||
|
||||
#VIDEO = $(SDL)
|
||||
#VIDEOLIB = $(SDLLIB) -lXext -lX11 -lXxf86dga -lXxf86vm -lvga -lvgagl -ldl -lesd -lm
|
||||
|
||||
# Choose next to get svgalib support.
|
||||
|
||||
#VIDEO = -DUSE_SVGALIB
|
||||
#VIDEOLIB = -lvga -lm -ldl
|
||||
|
||||
# Uncomment the next for the win32/cygwin support.
|
||||
|
||||
#VIDEO = -DUSE_WIN32 $(SDL)
|
||||
#VIDEOLIB = $(SDLLIB)
|
||||
|
||||
# Uncomment the next for the win32/mingw32 support.
|
||||
|
||||
#VIDEO = -DUSE_WIN32 $(SDL)
|
||||
#VIDEOLIB = $(SDLLIB) -lwsock32 -Wl,--stack,33554432
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Sound driver part
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
# Comment next if you want to remove sound support.
|
||||
|
||||
DSOUND = -DWITH_SOUND
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
# Choose which compress you like
|
||||
# The win32 port didn't support BZ2LIB
|
||||
|
||||
# None
|
||||
#ZDEFS =
|
||||
#ZLIBS =
|
||||
# GZ compression
|
||||
ZDEFS = -DUSE_ZLIB
|
||||
ZLIBS = -lz
|
||||
# BZ2 compression
|
||||
#ZDEFS = -DUSE_BZ2LIB
|
||||
#ZLIBS = -lbz2
|
||||
# GZ + BZ2 compression
|
||||
#ZDEFS = -DUSE_ZLIB -DUSE_BZ2LIB
|
||||
#ZLIBS = -lz -lbz2
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
# May be required on some distributions for libpng and libz!
|
||||
# extra linker flags and include directory
|
||||
# -L/usr/lib
|
||||
|
||||
XLDFLAGS = -L/usr/X11R6/lib -L/usr/local/lib \
|
||||
-L$(TOPDIR)/libpng-1.0.5 -L$(TOPDIR)/zlib-1.1.3
|
||||
XIFLAGS = -I/usr/X11R6/include -I/usr/local/include \
|
||||
-I$(TOPDIR)/libpng-1.0.5 -I$(TOPDIR)/zlib-1.1.3
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
# Uncomment next to profile
|
||||
#PROFILE= -pg
|
||||
|
||||
# Version
|
||||
VERSION= '-DVERSION="1.16.1pre2"'
|
||||
|
||||
############################################################################
|
||||
# below this, nothing should be changed!
|
||||
|
||||
# Libraries needed to build tools
|
||||
TOOLLIBS=$(XLDFLAGS) -lpng -lz -lm $(THREADLIB)
|
||||
|
||||
# Libraries needed to build clone
|
||||
CLONELIBS=$(XLDFLAGS) -lpng -lz -lm \
|
||||
$(THREADLIB) $(CCLLIB) $(GLIBLIB) $(VIDEOLIB) $(ZLIBS)
|
||||
|
||||
DISTLIST=$(TOPDIR)/distlist
|
||||
TAGS=$(TOPDIR)/src/tags
|
||||
|
||||
# LINUX
|
||||
OUTFILE=$(TOPDIR)/clone
|
||||
ARCH=linux
|
||||
OE=o
|
||||
EXE=
|
||||
|
||||
# WIN32
|
||||
#OUTFILE=$(TOPDIR)/clone$(EXE)
|
||||
#ARCH=win32
|
||||
#OE=o
|
||||
#EXE=.exe
|
||||
|
||||
## architecture-dependant objects
|
||||
#ARCHOBJS=stdmman.$(OE) svgalib.$(OE) unix_lib.$(OE) bitm_lnx.$(OE)
|
||||
|
||||
## include flags
|
||||
IFLAGS= -I$(TOPDIR)/src/include $(XIFLAGS)
|
||||
## define flags
|
||||
#DEBUG= -DDEBUG # -DFLAG_DEBUG
|
||||
DFLAGS= $(THREAD) $(CCL) $(VERSION) $(GLIB) $(VIDEO) $(ZDEFS) $(DSOUND) \
|
||||
$(DEBUG) -DNEW_VIDEO
|
||||
|
||||
## choose optimise level
|
||||
#CFLAGS=-g -O0 $(PROFILE) -pipe -Wall -Werror $(IFLAGS) $(DFLAGS)
|
||||
#CFLAGS=-g -O1 $(PROFILE) -pipe -Wall -Werror $(IFLAGS) $(DFLAGS)
|
||||
#CFLAGS=-g -O2 $(PROFILE) -pipe -Wall -Werror $(IFLAGS) $(DFLAGS)
|
||||
#CFLAGS=-g -O3 $(PROFILE) -pipe -Wall -Werror $(IFLAGS) $(DFLAGS)
|
||||
#CFLAGS=-g -O3 $(PROFILE) -pipe -Wall $(IFLAGS) $(DFLAGS)
|
||||
#CFLAGS=-g -O6 -pipe -fconserve-space -fexpensive-optimizations -ffast-math $(IFLAGS) $(DFLAGS)
|
||||
#-- Production
|
||||
CFLAGS=-O6 -pipe -fomit-frame-pointer -fconserve-space -fexpensive-optimizations -ffast-math $(IFLAGS) $(DFLAGS)
|
||||
#CFLAGS=-O6 -pipe -fomit-frame-pointer -fconserve-space -fexpensive-optimizations -ffast-math $(IFLAGS) $(DFLAGS) -static
|
||||
|
||||
CC=gcc
|
||||
RM=rm -f
|
||||
MAKE=make
|
||||
|
||||
## JOHNS: my ctags didn't support
|
||||
#CTAGSFLAGS=-i defmpstuvFS -a -f
|
||||
CTAGSFLAGS=-i defptvS -a -f
|
||||
|
||||
#
|
||||
# Locks versions with symbolic name
|
||||
#
|
||||
LOCKVER= rcs -q -n$(NAME)
|
||||
|
||||
%.o: %.c
|
||||
$(CC) -c $(CFLAGS) $< -o $@
|
||||
@ar cru $(TOPDIR)/src/libclone.a $@
|
||||
|
||||
#------------
|
||||
# Source code documentation
|
||||
#
|
||||
DOXYGEN= doxygen
|
||||
DOCIFY= docify
|
||||
DOCPP= doc++
|
||||
# Still didn't work
|
||||
#DOCIFY= /root/doc++-3.4.2/src/docify
|
||||
#DOCPP= /root/doc++-3.4.2/src/doc++
|
||||
|
||||
%.doc: %.c
|
||||
@$(TOPDIR)/tools/aledoc $< | $(DOCIFY) > $*-c.doc 2>/dev/null
|
||||
|
||||
%.doc: %.h
|
||||
@$(TOPDIR)/tools/aledoc $< | $(DOCIFY) > $*-h.doc 2>/dev/null
|
Loading…
Reference in a new issue