Skip to content

Commit 6f2bbc0

Browse files
committed
1.52: Updated Makefile
1 parent f58d023 commit 6f2bbc0

File tree

1 file changed

+4
-33
lines changed

1 file changed

+4
-33
lines changed

Makefile

Lines changed: 4 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -5,37 +5,8 @@ ifndef HAVE_RULES
55
HAVE_RULES=no
66
endif
77

8-
ifndef COMSPEC
9-
ifdef ComSpec
10-
#### ComSpec is defined on some WIN32's.
11-
COMSPEC=$(ComSpec)
12-
endif # ComSpec
13-
endif # COMSPEC
14-
15-
ifdef COMSPEC
16-
#### Maybe Windows
17-
ifndef CPPCHK_GLIBCXX_DEBUG
18-
CPPCHK_GLIBCXX_DEBUG=
19-
endif # !CPPCHK_GLIBCXX_DEBUG
20-
else # !COMSPEC
21-
uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not')
22-
23-
ifeq ($(uname_S),Linux)
24-
ifndef CPPCHK_GLIBCXX_DEBUG
25-
CPPCHK_GLIBCXX_DEBUG=-D_GLIBCXX_DEBUG
26-
endif # !CPPCHK_GLIBCXX_DEBUG
27-
endif # Linux
28-
29-
ifeq ($(uname_S),GNU/kFreeBSD)
30-
ifndef CPPCHK_GLIBCXX_DEBUG
31-
CPPCHK_GLIBCXX_DEBUG=-D_GLIBCXX_DEBUG
32-
endif # !CPPCHK_GLIBCXX_DEBUG
33-
endif # GNU/kFreeBSD
34-
35-
endif # COMSPEC
36-
378
ifndef CXXFLAGS
38-
CXXFLAGS=-pedantic -Wall -Wextra -Wabi -Wcast-qual -Wfloat-equal -Winline -Wmissing-declarations -Wmissing-format-attribute -Wno-long-long -Woverloaded-virtual -Wpacked -Wredundant-decls -Wshadow -Wsign-promo $(CPPCHK_GLIBCXX_DEBUG) -g
9+
CXXFLAGS=-O2 -DNDEBUG -Wall
3910
endif
4011

4112
ifeq ($(HAVE_RULES),yes)
@@ -208,7 +179,7 @@ install: cppcheck
208179
lib/check64bit.o: lib/check64bit.cpp lib/check64bit.h lib/check.h lib/token.h lib/tokenize.h lib/settings.h lib/suppressions.h lib/standards.h lib/errorlogger.h lib/symboldatabase.h lib/mathlib.h
209180
$(CXX) $(CPPFLAGS) $(CXXFLAGS) ${INCLUDE_FOR_LIB} -c -o lib/check64bit.o lib/check64bit.cpp
210181

211-
lib/checkassignif.o: lib/checkassignif.cpp lib/checkassignif.h lib/check.h lib/token.h lib/tokenize.h lib/settings.h lib/suppressions.h lib/standards.h lib/errorlogger.h lib/symboldatabase.h lib/mathlib.h
182+
lib/checkassignif.o: lib/checkassignif.cpp lib/checkassignif.h lib/check.h lib/token.h lib/tokenize.h lib/settings.h lib/suppressions.h lib/standards.h lib/errorlogger.h lib/mathlib.h lib/symboldatabase.h
212183
$(CXX) $(CPPFLAGS) $(CXXFLAGS) ${INCLUDE_FOR_LIB} -c -o lib/checkassignif.o lib/checkassignif.cpp
213184

214185
lib/checkautovariables.o: lib/checkautovariables.cpp lib/checkautovariables.h lib/check.h lib/token.h lib/tokenize.h lib/settings.h lib/suppressions.h lib/standards.h lib/errorlogger.h lib/symboldatabase.h lib/mathlib.h
@@ -223,7 +194,7 @@ lib/checkbufferoverrun.o: lib/checkbufferoverrun.cpp lib/checkbufferoverrun.h li
223194
lib/checkclass.o: lib/checkclass.cpp lib/checkclass.h lib/check.h lib/token.h lib/tokenize.h lib/settings.h lib/suppressions.h lib/standards.h lib/errorlogger.h lib/symboldatabase.h lib/mathlib.h
224195
$(CXX) $(CPPFLAGS) $(CXXFLAGS) ${INCLUDE_FOR_LIB} -c -o lib/checkclass.o lib/checkclass.cpp
225196

226-
lib/checkexceptionsafety.o: lib/checkexceptionsafety.cpp lib/checkexceptionsafety.h lib/check.h lib/token.h lib/tokenize.h lib/settings.h lib/suppressions.h lib/standards.h lib/errorlogger.h
197+
lib/checkexceptionsafety.o: lib/checkexceptionsafety.cpp lib/checkexceptionsafety.h lib/check.h lib/token.h lib/tokenize.h lib/settings.h lib/suppressions.h lib/standards.h lib/errorlogger.h lib/symboldatabase.h lib/mathlib.h
227198
$(CXX) $(CPPFLAGS) $(CXXFLAGS) ${INCLUDE_FOR_LIB} -c -o lib/checkexceptionsafety.o lib/checkexceptionsafety.cpp
228199

229200
lib/checkinternal.o: lib/checkinternal.cpp lib/checkinternal.h lib/check.h lib/token.h lib/tokenize.h lib/settings.h lib/suppressions.h lib/standards.h lib/errorlogger.h lib/symboldatabase.h lib/mathlib.h
@@ -319,7 +290,7 @@ test/options.o: test/options.cpp test/options.h
319290
test/test64bit.o: test/test64bit.cpp lib/tokenize.h lib/check64bit.h lib/check.h lib/token.h lib/settings.h lib/suppressions.h lib/standards.h lib/errorlogger.h test/testsuite.h test/redirect.h
320291
$(CXX) $(CPPFLAGS) $(CXXFLAGS) ${INCLUDE_FOR_TEST} -c -o test/test64bit.o test/test64bit.cpp
321292

322-
test/testassignif.o: test/testassignif.cpp lib/tokenize.h lib/checkassignif.h lib/check.h lib/token.h lib/settings.h lib/suppressions.h lib/standards.h lib/errorlogger.h test/testsuite.h test/redirect.h
293+
test/testassignif.o: test/testassignif.cpp lib/tokenize.h lib/checkassignif.h lib/check.h lib/token.h lib/settings.h lib/suppressions.h lib/standards.h lib/errorlogger.h lib/mathlib.h test/testsuite.h test/redirect.h
323294
$(CXX) $(CPPFLAGS) $(CXXFLAGS) ${INCLUDE_FOR_TEST} -c -o test/testassignif.o test/testassignif.cpp
324295

325296
test/testautovariables.o: test/testautovariables.cpp lib/tokenize.h lib/checkautovariables.h lib/check.h lib/token.h lib/settings.h lib/suppressions.h lib/standards.h lib/errorlogger.h test/testsuite.h test/redirect.h

0 commit comments

Comments
 (0)