diff --git a/1993/cmills/Makefile b/1993/cmills/Makefile index 967ece1e9..85af27aab 100644 --- a/1993/cmills/Makefile +++ b/1993/cmills/Makefile @@ -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 # diff --git a/1993/cmills/README.md b/1993/cmills/README.md index 15ad711c1..eae5bc027 100644 --- a/1993/cmills/README.md +++ b/1993/cmills/README.md @@ -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