Get 1984/lycklama to compile
To get it to compile we have to pass to the compiler -include unistd.h. To get it to compile without warnings we had to add -Wno-parentheses to the compiler invocation. Updated the README to include an example invocation (using the program source itself) as the old way no longer works (typing in long lines directly). Removed some comments that turn out to not be true (it does not need a K&R compiler for instance).
This commit is contained in:
1 parent
c7ab84305a
commit
e8eaf9ebd9
4 files changed
+22
-19
No files matched your search
@@ -340,7 +340,7 @@ CWARN= -Wall -Wextra -pedantic ${CSILENCE}
|
||||
|
||||
# Silence warnings that ${CWARN} would normally complain about
|
||||
#
|
||||
CSILENCE= -Wno-implicit-int -Wno-unused-value
|
||||
CSILENCE= -Wno-implicit-int -Wno-unused-value -Wno-parentheses
|
||||
#CSILENCE= -Wno-implicit-int
|
||||
|
||||
# compiler standard
|
||||
@@ -368,7 +368,7 @@ CDEFINE=
|
||||
|
||||
# include files that are needed to compile
|
||||
#
|
||||
CINCLUDE=
|
||||
CINCLUDE=-include unistd.h
|
||||
#CINCLUDE= -include stdlib.h
|
||||
#CINCLUDE= -include stdio.h
|
||||
#CINCLUDE= -include stdlib.h -include stdio.h
|
||||
@@ -442,7 +442,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 modern compilers."
|
||||
${CC} ${CFLAGS} $< -o $@ ${LIBS}
|
||||
|
||||
# alternative executable
|
||||
|
||||
Reference in new issue
Block a user