Makefile: Applied changes suggested by Reijo

This commit is contained in:
Daniel Marjamäki 2008-11-01 17:12:05 +00:00
parent 0dc9235f4f
commit 0185f32bee
1 changed files with 4 additions and 0 deletions

View File

@ -1,6 +1,7 @@
SRCS=CheckBufferOverrun.cpp CheckClass.cpp CheckHeaders.cpp CheckMemoryLeak.cpp CheckOther.cpp CommonCheck.cpp preprocessor.cpp tokenize.cpp
OBJS=$(SRCS:%.cpp=%.o)
TESTS=testbufferoverrun.o testcharvar.o testconstructors.o testdivision.o testmemleak.o testother.o testpreprocessor.o testunusedvar.o
BIN = ${DESTDIR}/usr/bin
%.o: %.cpp
g++ -Wall -pedantic -g -I. -o $@ -c $^
@ -11,3 +12,6 @@ test: ${OBJS} testrunner.o testsuite.o ${TESTS}
g++ -Wall -g -o testrunner $^
clean:
rm -f *.o cppcheck_test cppcheck
install: cppcheck
install -d ${BIN}
install cppcheck ${BIN}