fix Makefile and README.md for 2000/thadgavin

This commit is contained in:
Landon Curt Noll committed 2023-03-15 14:19:09 -07:00
1 parent 1717b46c94
commit c1f33ae741
2 files changed
+53 -43

No files matched your search

+2 -2
View File
@@ -101,7 +101,7 @@ CINCLUDE=
#CINCLUDE= -include stdlib.h
#CINCLUDE= -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`
# Optimization
@@ -124,7 +124,7 @@ CFLAGS= ${CSTD} ${CWARN} ${ARCH} ${CDEFINE} ${CINCLUDE} ${OPT}
# Libraries needed to build
#
#LIBS=
LIBS= -lm -lncurses
LIBS= -lncurses
#LIBS= -L ${X11_LIBDIR} -lX11
#LIBS= `${SDL2_CONFIG} --libs`
+51 -41
View File
@@ -1,68 +1,78 @@
# Most Portable Output:
Thaddaeus Frogley
Creature Labs
164 Hornbeams,
Harlow, Essex,
UK
Thaddaeus Frogley
Creature Labs
164 Hornbeams,
Harlow, Essex,
UK
Gavin Buttimore
Creature Labs
9 Elizabeth Way,
Cambridge,
UK, CB4 1DE
Gavin Buttimore
Creature Labs
9 Elizabeth Way,
Cambridge,
UK, CB4 1DE
## To build:
# To build:
make all
```sh
make
```
### To run
### To run:
./thadgavin
```sh
./thadgavin
```
## Judges' comments
### Try:
This entry is a nice play by the rules. It can use curses, if the
SDL graphic library is not present, and is quite good at that,
but the colors used in graphic mode (16 bit depth) are unfortunately
less than dazzling. We could not test this entry in DOS mode.
```sh
echo "Do or do not. There is no try."
```
## Author's comments
## Judges' comments:
To run under DOS:
This entry is a nice play by the rules. It can use curses, if the
SDL graphic library is not present, and is quite good at that,
but the colors used in graphic mode (16 bit depth) are unfortunately
less than dazzling. We could not test this entry in DOS mode.
Compile using DJGPP as follows:
## Author's comments:
gcc thadgavin.c -o thadgavin.exe -Wall -lm -O6 -mpentium -fomit-frame-pointer
To run under DOS:
Compile using DJGPP as follows:
gcc thadgavin.c -o thadgavin.exe -Wall -lm -O6 -mpentium -fomit-frame-pointer
-ffast-math
To run under Windows, X-Windows or MacOS using the
Simple DirectMedia Layer:
To run under Windows, X-Windows or MacOS using the
Simple DirectMedia Layer:
For example:
For example:
gcc -O6 -lpthread -g -o thadgavin thadgavin.c -lSDL -DSDL -lm
gcc -O6 -lpthread -g -o thadgavin thadgavin.c -lSDL -DSDL -lm
In gcc you may get the following warning:
In gcc you may get the following warning:
prog.c:46: warning: passing arg 2 of `SDL_SetColors' from incompatible
pointer type
prog.c:46: warning: passing arg 2 of `SDL_SetColors' from incompatible
pointer type
In Microsoft Visual Studio you may get warnings as follows:
In Microsoft Visual Studio you may get warnings as follows:
prog.c(46) : warning C4133: 'function' : incompatible types - from 'unsigned
char *' to 'struct SDL_Color *'
prog.c(63) : warning C4026: function declared with formal parameter list
prog.c(77) : warning C4244: '=' : conversion from 'double ' to 'unsigned
char ', possible loss of data
prog.c(46) : warning C4133: 'function' : incompatible types - from 'unsigned
char *' to 'struct SDL_Color *'
prog.c(63) : warning C4026: function declared with formal parameter list
prog.c(77) : warning C4244: '=' : conversion from 'double ' to 'unsigned
char ', possible loss of data
But don't worry, this is completely normal.
But don't worry, this is completely normal.
Recommended dosage:
Recommended dosage:
At least 3 minutes taken 3 times a day when tired.
At least 3 minutes taken 3 times a day when tired.
Do not exceed 3 times recommended dose. May cause
sickness, dizziness, nausea.
Do not exceed 3 times recommended dose. May cause
sickness, dizziness, nausea.