fix .gitignore, Makefile and README.md for 2018/endoh1

This commit is contained in:
Landon Curt Noll committed 2023-03-24 23:27:28 -07:00
1 parent 5fa909ea4d
commit 256be40863
3 files changed
+42 -25

No files matched your search

+4
View File
@@ -1 +1,5 @@
golem.gif
invisible.gif
output.gif
prog prog
smily.gif
+9 -8
View File
@@ -62,8 +62,8 @@ X11_INCDIR= /opt/X11/include
# Common C compiler warnings to silence # Common C compiler warnings to silence
# #
#CSILENCE= CSILENCE=
CSILENCE= -Wno-overlength-strings #CSILENCE= -Wno-implicit-int
# Common C compiler warning flags # Common C compiler warning flags
# #
@@ -101,8 +101,8 @@ CINCLUDE=
#CINCLUDE= -include stdlib.h #CINCLUDE= -include stdlib.h
#CINCLUDE= -include stdio.h #CINCLUDE= -include stdio.h
#CINCLUDE= -include stdlib.h -include stdio.h #CINCLUDE= -include stdlib.h -include stdio.h
#CINCLUDE= -I ${X11_INCDIR} #CINCLUDE= -I ${X11_INCDIR} -I ${X11_INCDIR}/X11
#CINCLUDE= -I ${HOMEBREW_PREFIX}/include/SDL2 #CINCLUDE= `${SDL2_CONFIG} --cflags`
# Optimization # Optimization
# #
@@ -126,7 +126,7 @@ CFLAGS= ${CSTD} ${CWARN} ${ARCH} ${CDEFINE} ${CINCLUDE} ${OPT}
LIBS= LIBS=
#LIBS= -lm #LIBS= -lm
#LIBS= -L ${X11_LIBDIR} -lX11 #LIBS= -L ${X11_LIBDIR} -lX11
#LIBS= -L ${HOMEBREW_PREFIX}/lib -lSDL #LIBS= `${SDL2_CONFIG} --libs`
# C compiler to use # C compiler to use
# #
@@ -161,11 +161,12 @@ endif
# Special flags for this entry # Special flags for this entry
############################## ##############################
# #
ENTRY= XXX ENTRY= endoh1
PROG= prog PROG= prog
# #
OBJ= ${PROG}.o OBJ= ${PROG}.o
DATA= CSRC= ${PROG}.o
DATA= golem.txt smily.txt invisible.txt
TARGET= ${PROG} TARGET= ${PROG}
# #
ALT_OBJ= ALT_OBJ=
@@ -214,6 +215,7 @@ clean:
clobber: clean clobber: clean
${RM} -f ${TARGET} ${ALT_TARGET} ${RM} -f ${TARGET} ${ALT_TARGET}
${RM} -f output.gif golem.gif smily.gif invisible.gif
@-if [ -e sandwich ]; then \ @-if [ -e sandwich ]; then \
${RM} -f sandwich; \ ${RM} -f sandwich; \
echo 'ate sandwich'; \ echo 'ate sandwich'; \
@@ -325,4 +327,3 @@ pluto: charon
@echo "dwarf is a type of planet" @echo "dwarf is a type of planet"
@echo "therefore, $@ is a planet" @echo "therefore, $@ is a planet"
@echo "having lots of planets is good feature because supernovae can help ${MAKE} a lot of them" @echo "having lots of planets is good feature because supernovae can help ${MAKE} a lot of them"
+29 -17
View File
@@ -1,22 +1,28 @@
# Best tool to reveal holes # Best tool to reveal holes
Yusuke Endoh Yusuke Endoh
Twitter: @mametter Twitter: @mametter
## To build: # To build:
make all ```sh
make
```
### To run ### To run:
./prog < textfile > output.gif ```sh
./prog < textfile > output.gif
```
### Try: ### Try:
./prog < golem.txt > golem.gif ```sh
./prog < smily.txt > smily.gif ./prog < golem.txt > golem.gif
./prog < smily.txt > smily.gif
```
### Selected Judges Remarks: ## Judges' comments:
To get the best experience, use a GIF viewer that can handle animated gifs. To get the best experience, use a GIF viewer that can handle animated gifs.
On OS X you can use Safari using "open -a Safari smily.gif" On OS X you can use Safari using "open -a Safari smily.gif"
@@ -31,28 +37,34 @@ Unfortunately this won't run on your PDP8, if you had one, as it needs at
least 2MiB of memory to run in. least 2MiB of memory to run in.
## Author's comments: ## Author's comments:
This program generates an animated GIF from a plain text. Run: This program generates an animated GIF from a plain text. Run:
gcc -o prog prog.c ```sh
./prog < invisible.txt > invisible.gif cc -o prog prog.c
./prog < invisible.txt > invisible.gif
```
Open invisible.gif and then wait a minute. You will see a hidden message. Open invisible.gif and then wait a minute. You will see a hidden message.
Can you tell the difference between letters that leaves the mark and ones that does not? Can you tell the difference between letters that leaves the mark and ones that does not?
Other examples: Other examples:
./prog < golem.txt > golem.gif ```sh
./prog < smily.txt > smily.gif ./prog < golem.txt > golem.gif
./prog < smily.txt > smily.gif
```
The program itself has a hidden message. The program itself has a hidden message.
./prog < prog.c > prog.gif ```sh
./prog < prog.c > prog.gif
```
## Copyright:
--------------------------------------------------------------------------------
<!--
(c) Copyright 1984-2018, [Leo Broukhis, Simon Cooper, Landon Curt Noll][judges] - All rights reserved (c) Copyright 1984-2018, [Leo Broukhis, Simon Cooper, Landon Curt Noll][judges] - All rights reserved
This work is licensed under a [Creative Commons Attribution-ShareAlike 3.0 Unported License][cc]. This work is licensed under a [Creative Commons Attribution-ShareAlike 3.0 Unported License][cc].
[judges]: http://www.ioccc.org/judges.html [judges]: http://www.ioccc.org/judges.html
[cc]: http://creativecommons.org/licenses/by-sa/3.0/ [cc]: http://creativecommons.org/licenses/by-sa/3.0/
-->