Mercurial > hg > early-roguelike
changeset 99:dfeed24bb616
arogue5: port to autoconf.
'configure' and 'make install' now work.  There may be problems with
hard-to-test features like MAXLOAD.
| author | John "Elwin" Edwards | 
|---|---|
| date | Sat, 31 Aug 2013 09:18:07 -0700 | 
| parents | ea71ef31d9be | 
| children | 1e88eb1942a5 | 
| files | arogue5/Makefile arogue5/Makefile.in arogue5/acinclude.m4 arogue5/command.c arogue5/configure.ac arogue5/install-sh arogue5/mach_dep.h arogue5/rogue.h | 
| diffstat | 8 files changed, 1098 insertions(+), 204 deletions(-) [+] | 
line wrap: on
 line diff
--- a/arogue5/Makefile Wed Aug 28 18:54:35 2013 -0700 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,203 +0,0 @@ -# -# Makefile for rogue -# -# Advanced Rogue -# Copyright (C) 1984, 1985 Michael Morgan, Ken Dalka and AT&T -# All rights reserved. -# -# Based on "Rogue: Exploring the Dungeons of Doom" -# Copyright (C) 1980, 1981 Michael Toy, Ken Arnold and Glenn Wichman -# All rights reserved. -# -# See the file LICENSE.TXT for full copyright and licensing information. -# - -DISTNAME=arogue5.8.2 -PROGRAM=arogue5 - -O=o - -HDRS = rogue.h mach_dep.h network.h -OBJS1 = chase.$(O) command.$(O) daemon.$(O) daemons.$(O) encumb.$(O) \ - fight.$(O) init.$(O) io.$(O) list.$(O) main.$(O) maze.$(O) mdport.$(O)\ - misc.$(O) monsters.$(O) move.$(O) new_level.$(O) options.$(O) \ - outside.$(O) -OBJS2 = pack.$(O) passages.$(O) player.$(O) potions.$(O) rings.$(O) rip.$(O) \ - rogue.$(O) rooms.$(O) save.$(O) scrolls.$(O) state.$(O) sticks.$(O) \ - things.$(O) trader.$(O) util.$(O) vers.$(O) weapons.$(O) wear.$(O) \ - wizard.$(O) xcrypt.$(O) -OBJS = $(OBJS1) $(OBJS2) -CFILES= \ - vers.c chase.c command.c daemon.c daemons.c encumb.c \ - fight.c init.c io.c list.c main.c maze.c mdport.c misc.c monsters.c \ - move.c new_level.c options.c outside.c pack.c passages.c player.c \ - potions.c rings.c rip.c rogue.c \ - rooms.c save.c scrolls.c state.c sticks.c things.c trader.c util.c \ - weapons.c wear.c wizard.c xcrypt.c - -MISC= Makefile LICENSE.TXT arogue58.sln arogue58.vcproj -DOCS= arogue58.doc arogue58.html - -CC = gcc -CFLAGS= -g -CRLIB = -lcurses -RM = rm -f -TAR = tar -.SUFFIXES: .obj - -.c.obj: - $(CC) $(CFLAGS) /c $*.c - -$(PROGRAM): $(OBJS) - $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) $(CRLIB) -o $@ - -tags: $(HDRS) $(CFILES) - ctags -u $? - ed - tags < :ctfix - sort tags -o tags - -lint: - lint -hxbc $(CFILES) $(CRLIB) > linterrs - -clean: - $(RM) $(OBJS1) - $(RM) $(OBJS2) - $(RM) core a.exe a.out a.exe.stackdump $(PROGRAM) $(PROGRAM).exe $(PROGRAM).tar $(PROGRAM).tar.gz $(PROGRAM).zip - -count: - wc -l $(HDRS) $(CFILES) - -realcount: - cc -E $(CFILES) | ssp - | wc -l - -update: - ar uv .SAVE $(CFILES) $(HDRS) $(MISC) - -dist: - @mkdir dist - cp $(CFILES) $(HDRS) $(MISC) dist - -dist.src: - make clean - tar cf $(DISTNAME)-src.tar $(CFILES) $(HDRS) $(MISC) $(DOCS) - gzip -f $(DISTNAME)-src.tar - -dist.irix: - make clean - make CC=cc CFLAGS="-woff 1116 -O3" $(PROGRAM) - tar cf $(DISTNAME)-irix.tar $(PROGRAM) LICENSE.TXT $(DOCS) - gzip -f $(DISTNAME)-irix.tar - -dist.aix: - make clean - make CC=xlc CFLAGS="-qmaxmem=16768 -O3 -qstrict" $(PROGRAM)
