changed recently updated Makefiles to use -std=gnu17

This commit is contained in:
Landon Curt Noll committed 2023-03-07 18:38:02 -08:00
1 parent 22abe83330
commit 3947de42cd
5 files changed
+18 -19

No files matched your search

+14 -15
View File
@@ -1,6 +1,6 @@
#!/usr/bin/env make
#
# IOCCC 2018 winning entry /- bellard
# IOCCC 2020 winning entry - endoh1
################################################################################
#
@@ -62,17 +62,15 @@ X11_INCDIR= /opt/X11/include
# Common C compiler warnings to silence
#
#CSILENCE=
CSILENCE= -Wno-error -Wno-implicit-function-declaration -Wno-implicit-int \
-Wno-logical-op-parentheses -Wno-main -Wno-parentheses -Wno-return-type \
-Wno-shift-op-parentheses
CSILENCE=
#CSILENCE= -Wno-implicit-int
# Common C compiler warning flags
#
#CWARN= ${CSILENCE}
#CWARN= -Wall ${CSILENCE}
CWARN= -Wall -Wextra ${CSILENCE}
#CWARN= -Wall -Wextra -pedantic ${CSILENCE}
#CWARN= -Wall -Wextra ${CSILENCE}
CWARN= -Wall -Wextra -pedantic ${CSILENCE}
# Compiler standard
#
@@ -125,8 +123,8 @@ CFLAGS= ${CSTD} ${CWARN} ${ARCH} ${CDEFINE} ${CINCLUDE} ${OPT}
# Libraries needed to build
#
LIBS=
#LIBS= -lm
#LIBS=
LIBS= -lcurses
#LIBS= -L ${X11_LIBDIR} -lX11
#LIBS= -L ${HOMEBREW_PREFIX}/lib -lSDL
@@ -140,9 +138,7 @@ CC= cc
#
ifeq ($(CC),clang)
#
CSILENCE+= -Wno-conditional-uninitialized -Wno-missing-prototypes \
-Wno-missing-variable-declarations -Wno-pedantic \
-Wno-poison-system-directories -Wno-strict-prototypes
#CSILENCE+=
#
CWARN+= -Weverything
#
@@ -163,15 +159,15 @@ endif
# Special flags for this entry
##############################
#
ENTRY= bellard
ENTRY= endoh1
PROG= prog
#
OBJ= ${PROG}.o
DATA=
TARGET= ${PROG}
#
ALT_OBJ=
ALT_TARGET=
ALT_OBJ= ${PROG}.alt.o
ALT_TARGET= ${PROG}.alt
#################
@@ -188,6 +184,9 @@ all: data ${TARGET}
${PROG}: ${PROG}.c
${CC} ${CFLAGS} $< -o $@ ${LIBS}
${PROG}.alt: ${PROG}.alt.c
${CC} ${CFLAGS} $< -o $@ ${LIBS}
# alternative executable
#
alt: data ${ALT_TARGET}
+1 -1
View File
@@ -76,7 +76,7 @@ CWARN= -Wall -Wextra -pedantic ${CSILENCE}
#
#CSTD=
#CSTD= -ansi
CSTD= -std=gnu90
CSTD= -std=gnu17
# Compiler bit architecture
#
+1 -1
View File
@@ -76,7 +76,7 @@ CWARN= -Wall -Wextra -pedantic ${CSILENCE}
#
#CSTD=
#CSTD= -ansi
CSTD= -std=gnu90
CSTD= -std=gnu17
# Compiler bit architecture
#
+1 -1
View File
@@ -76,7 +76,7 @@ CWARN= -Wall -Wextra -pedantic ${CSILENCE}
#
#CSTD=
#CSTD= -ansi
CSTD= -std=gnu90
CSTD= -std=gnu17
# Compiler bit architecture
#
+1 -1
View File
@@ -76,7 +76,7 @@ CWARN= -Wall -Wextra -pedantic ${CSILENCE}
#
#CSTD=
#CSTD= -ansi
CSTD= -std=gnu90
CSTD= -std=gnu17
# Compiler bit architecture
#