From 129ffa9fb54f7e30598b7ad39990099fea9bae44 Mon Sep 17 00:00:00 2001 From: Landon Curt Noll Date: Wed, 8 Mar 2023 02:17:10 -0800 Subject: [PATCH] fix how alt code it used in 1992/buzzard.2 --- 1992/buzzard.2/Makefile | 7 +++++-- 1992/buzzard.2/README.md | 11 +++++++++++ 1992/buzzard.2/{buzzard.2.orig.c => buzzard.2.alt.c} | 0 3 files changed, 16 insertions(+), 2 deletions(-) rename 1992/buzzard.2/{buzzard.2.orig.c => buzzard.2.alt.c} (100%) diff --git a/1992/buzzard.2/Makefile b/1992/buzzard.2/Makefile index bc699d5e8..11f302674 100644 --- a/1992/buzzard.2/Makefile +++ b/1992/buzzard.2/Makefile @@ -168,8 +168,8 @@ OBJ= ${PROG}.o DATA= TARGET= ${PROG} # -ALT_OBJ= -ALT_TARGET= +ALT_OBJ= ${PROG}.alt.o +ALT_TARGET= ${PROG}.alt ################# @@ -186,6 +186,9 @@ all: data ${TARGET} ${PROG}: ${PROG}.c ${CC} ${CFLAGS} $< -o $@ ${LIBS} +${PROG}.alt: ${PROG}.alt.c + ${CC} ${CFLAGS} $< -o $@ ${LIBS} + first: ${PROG} ${RM} -f $@ ${LN} $< $@ diff --git a/1992/buzzard.2/README.md b/1992/buzzard.2/README.md index 8fb6cf9f3..1419f96ab 100644 --- a/1992/buzzard.2/README.md +++ b/1992/buzzard.2/README.md @@ -32,6 +32,17 @@ Sorry, this is third! +### Alternate code + +An alternate version of this entry, `buzzard.2.alt.c`, is provided. This alternate code +does not contain a fix that the author notes below. + +To compile this alternate version: + + make alt + +Use `buzzard.2.alt` as you would `buzzard.2` above. + ## Judges' comments Have fun! diff --git a/1992/buzzard.2/buzzard.2.orig.c b/1992/buzzard.2/buzzard.2.alt.c similarity index 100% rename from 1992/buzzard.2/buzzard.2.orig.c rename to 1992/buzzard.2/buzzard.2.alt.c