Make progress in 1989/westley - alt code now main
The code that was the alt code now works entirely with gcc! The ver2 and ver3 do not yet work with clang but the other versions do so it seems appropriate to make this the main version and remove the alt code and alt scripts. I will continue to work on this in between the README.md files but this feels like great progress and as it was all I felt up to at this time it is definitely worth the effort and time.
This commit is contained in:
1 parent
f04b9b695d
commit
eb9e69fde6
6 files changed
+40
-120
No files matched your search
+5
-26
@@ -60,7 +60,7 @@ ARCH=
|
||||
|
||||
# Defines that are needed to compile
|
||||
#
|
||||
CDEFINE= -Dtrgpune=putchar -Dpune=char -Dvag=int
|
||||
CDEFINE= -Dtrgpune=putchar -Dpune=char -Dvag=int -Dznva=main
|
||||
|
||||
# Include files that are needed to compile
|
||||
#
|
||||
@@ -115,8 +115,8 @@ OBJ= ${PROG}.o
|
||||
DATA=
|
||||
TARGET= ${PROG}
|
||||
#
|
||||
ALT_OBJ= ${PROG}.alt.o
|
||||
ALT_TARGET= ${PROG}.alt
|
||||
ALT_OBJ=
|
||||
ALT_TARGET=
|
||||
|
||||
|
||||
#################
|
||||
@@ -140,9 +140,6 @@ ${PROG}: ${PROG}.c
|
||||
alt: data ${ALT_TARGET}
|
||||
@${TRUE}
|
||||
|
||||
${ALT_TARGET}: ${PROG}.alt.c
|
||||
${CC} ${CFLAGS} -Dznva=main $< -o $@ ${LDFLAGS}
|
||||
|
||||
ver0: ${PROG}
|
||||
-./${PROG} < westley.c > ver0.c
|
||||
-${CC} ${CFLAGS} ver0.c -o $@ ${LDFLAGS}
|
||||
@@ -155,30 +152,12 @@ ver1: ${PROG}
|
||||
ver2: ${PROG}
|
||||
-./${PROG} 1 2 < westley.c > ver2.c
|
||||
@echo "** NOTE: this version will not compile with clang **"
|
||||
-${CC} ${CFLAGS} ver2.c -o $@ ${LDFLAGS}
|
||||
-${CC} ${CFLAGS} -Uznva ver2.c -o $@ ${LDFLAGS}
|
||||
|
||||
ver3: ${PROG}
|
||||
-./${PROG} 1 2 3 < westley.c > ver3.c
|
||||
@echo "** NOTE: this version will not compile with clang **"
|
||||
-${CC} ${CFLAGS} ver3.c -o $@ ${LDFLAGS}
|
||||
|
||||
alt.ver0: ${PROG}.alt
|
||||
-./${PROG}.alt < westley.alt.c > alt.ver0.c
|
||||
-${CC} ${CFLAGS} -Dznva=main alt.ver0.c -o $@ ${LDFLAGS}
|
||||
|
||||
alt.ver1: ${PROG}.alt
|
||||
-./${PROG}.alt 1 < westley.alt.c > alt.ver1.c
|
||||
-${CC} ${CFLAGS} -Dznva=main alt.ver1.c -o $@ ${LDFLAGS}
|
||||
|
||||
alt.ver2: ${PROG}.alt
|
||||
-./${PROG}.alt 1 2 < westley.alt.c > alt.ver2.c
|
||||
@echo "** NOTE: this alt version will not currently compile **"
|
||||
-${CC} ${CFLAGS} -Dznva=main alt.ver2.c -o $@ ${LDFLAGS}
|
||||
|
||||
alt.ver3: ${PROG}.alt
|
||||
-./${PROG}.alt 1 2 3 < westley.alt.c > alt.ver3.c
|
||||
@echo "** NOTE: this alt version will not currently compile **"
|
||||
-${CC} ${CFLAGS} -Dznva=main alt.ver3.c -o $@ ${LDFLAGS}
|
||||
-${CC} ${CFLAGS} -Uznva ver3.c -o $@ ${LDFLAGS}
|
||||
|
||||
|
||||
# data files
|
||||
|
||||
Reference in new issue
Block a user