Improve how to define sleep time in 1985/lycklama
With Makefile variables one can just do for instance:
make SLEEP=700 clobber alt
which will set the macro Z to 700.
This commit is contained in:
1 parent
94a69dfc99
commit
feedf2133f
2 files changed
+9
-3
No files matched your search
@@ -58,7 +58,7 @@ ARCH=
|
||||
|
||||
# Defines that are needed to compile
|
||||
#
|
||||
CDEFINE= -DZ=500
|
||||
CDEFINE= -DZ=${SLEEP}
|
||||
|
||||
# Include files that are needed to compile
|
||||
#
|
||||
@@ -137,6 +137,12 @@ ${PROG}: ${PROG}.c
|
||||
alt: data ${ALT_TARGET}
|
||||
@${TRUE}
|
||||
|
||||
SLEEP=500
|
||||
|
||||
${PROG}.alt: ${PROG}.alt.c
|
||||
${CC} ${CFLAGS} -DZ=${SLEEP} $< -o $@ ${LDFLAGS}
|
||||
|
||||
|
||||
# data files
|
||||
#
|
||||
data: ${DATA}
|
||||
|
||||
Reference in new issue
Block a user