Add alt versions to 2012/endoh1 + formatting
The alt versions let one control how long to sleep between writes as in modern systems it goes pretty fast. There are two, one for the colour version that was added by Yusuke at the request of the judges and one for the original. But the one for the original is called endoh1.alt2.c as Yusuke provided endoh1.alt.c as a deobfuscated version. The new alt versions let one only redefine certain macros should they choose but they can define them all or not define them all because of the #ifndef..#endif guards. These macros include the sleep time (S) as well as the others that Yusuke suggested one might want to change. The README.md file has been format/typo checked.
This commit is contained in:
1 parent
6feb979fdc
commit
8bb837f5f8
6 files changed
+199
-20
No files matched your search
+12
-2
@@ -57,7 +57,7 @@ ARCH=
|
||||
|
||||
# Defines that are needed to compile
|
||||
#
|
||||
CDEFINE= -DG="$G" -DP="$P" -DV="$V"
|
||||
CDEFINE= -DG="$G" -DP="$P" -DV="$V" -DS=12321
|
||||
|
||||
# Include files that are needed to compile
|
||||
#
|
||||
@@ -154,9 +154,19 @@ ${PROG}_color: ${PROG}_color.c
|
||||
alt: data ${ALT_TARGET}
|
||||
@${TRUE}
|
||||
|
||||
alt2: ${ALT_TARGET}2 ${PROG}_color.alt
|
||||
@${TRUE}
|
||||
|
||||
${PROG}.alt: ${PROG}.alt.c
|
||||
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
|
||||
|
||||
${PROG}.alt2: ${PROG}.alt2.c
|
||||
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
|
||||
|
||||
${PROG}_color.alt: ${PROG}_color.alt.c
|
||||
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
|
||||
|
||||
|
||||
# data files
|
||||
#
|
||||
data: ${DATA}
|
||||
@@ -221,7 +231,7 @@ clean:
|
||||
fi
|
||||
|
||||
clobber: clean
|
||||
${RM} -f ${TARGET} ${ALT_TARGET}
|
||||
${RM} -f ${TARGET} ${ALT_TARGET} ${ALT_TARGET}2 ${PROG}_color.alt
|
||||
@-if [ -e sandwich ]; then \
|
||||
${RM} -f sandwich; \
|
||||
echo 'ate sandwich'; \
|
||||
|
||||
Reference in new issue
Block a user