Improve redefining size in 1998/schweikh3

Now one can do

    make clobber SIZE=55555 alt

or whatever size they wish.
This commit is contained in:
Cody Boone Ferguson committed 2023-12-07 10:22:51 -08:00
1 parent 75839e221c
commit 1041382f68
2 files changed
+11 -4

No files matched your search

+9 -1
View File
@@ -55,10 +55,13 @@ CSTD= -std=gnu90
#
ARCH=
# variable for size, primarily for alt code
#
SIZE=32767
# Defines that are needed to compile
#
CDEFINE= -DM0=sizeof -DM1=long -DM2=void \
-DM3=realloc -DM4=calloc -DM5=free -DSZ=32767
-DM3=realloc -DM4=calloc -DM5=free -DSZ=${SIZE}
# Include files that are needed to compile
#
@@ -138,6 +141,11 @@ ${PROG}: ${PROG}.c
alt: data ${ALT_TARGET}
@${TRUE}
${PROG}.alt: ${PROG}.alt.c
${CC} ${CFLAGS} $< -o $@ ${LDFLAGS}
${LN} -sf $@ samefile.alt
# data files
#
data: ${DATA}
+2 -3
View File
@@ -54,11 +54,10 @@ If you wish to change the size to say, 55555:
```sh
make clobber CDEFINE="-DSZ=55555" alt
make clobber SIZE=55555 alt
```
or whatever you wish to redefine it to. See [alternate code](#alternate-code)
below.
or whatever you wish to redefine it to.
## Judges' remarks: