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.
This commit is contained in:
1 parent
f444622706
commit
7253bc16f6
2 files changed
+29
-12
No files matched your search
@@ -113,8 +113,8 @@ OBJ= ${PROG}.o
|
||||
DATA=
|
||||
TARGET= ${PROG}
|
||||
#
|
||||
ALT_OBJ=
|
||||
ALT_TARGET=
|
||||
ALT_OBJ= ${PROG}.alt.o
|
||||
ALT_TARGET= ${PROG}.alt
|
||||
|
||||
|
||||
#################
|
||||
|
||||
+27
-10
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user