Mercurial > hg > early-roguelike
changeset 51:a1dc75e38e73
rogue4: ported to autoconf.
| author | elwin | 
|---|---|
| date | Tue, 11 Oct 2011 15:20:40 +0000 | 
| parents | c9382913d6df | 
| children | ae4f413fe76c | 
| files | rogue4/Makefile rogue4/Makefile.in rogue4/acinclude.m4 rogue4/configure.ac rogue4/install-sh rogue4/rogue.6 rogue4/rogue.6.in rogue4/rogue.h rogue4/rogue.me rogue4/rogue.me.in | 
| diffstat | 10 files changed, 1956 insertions(+), 1003 deletions(-) [+] | 
line wrap: on
 line diff
--- a/rogue4/Makefile Mon Oct 10 20:57:51 2011 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,149 +0,0 @@ -# -# Makefile for rogue -# @(#)Makefile 4.13 (Berkeley) 1/23/82 -# -# Rogue: Exploring the Dungeons of Doom -# Copyright (C) 1980, 1981, 1982 Michael Toy, Ken Arnold and Glenn Wichman -# All rights reserved. -# -# See the file LICENSE.TXT for full copyright and licensing information. -# - -DISTNAME=rogue5.2.2 - -HDRS= rogue.h extern.h -DOBJS= vers.o extern.o armor.o chase.o command.o daemon.o daemons.o \ - fight.o init.o io.o list.o main.o misc.o monsters.o move.o \ - new_level.o options.o pack.o passages.o potions.o rings.o rip.o \ - rooms.o save.o scrolls.o state.o sticks.o things.o weapons.o wizard.o\ - xcrypt.o mdport.o -OBJS= $(DOBJS) mach_dep.o -CFILES= vers.c extern.c armor.c chase.c command.c daemon.c daemons.c \ - fight.c init.c io.c list.c main.c misc.c monsters.c move.c \ - new_level.c options.c pack.c passages.c potions.c rings.c rip.c \ - rooms.c save.c scrolls.c state.c sticks.c things.c weapons.c wizard.c \ - mach_dep.c xcrypt.c mdport.c -MISC= Makefile LICENSE.TXT rogue.6 rogue.me - -CC = gcc -CFLAGS= -O3 -DSAVEDIR=\"/usr/local/games/roguelike/rogue4save/\" \ - -DLOGFILE=\"/usr/local/games/roguelike/rogue4.log\" -CRLIB = -lcurses -RM = rm -f -TAR = tar - -SCOREFILE= -SF=-DSCOREFILE=\"/usr/local/games/roguelike/rogue4.scr\" \ - -DLOCKFILE=\"/usr/local/games/roguelike/rogue4save/rogue4.lck\" -NAMELIST= -NL= -#MACHDEP= -DMAXLOAD=40 -DLOADAV -DCHECKTIME=4 -MACHDEP= - -.c.o: - @echo $(CC) -c $(CFLAGS) $*.c - @$(CC) -c $(CFLAGS) $*.c -o $*.o -# @cpp -P $(CFLAGS) $*.c | ./xstr -v -c - -# @cc -c $(CFLAGS) x.c -# @mv x.o $*.o - -rogue: $(HDRS) $(OBJS) # xs.o -# @rm -f x.c -# $(CC) $(LDFLAGS) xs.o $(OBJS) $(CRLIB) - $(CC) $(LDFLAGS) $(OBJS) $(CRLIB) -o $@ - -vers.o: - $(CC) -c $(CFLAGS) vers.c - -mach_dep.o: mach_dep.c - $(CC) -c $(CFLAGS) $(SF) $(NL) $(MACHDEP) mach_dep.c - -xs.o: strings - ./xstr - $(CC) -c $(CFLAGS) xs.c - -xstr: xstr.c - $(CC) -s -O -o xstr xstr.c - -findpw: findpw.c xcrypt.c - $(CC) -s -o findpw findpw.c xcrypt.c - -prob: prob.o extern.o xs.o - $(CC) -O -o prob prob.o extern.o xs.o - -prob.o: prob.c rogue.h - $(CC) -O -c prob.c - -clean: - rm -f $(POBJS) $(OBJS) core a.out p.out rogue strings make.out rogue.tar vgrind.* x.c x.o xs.c xs.o linterrs findpw distmod.o xs.po xstr rogue rogue.exe rogue.tar.gz rogue.cat rogue.doc xstr.exe - -dist.src: - make clean - tar cf $(DISTNAME)-src.tar $(CFILES) $(HDRS) $(MISC) - gzip -f $(DISTNAME)-src.tar - -debug.irix: - make clean - make CC=cc CFLAGS="-woff 1116 -g -DWIZARD" rogue -dist.irix: - make clean - make CC=cc CFLAGS="-woff 1116 -O3" rogue - tbl rogue.me | nroff -me | colcrt - > rogue.doc - nroff -man rogue.6 | colcrt - > rogue.cat - tar cf $(DISTNAME)-irix.tar rogue LICENSE.TXT rogue.cat rogue.doc - gzip -f $(DISTNAME)-irix.tar - -debug.aix: - make clean - make CC=xlc CFLAGS="-qmaxmem=16768 -g -qstrict -DWIZARD" rogue -dist.aix: - make clean - make CC=xlc CFLAGS="-qmaxmem=16768 -O3 -qstrict" rogue - tbl rogue.me | nroff -me | colcrt - > rogue.doc - nroff -man rogue.6 | colcrt - > rogue.cat - tar cf $(DISTNAME)-aix.tar rogue LICENSE.TXT rogue.cat rogue.doc - gzip -f $(DISTNAME)-aix.tar - -debug.linux: - make clean - make CFLAGS="-g3 -DWIZARD" rogue -dist.linux: - make clean - make rogue - groff -P-c -t -me -Tascii rogue.me | sed -e 's/.\x08//g' > rogue.doc - groff -man rogue.6 | sed -e 's/.\x08//g' > rogue.cat - tar cf $(DISTNAME)-linux.tar rogue LICENSE.TXT rogue.cat rogue.doc - gzip -f $(DISTNAME)-linux.tar - -debug.interix: - make clean - make CFLAGS="-g3 -DWIZARD" rogue -dist.interix: - make clean - make rogue - groff -P-b -P-u -t -me -Tascii rogue.me > rogue.doc - groff -P-b -P-u -man -Tascii rogue.6 > rogue.cat - tar cf $(DISTNAME)-interix.tar rogue LICENSE.TXT rogue.cat rogue.doc - gzip -f $(DISTNAME)-interix.tar - -debug.cygwin: - make clean - make CFLAGS="-g3 -DWIZARD" rogue -dist.cygwin: - make clean - make rogue - groff -P-c -t -me -Tascii rogue.me | sed -e 's/.\x08//g' > rogue.doc - groff -P-c -man -Tascii rogue.6 | sed -e 's/.\x08//g' > rogue.cat - tar cf $(DISTNAME)-cygwin.tar rogue.exe LICENSE.TXT rogue.cat rogue.doc - gzip -f $(DISTNAME)-cygwin.tar - -debug.djgpp: - make clean - make CFLAGS="-g3 -DWIZARD" LDFLAGS="-L$(DJDIR)/LIB" CRLIB="-lpdcurses" rogue -dist.djgpp: - make clean - make CFLAGS="-O3" LDFLAGS="-L$(DJDIR)/LIB" CRLIB="-lpdcurses" rogue - groff -t -me -Tascii rogue.me | sed -e 's/.\x08//g' > rogue.doc - groff -man -Tascii rogue.6 | sed -e 's/.\x08//g' > rogue.cat - rm -f $(DISTNAME)-djgpp.zip - zip $(DISTNAME)-djgpp.zip rogue.exe LICENSE.TXT rogue.cat rogue.doc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/rogue4/Makefile.in Tue Oct 11 15:20:40 2011 +0000 @@ -0,0 +1,227 @@ +# +# Makefile for rogue +# @(#)Makefile 4.13 (Berkeley) 1/23/82 +# +# Rogue: Exploring the Dungeons of Doom +# Copyright (C) 1980, 1981, 1982 Michael Toy, Ken Arnold and Glenn Wichman +# All rights reserved. +# +# See the file LICENSE.TXT for full copyright and licensing information. +# + +DISTNAME=@PACKAGE_TARNAME@@PACKAGE_VERSION@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@-@PACKAGE_VERSION@ +PROGRAM=@PROGRAM@ + +CC = @CC@ +LIBS = @LIBS@ + +#SCOREFILE=\"/usr/local/games/roguelike/rogue4.scr\" +SCOREFILE=@SCOREFILE@ +#LOGFILE=\"/usr/local/games/roguelike/rogue4.log\" +LOGFILE=@LOGFILE@ +#SAVEDIR=\"/usr/local/games/roguelike/rogue4save/\" +SAVEDIR=@SAVEDIR@ +#LOCKFILE=\"/usr/local/games/roguelike/rogue4save/rogue4.lck\" +LOCKFILE=@LOCKFILE@ +#GROUPOWNER=games +GROUPOWNER=@GROUPOWNER@ + +DESTDIR=@DESTDIR@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +datarootdir=@datarootdir@ +bindir=@bindir@ +mandir=@mandir@ +man6dir=$(mandir)/man6 +docdir=@docdir@ + +HDRS= rogue.h extern.h +DOBJS= vers.o extern.o armor.o chase.o command.o daemon.o daemons.o \ + fight.o init.o io.o list.o main.o misc.o monsters.o move.o \ + new_level.o options.o pack.o passages.o potions.o rings.o rip.o \ + rooms.o save.o scrolls.o state.o sticks.o things.o weapons.o wizard.o\ + xcrypt.o mdport.o +OBJS= $(DOBJS) mach_dep.o +CFILES= vers.c extern.c armor.c chase.c command.c daemon.c daemons.c \ + fight.c init.c io.c list.c main.c misc.c monsters.c move.c \ + new_level.c options.c pack.c passages.c potions.c rings.c rip.c \ + rooms.c save.c scrolls.c state.c sticks.c things.c weapons.c wizard.c \ + mach_dep.c xcrypt.c mdport.c +MISC= Makefile LICENSE.TXT rogue.6 rogue.me + +CFLAGS= -O3 +CRLIB = -lcurses +RM = rm -f +TAR = tar +TOUCH=touch +MKDIR=mkdir +CHGRP=chgrp +CHMOD=chmod +INSTALL=@INSTALL@ + +SF= +NAMELIST= +NL= +#MACHDEP= -DMAXLOAD=40 -DLOADAV -DCHECKTIME=4 +MACHDEP= + +.c.o: + @echo $(CC) -c $(CFLAGS) $*.c + @$(CC) -c $(CFLAGS) $*.c -o $*.o +# @cpp -P $(CFLAGS) $*.c | ./xstr -v -c - +# @cc -c $(CFLAGS) x.c +# @mv x.o $*.o + +@PROGRAM@: $(HDRS) $(OBJS) # xs.o +# @rm -f x.c +# $(CC) $(LDFLAGS) xs.o $(OBJS) $(CRLIB) + $(CC) $(LDFLAGS) $(OBJS) $(LIBS) -o $@ + +main.o: main.c $(HDRS) + $(CC) -c $(CFLAGS) -o $@ main.c + +vers.o: + $(CC) -c $(CFLAGS) vers.c + +mach_dep.o: mach_dep.c + $(CC) -c $(CFLAGS) $(SF) $(NL) $(MACHDEP) mach_dep.c + +xs.o: strings + ./xstr + $(CC) -c $(CFLAGS) xs.c + +xstr: xstr.c + $(CC) -s -O -o xstr xstr.c + +findpw: findpw.c xcrypt.c + $(CC) -s -o findpw findpw.c xcrypt.c + +prob: prob.o extern.o xs.o + $(CC) -O -o prob prob.o extern.o xs.o + +prob.o: prob.c rogue.h + $(CC) -O -c prob.c + +clean: + rm -f $(POBJS) $(OBJS) core a.out p.out @PROGRAM@ strings make.out rogue.tar vgrind.* x.c x.o xs.c xs.o linterrs findpw distmod.o xs.po xstr rogue rogue.exe rogue.tar.gz rogue.cat rogue.doc xstr.exe + +maintainer-clean: + make clean
