fix Makefile and README.md for 2018/giles

This commit is contained in:
Landon Curt Noll committed 2023-03-25 00:43:08 -07:00
1 parent c89d291ed7
commit 42345f33f2
2 files changed
+25 -22

No files matched your search

+1 -1
View File
@@ -101,7 +101,7 @@ CDEFINE=
#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= `${SDL2_CONFIG} --cflags` CINCLUDE= `${SDL2_CONFIG} --cflags`
# Optimization # Optimization
+24 -21
View File
@@ -1,27 +1,29 @@
# Most unstable # Most unstable
Edward Giles Edward Giles
## To build: # To build:
make all ```sh
make
```
### To run ### To run:
./prog ```sh
./prog
```
### Try: ### Try:
make ```sh
./prog ioccc.txt
./prog prog.c
./prog sand.txt
./prog sand.alt.txt
```
### Try: ## Judges' comments:
./prog ioccc.txt
./prog prog.c
./prog sand.txt
./prog sand.alt.txt
### Selected Judges Remarks:
Can you explain the behavior of the program when ioccc.txt is given to it as input? Can you explain the behavior of the program when ioccc.txt is given to it as input?
@@ -30,13 +32,15 @@ Polynomish to English?
You may have to install libsdl2-dev on your system to compile and use this code: You may have to install libsdl2-dev on your system to compile and use this code:
sudo apt install libsdl2-dev # Linux ```sh
Something else # MacOS sudo dnf install SDL2 # Linux
sudo apt install libsdl2-dev # Debian
brew install sdl2 # MacOS via HomeBrew
```
## Author's comments: ## Author's comments:
Remarks ### Remarks
=======
This entry graphically displays a simulation of sand falling. This entry graphically displays a simulation of sand falling.
It uses SDL to draw the interface. It uses SDL to draw the interface.
@@ -61,11 +65,10 @@ The preprocessor is used to both obfuscate the code as a whole and abbreviate
the calls to SDL. Additionally, throughout the code, the variables were named the calls to SDL. Additionally, throughout the code, the variables were named
so that they are short and easily confused with each other. so that they are short and easily confused with each other.
-------------------------------------------------------------------------------- ## 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/
-->