Fixes in 1989/westley

Try and improve the note during compilation that some versions will not
work with some compilers.

Make the other versions alt code. Running make alt will stop on the
first error but I made it alt targets so that make clobber will remove
the compiled files. In order to make it actual targets the Makefile
would have to do more to generate the files and this might or might not
be better.

Format fixes and a typo fix in README.md.
This commit is contained in:
Cody Boone Ferguson committed 2023-07-01 08:23:13 -07:00
1 parent 2d2970dc2b
commit a7f9a722fc
2 files changed
+42 -22

No files matched your search

+20 -3
View File
@@ -113,8 +113,8 @@ OBJ= ${PROG}.o
DATA=
TARGET= ${PROG}
#
ALT_OBJ=
ALT_TARGET=
ALT_OBJ= ver0.o ver1.o ver2.o ver3.o
ALT_TARGET= ver0 ver1 ver2 ver3
#################
@@ -129,7 +129,6 @@ all: data ${TARGET}
supernova deep_magic magic charon pluto
${PROG}: ${PROG}.c
@echo "NOTE: This entry uses non-standard args to main() that do not work with some modern compilers."
${CC} ${CFLAGS} $< -o $@ ${LIBS}
# alternative executable
@@ -137,6 +136,24 @@ ${PROG}: ${PROG}.c
alt: data ${ALT_TARGET}
@${TRUE}
ver0: ver0.c
${CC} ${CFLAGS} $< -o $@ ${LIBS}
ver1: ver1.c
@echo "** NOTE: this version will not compile with clang **"
${CC} ${CFLAGS} $< -o $@ ${LIBS}
@echo "** NOTE: this version will not compile with clang **"
ver2: ver2.c
@echo "** NOTE: this version will not compile with clang **"
${CC} ${CFLAGS} $< -o $@ ${LIBS}
@echo "** NOTE: this version will not compile with clang **"
ver3: ver3.c
@echo "** NOTE: this version will not compile with clang **"
${CC} ${CFLAGS} $< -o $@ ${LIBS}
@echo "** NOTE: this version will not compile with clang **"
# data files
#
data: ${DATA}