Improve how to redefine sleep in 1993/cmills

Using a Makefile variable one can now do

    make clobber SLEEP=200 alt

to change the time to sleep, rather than the more awkward redefining
CDEFINE.
This commit is contained in:
Cody Boone Ferguson committed 2023-12-07 05:45:35 -08:00
1 parent fb245cbf53
commit 49945cb95f
2 files changed
+6 -4

No files matched your search

+5 -2
View File
@@ -57,7 +57,7 @@ ARCH=
# Defines that are needed to compile
#
CDEFINE= -DZ=100
CDEFINE= -DZ=${SLEEP}
# Include files that are needed to compile
#
@@ -141,8 +141,11 @@ chris: ${PROG}
alt: data ${ALT_TARGET}
@${TRUE}
# variable to control how long to sleep in alt version between updates
SLEEP= 100
${PROG}.alt: ${PROG}.alt.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
${CC} ${CFLAGS} -DZ=${SLEEP} $< -o $@ ${LDFLAGS}
# data files
#
+1 -2
View File
@@ -12,7 +12,7 @@ make alt
To configure how many microseconds to sleep before updates try:
```sh
make clobber CDEFINE="-DZ=200" alt
make clobber SLEEP=200 alt
```
NOTE: this entry requires `X11/Xlib.h` header file and the X11 library to
@@ -32,7 +32,6 @@ STATUS: known bug - please help us fix
For more detailed information see [1993 cmills in bugs.md](/bugs.md#1993-cmills).
## To use:
```sh