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:
1 parent
fb245cbf53
commit
49945cb95f
2 files changed
+6
-4
No files matched your search
@@ -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
|
||||
#
|
||||
|
||||
Reference in new issue
Block a user