From 12f909bcc9ffddade92fb1e310d67671c1470425 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 14 Mar 2023 08:03:24 -0400 Subject: [PATCH] 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. --- Makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 68ffd5b..ae2abfa 100644 --- a/Makefile +++ b/Makefile @@ -4,10 +4,10 @@ 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 -O $(DBX) -c $< + gcc -g $(DBX) -c $< -advent: $(OBJS) - gcc -O $(DBX) -o advent $(OBJS) +advent430: $(OBJS) + gcc -g $(DBX) -o advent430 $(OBJS) main.o: misc.h funcs.h @@ -22,7 +22,10 @@ score.o: misc.h main.h share.h misc.o: misc.h main.h clean: - rm -f *.o advent advent.html advent.6 + rm -f *.o advent.html advent.6 + +realclean: clean + rm -f adventure.data advent430 # Requires asciidoc and xsltproc/docbook stylesheets. .asc.6: -- 2.31.1