Small update to change notes in Makefile.

This commit is contained in:
Dalton Woodard
2014-10-14 23:21:03 -07:00
parent bd9e5d98d6
commit ff36156283

View File

@@ -1,16 +1,12 @@
# change notes:
# filter out -Werror when compiling with gcc. It chooses to warn about strange things sometimes.
# Compiles will all flags below on clang with -Werror.
# filter out -Werror when compiling ptest. GCC chooses to warn about strange things sometimes.
# mpc.c and mpc.h ompile will all flags below on clang and gcc with -Werror.
CC = gcc
CFLAGS = -std=c11 -O3 -g -Wall -Wextra -Wformat=2 -Wshadow \
CFLAGS = -std=c11 -O3 -g -Werror -Wall -Wextra -Wformat=2 -Wshadow \
-Wno-format-nonliteral -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wold-style-definition \
-Wredundant-decls -Wnested-externs -Wmissing-include-dirs -Wswitch-default
ifneq ($(CC),gcc)
$(CFLAGS) += -Werror
endif
TESTS = $(wildcard tests/*.c)
EXAMPLES = $(wildcard examples/*.c)
EXAMPLESEXE = $(EXAMPLES:.c=)