Makefile: Applied changes suggested by Reijo
This commit is contained in:
parent
0dc9235f4f
commit
0185f32bee
4
Makefile
4
Makefile
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue