make effc compilation optional

This commit is contained in:
Lee Thomason 2017-10-11 10:13:35 -07:00
parent 7abfa6b1a0
commit 8b83b23876
1 changed files with 7 additions and 7 deletions

View File

@ -1,16 +1,16 @@
# Extended C++ warning policy
CXXFLAGS += -Werror -Wall -Wextra -Wshadow -Wpedantic -Wformat-nonliteral \
-Wformat-security -Wswitch-default -Wuninitialized -Wundef \
-Wpointer-arith -Woverloaded-virtual -Wctor-dtor-privacy \
-Wnon-virtual-dtor -Woverloaded-virtual -Wsign-promo \
-Wno-unused-parameter -Weffc++
all: xmltest staticlib all: xmltest staticlib
rebuild: clean all rebuild: clean all
xmltest: xmltest.cpp libtinyxml2.a xmltest: xmltest.cpp libtinyxml2.a
effc:
gcc -Werror -Wall -Wextra -Wshadow -Wpedantic -Wformat-nonliteral \
-Wformat-security -Wswitch-default -Wuninitialized -Wundef \
-Wpointer-arith -Woverloaded-virtual -Wctor-dtor-privacy \
-Wnon-virtual-dtor -Woverloaded-virtual -Wsign-promo \
-Wno-unused-parameter -Weffc++ xmltest.cpp tinyxml2.cpp -o xmltest
clean: clean:
$(RM) *.o xmltest libtinyxml2.a $(RM) *.o xmltest libtinyxml2.a