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