Improve how to redefine macros in 2006/monge
Now one can do
make clobber WIDTH=500 HEIGHT=500 ITERATIONS=512 alt
or whatever.
This commit is contained in:
1 parent
209410fa83
commit
a6aa0332cd
2 files changed
+11
-5
No files matched your search
+7
-1
@@ -143,8 +143,14 @@ ${PROG}: ${PROG}.c
|
||||
alt: data ${ALT_TARGET}
|
||||
@${TRUE}
|
||||
|
||||
# variables to help redefine width, height or iterations in alt version
|
||||
#
|
||||
WIDTH= 400
|
||||
HEIGHT= 300
|
||||
ITERATIONS= 128
|
||||
|
||||
${PROG}.alt: ${PROG}.alt.c
|
||||
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
|
||||
${CC} ${CFLAGS} -DW=${WIDTH} -DH=${HEIGHT} -DI=${ITERATIONS} $< -o $@ ${LDFLAGS}
|
||||
|
||||
# data files
|
||||
#
|
||||
|
||||
Reference in new issue
Block a user