Improve how to reconfigure coords in 2014/deak

The Makefile now has variables so that one can do something like

    make X1=-1 Y2=-1 clobber alt

or whatever, with the variables X1, X2, Y1 and Y2 set to what the author
originally had it as.

The alt code still has #ifndef..#endif so that one can (if they want to
be silly) compile it without make(1).
This commit is contained in:
Cody Boone Ferguson committed 2023-12-10 12:33:33 -08:00
1 parent ff201b7a76
commit ba17ec7e8f
4 files changed
+71 -4

No files matched your search

+10
View File
@@ -137,6 +137,16 @@ ${PROG}: ${PROG}.c
alt: data ${ALT_TARGET}
@${TRUE}
# Variables to redefine the coordinates in the alt version
#
X1= -2
X2= 1
Y1= -1.3
Y2= 1.3
${PROG}.alt: ${PROG}.alt.c
${CC} ${CFLAGS} -DX1=${X1} -DX2=${X2} -DY1=${Y1} -DY2=${Y2} $< -o $@ ${LDFLAGS}
# data files
#
data: ${DATA}