Fix 1998/fanf for Linux

The C pre-processing stages of the build failed in Linux so instead of
having those steps fanf.c became what was the code that was compiled.
Now it works with both macOS and Linux. This fix required changes to
fanf.c and also the Makefile.

I also removed the address from the README.md file as well.
This commit is contained in:
Cody Boone Ferguson committed 2023-07-06 06:14:06 -07:00
1 parent e0d4b98655
commit 5daa925803
4 files changed
+86 -92

No files matched your search

+3 -7
View File
@@ -38,7 +38,7 @@ include ../../var.mk
# Common C compiler warnings to silence
#
CSILENCE= -Wno-pointer-bool-conversion -Wno-unused-parameter -Wno-main
CSILENCE= -Wno-pointer-bool-conversion -Wno-unused-parameter -Wno-main -Wno-implicit-function-declaration
# Common C compiler warning flags
#
@@ -129,12 +129,8 @@ all: data ${TARGET}
supernova deep_magic magic charon pluto
${PROG}: ${PROG}.c
${RM} -f ${PROG}tmp1.c
${CC} ${CFLAGS} -E $< > ${PROG}tmp1.c
${RM} -f ${PROG}tmp2.c
${CC} ${CFLAGS} -E ${PROG}tmp1.c > ${PROG}tmp2.c
@echo This next compile may take a whie to complete
${CC} ${CFLAGS} ${PROG}tmp2.c ${LIBS} -o $@
@echo This might take a while to complete.
${CC} ${CFLAGS} ${PROG}.c ${LIBS} -o $@
# alternative executable
#