open-adventure/Makefile
Eric S. Raymond 12f909bcc9 Start advent430 branch for correctness testing.
The purpose of this branch is to create a version of the game from
before the bug fixes, refactoring, and logic changes.  We want this so
we can run it against our 100% coverage test suite and see all changes
in behavior.

This branch is forked from the point where the prompt and the oldstyle
option were added.  At this point there had been only two logic
changes:

1. Do initialization of the LCG with gettimeofday(). Note that
this change will not affectt regression testing, since the
initialization done in this way will nbe overridden in the
logs by seed commands.

2. Refactor the input routines to a normal Unixy organization.
This is required for the -l option to work.

This commit just builds the binary at advent430 where it
won't collide with the production version.
2023-03-23 11:28:53 -04:00

46 lines
1.1 KiB
Makefile

# Makefile for the open-source release of adventure 2.5
OBJS=main.o init.o actions1.o actions2.o score.o misc.o
SOURCES=$(OBJS:.o=.c) COPYING NEWS README TODO advent.text control
.c.o:
gcc -g $(DBX) -c $<
advent430: $(OBJS)
gcc -g $(DBX) -o advent430 $(OBJS)
main.o: misc.h funcs.h
init.o: misc.h main.h share.h funcs.h
actions1.o: misc.h main.h share.h funcs.h
actions2.o: misc.h main.h share.h funcs.h
score.o: misc.h main.h share.h
misc.o: misc.h main.h
clean:
rm -f *.o advent.html advent.6
realclean: clean
rm -f adventure.data advent430
# Requires asciidoc and xsltproc/docbook stylesheets.
.asc.6:
a2x --doctype manpage --format manpage $<
.asc.html:
a2x --doctype manpage --format xhtml -D . $<
rm -f docbook-xsl.css
advent-$(VERS).tar.gz: $(SOURCES) advent.6
tar --transform='s:^:advent-$(VERS)/:' --show-transformed-names -cvzf advent-$(VERS).tar.gz $(SOURCES) advent.6
dist: advent-$(VERS).tar.gz
release: advent-$(VERS).tar.gz advent.html
shipper version=$(VERS) | sh -e -x
refresh: advent.html
shipper -N -w version=$(VERS) | sh -e -x