home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Fish 2
/
goldfish_vol2_cd1.bin
/
files
/
game
/
think
/
chaos
/
dmakefile
< prev
next >
Wrap
Makefile
|
1994-01-07
|
5KB
|
189 lines
# Chaos: The Chess HAppening Organisation System V5.2
# Copyright (C) 1993 Jochen Wiedmann
#
# 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., 675 Mass Ave, Cambridge, MA 02139, USA.
#
# This is the Makefile (DMake 2.1)
#
VERSION=5_2
REVISION=2
# No special CFLAGS, except full error-checking and debugging
# You might include one of the following:
# -DAMIGA Create Amiga executable
# -DDEBUG Watch NULL pointers in strlen, strcpy, printf, ...
# -DDEBUG_PAIRINGS Trace the pairing groups using printf
ALLCFLAGS=-c -Isrc -3.0
#ALLCFLAGS=-s -d1 -c -Isrc -3.0
#ALLCFLAGS=-s -d1 -c -Isrc -3.0 -DDEBUG
#ALLCFLAGS=-s -d1 -c -Isrc -2.0
CFLAGS=$(ALLCFLAGS) -Hsrc/Chaos.m=Chaos.h -proto \
-ITools:MUI/Developer/C/Include
# No special LFLAGS, except debugging
LFLAGS=-3.0 -lmui -lm -lc -LTools:MUI/Developer/C/DLib
#LFLAGS= -s -d1 -3.0 -lmui -lm -lc -LTools:MUI/Developer/C/DLib
# The binaries we use
CC=dcc
LN=dcc
CATCOMP=FlexCat
CI=Ci
CO=Co
GTEX=GTeX
TEX=TeX
TEXINDEX=TexIndex
RM=Delete quiet
MAKEINFO=MakeInfo
LHA=LhA
CP=Copy
MV=Rename
#
# You should not need to change anything below.
#
# Some variables containing the lists of files to process
# Object-files which are created manually
OBJ=src/main.o src/MainAmi.o src/Memory.o src/Project.o src/ProjectAmi.o \
src/Players.o src/PlayersAmi.o src/Pairings.o src/PairingsAmi.o \
src/Rounds.o src/RoundsAmi.o src/Out.o src/OutAmi.o src/OutDWZ.o \
src/ARexxAmi.o
# Object-files which don't need Chaos.h
AUTOOBJ=src/DWZtabs.o src/Chaos_Cat.o
# Doc-files
DOC=Chaos_deutsch.dvi Chaos_deutsch.guide Chaos_deutsch.doc \
Chaos_english.dvi Chaos_english.guide Chaos_english.doc
# Supported ARexx scripts
AREXX=ChaosWindowOn.rexx ChaosWindowOff.rexx LoadTournament.rexx \
SaveTournament.rexx PrintTable.rexx UpdateRatings.rexx
# Files which RCS should look for
RCSBIN=$(AREXX:*:rexx/%1) Chaos.info doc.info COPYING.info COPYING Install \
s/Chaos_Project.info s/Chaos_Menu \
Install.Deutsch.info Install.English.info \
$(DOC:*:doc/%1.info)
RCSSRC=$(OBJ:*.o:%1.c) src/DWZtabs.c src/Chaos.h src/Chaos.cd \
src/Deutsch.ct src/Chaos_deutsch.texinfo \
src/Chaos_english.texinfo
RCS=$(RCSBIN) $(RCSSRC)
# Distribution-files
DISTBIN=Chaos.info Chaos/Chaos $(RCSBIN:*:Chaos/%1) $(DOC:*:Chaos/doc/%1) \
Chaos/Catalogs/Deutsch/Chaos.catalog Chaos/Readme.mui \
Chaos/Readme.mui.info
DISTSRC=$(RCSSRC:*:Chaos/%1) Chaos/src/NewCatalog.ct \
Chaos/src/Chaos_Cat.c Chaos/src/Chaos_Cat.h Chaos/DMakefile
# Main targets: all clean dist doc ci
all: Chaos doc Catalogs/Deutsch/Chaos.catalog
clean: binclean
$(RM) $(DOC:*:doc/%1) src/#?.aux src/#?.cp src/#?.ky src/#?.log \
src/#?.pg src/#?.toc src/#?.tp src/#?.vr src/#?.cps \
src/Chaos_Cat.?
binclean:
$(RM) src/#?.o src/#?.sym src/#?.dbg src/#?.m
dist: all
cd /
$(RM) chaos$(VERSION).lha
$(LHA) u -x chaos$(VERSION)bin.lha $(DISTBIN)
$(LHA) u -x chaos$(VERSION)src.lha $(DISTSRC)
cd chaos
doc: $(DOC:*:doc/%1)
ci:
$(CP) DMakefile src/DMakefile
$(CI) -l$(REVISION) $(RCS) src/DMakefile
$(RM) src/DMakefile
co:
$(CO) -l$(REVISION) $(RCSEXT)
$(MV) Install_e.in Install.English.info
freeze:
rcs -nV$(FREEZEVERSION): $(RCSEXT)
# doc-Rules
$(DOC:*.guide:doc/%1.guide): $(DOC:*.guide:src/%1.texinfo)
$(MAKEINFO) --amiga-39 --fill-column 76 --output %(left) %(right)
$(DOC:*.doc:doc/%1.doc): $(DOC:*.doc:src/%1.texinfo)
$(MAKEINFO) --amiga-39 --fill-column 76 --no-headers --output %(left) \
%(right)
doc/Chaos_deutsch.dvi: src/Chaos_deutsch.texinfo
cd src
$(GTEX) %(right:src/*:%1)
$(TEXINDEX) %(right:src/*.texinfo:%1.cp)
$(GTEX) %(right:src/*:%1)
cd /
$(CP) %(right:*.texinfo:%1.dvi) %(left)
$(RM) %(right:*.texinfo:%1.dvi) src/#?.(fn|cp|vr|tp|ky|pg|aux|log|toc)(|s)
doc/Chaos_english.dvi: src/Chaos_english.texinfo
cd src
$(TEX) %(right:src/*:%1)
$(TEXINDEX) %(right:src/*.texinfo:%1.cp)
$(TEX) %(right:src/*:%1)
cd /
$(CP) %(right:*.texinfo:%1.dvi) %(left)
$(RM) %(right:*.texinfo:%1.dvi) src/#?.(fn|cp|vr|tp|ky|pg|aux|log|toc)(|s)
# source-Rules
Chaos: $(OBJ) $(AUTOOBJ)
$(LN) $(LFLAGS) -o Chaos %(right:*.o)
$(OBJ): $(OBJ:*.o:%1.c)
$(CC) $(CFLAGS) -o %(left) %(right)
$(AUTOOBJ): $(AUTOOBJ:*.o:%1.c)
$(CC) $(ALLCFLAGS) -o %(left) %(right)
$(OBJ): src/Chaos.m
src/Chaos.m: src/Chaos.h src/Chaos_Cat.c
rm %(left)
src/Chaos_Cat.c: src/Chaos.cd
$(CATCOMP) %(right) %(left)=src/C_c_V20.sd NEWCTFILE src/NewCatalog.ct
src/Chaos_Cat.c: src/Chaos_Cat.h
src/Chaos_Cat.h: src/Chaos.cd
$(CATCOMP) %(right) %(left)=src/C_h.sd
Catalogs/Deutsch/Chaos.catalog: src/Chaos.cd src/Deutsch.ct
$(CATCOMP) %(right) CATALOG=%(left)