Improve how to redefine sleep time in 2006/sloane

Now one can do

    make clobber SLEEP=555 alt

or whatever.
This commit is contained in:
Cody Boone Ferguson committed 2023-12-07 11:07:28 -08:00
1 parent a6aa0332cd
commit faff15f900
2 files changed
+6 -3

No files matched your search

+4 -1
View File
@@ -57,9 +57,12 @@ CSTD= -std=gnu99
#
ARCH=
# variable to simplify redefining sleep duration for alt code
#
SLEEP= 75000
# Defines that are needed to compile
#
CDEFINE= -DS=75000
CDEFINE= -DS=${SLEEP}
# Include files that are needed to compile
#
+2 -2
View File
@@ -24,7 +24,7 @@ value used in `usleep()`. The default is `-DS=75000` but you can easily change
it. To do so try:
```sh
make CDEFINE="-DS=70000" clobber alt
make clobber SLEEP=70000 clobber alt
./sloane.alt
```
@@ -32,7 +32,7 @@ If you wish to make it like the original, as if the below [Original
code](#original-code) was being used, you can do:
```sh
make CDEFINE="-DS=0" clobber alt
make SLEEP=0 clobber alt
./sloane.alt
```