Merge pull request #281 from xexyl/1985-lycklama

Fixes in 1985/lycklama/README.md + Makefile
This commit is contained in:
Landon Curt Noll authored and GitHub committed 2023-04-04 11:31:16 -07:00
commit 200a937b16
2 files changed
+23 -6

No files matched your search

+2 -2
View File
@@ -113,8 +113,8 @@ OBJ= ${PROG}.o
DATA= DATA=
TARGET= ${PROG} TARGET= ${PROG}
# #
ALT_OBJ= ALT_OBJ= ${PROG}.alt.o
ALT_TARGET= ALT_TARGET= ${PROG}.alt
################# #################
+21 -4
View File
@@ -4,7 +4,9 @@ Ed Lycklama
## To build: ## To build:
```sh
make all make all
```
[Cody Boone Ferguson](/winners.html#Cody_Boone_Ferguson) fixed this to work with [Cody Boone Ferguson](/winners.html#Cody_Boone_Ferguson) fixed this to work with
@@ -13,13 +15,10 @@ 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 `lycklama.alt.c` is the original source code as it provides some fun input for
the entry. the entry.
## To run:
./lycklama < some_file
## Try: ## Try:
```sh
./lycklama < lycklama.c ./lycklama < lycklama.c
# notice the difference between the above and this one: # notice the difference between the above and this one:
@@ -28,6 +27,24 @@ the entry.
./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: ## Judges' comments: