Format fix 2005/anon/README.md + add alt version
The alt version uses the same code but the make rule is different. It disables the stty command. This is in case a shell does not support it. It also allows to demonstrate a funny feature that the author documented where after too many moves the program deliberately destroys its runtime stack. This is because the program sometimes deliberately generates unsolvable puzzles to hook you :-) and also to prevent you spending too much time or from getting too frustrated (see also the part about unsolvable puzzles being deliberately generated).
This commit is contained in:
1 parent
d93536ad73
commit
c55a9e395e
4 files changed
+314
-241
No files matched your search
+6
-2
@@ -112,8 +112,8 @@ OBJ= ${PROG}.o
|
||||
DATA=
|
||||
TARGET= ${PROG}
|
||||
#
|
||||
ALT_OBJ=
|
||||
ALT_TARGET=
|
||||
ALT_OBJ= ${PROG}.alt.o
|
||||
ALT_TARGET= ${PROG}.alt
|
||||
|
||||
|
||||
#################
|
||||
@@ -130,6 +130,10 @@ all: data ${TARGET}
|
||||
${PROG}: ${PROG}.c
|
||||
${CC} ${CFLAGS} $< -o $@ ${LIBS}
|
||||
|
||||
${PROG}.alt: ${PROG}.c
|
||||
${CC} ${CFLAGS} -DNO_STTY $< -o $@ ${LIBS}
|
||||
|
||||
|
||||
# alternative executable
|
||||
#
|
||||
alt: data ${ALT_TARGET}
|
||||
|
||||
Reference in new issue
Block a user