From 7253bc16f6a88c16a95f88cbd52a70835c8a3688 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Tue, 4 Apr 2023 08:11:15 -0700 Subject: [PATCH] Fixes in 1985/lycklama/README.md + Makefile Add alt target to Makefile. Won't work for most systems but the alt code is there (particularly so people can see how it looked when run on itself back then) so it might as well be possible to run make alt for those who have an old compiler. Format fixes in README.md. --- 1985/lycklama/Makefile | 4 ++-- 1985/lycklama/README.md | 37 +++++++++++++++++++++++++++---------- 2 files changed, 29 insertions(+), 12 deletions(-) diff --git a/1985/lycklama/Makefile b/1985/lycklama/Makefile index fcc725682..ce02663ac 100644 --- a/1985/lycklama/Makefile +++ b/1985/lycklama/Makefile @@ -113,8 +113,8 @@ OBJ= ${PROG}.o DATA= TARGET= ${PROG} # -ALT_OBJ= -ALT_TARGET= +ALT_OBJ= ${PROG}.alt.o +ALT_TARGET= ${PROG}.alt ################# diff --git a/1985/lycklama/README.md b/1985/lycklama/README.md index 122980b81..daee2f9ae 100644 --- a/1985/lycklama/README.md +++ b/1985/lycklama/README.md @@ -4,7 +4,9 @@ Ed Lycklama ## To build: - make all +```sh +make all +``` [Cody Boone Ferguson](/winners.html#Cody_Boone_Ferguson) fixed this to work with @@ -13,21 +15,36 @@ get this to work on modern systems Cody changed the `#o` lines to `#define`. The `lycklama.alt.c` is the original source code as it provides some fun input for the entry. -## To run: - - ./lycklama < some_file - ## Try: - ./lycklama < lycklama.c +```sh +./lycklama < lycklama.c - # notice the difference between the above and this one: - ./lycklama < lycklama.alt.c +# notice the difference between the above and this one: +./lycklama < lycklama.alt.c - ./lycklama < README.md +./lycklama < README.md - ./lycklama < Makefile +./lycklama < Makefile +``` + +### Alternative code: + +If you have an older compiler that lets you define some object to define and +then use it in place of `#define` you can run: + +```sh +make alt +``` + +Use `./lylycklama.alt` as you would `./lycklama` above. + +## To run: + +```sh +./lycklama < some_file +``` ## Judges' comments: