Improve how to redefine size in 1985/shapiro
Now one can just do:
make clobber SIZE=5 alt
for example. This is done through a Makefile variable.
This commit is contained in:
1 parent
e8ad7a89f5
commit
8f4f9a650a
3 files changed
+10
-6
No files matched your search
@@ -58,7 +58,7 @@ ARCH=
|
||||
|
||||
# Defines that are needed to compile
|
||||
#
|
||||
CDEFINE= -DC=39
|
||||
CDEFINE= -DC=${SIZE}
|
||||
|
||||
# Include files that are needed to compile
|
||||
#
|
||||
@@ -136,8 +136,11 @@ ${PROG}: ${PROG}.c
|
||||
alt: data ${ALT_TARGET}
|
||||
@${TRUE}
|
||||
|
||||
# variable to control size of maze for alt code
|
||||
SIZE=39
|
||||
|
||||
${PROG}.alt: ${PROG}.alt.c
|
||||
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
|
||||
${CC} ${CFLAGS} -DC=${SIZE} $< -o $@ ${LDFLAGS}
|
||||
|
||||
# data files
|
||||
#
|
||||
|
||||
Reference in new issue
Block a user