cppcheck/Makefile

18 lines
693 B
Makefile
Raw Normal View History

SRCS=CheckBufferOverrun.cpp CheckClass.cpp CheckHeaders.cpp CheckMemoryLeak.cpp CheckOther.cpp CommonCheck.cpp FileLister.cpp preprocessor.cpp tokenize.cpp
OBJS=$(SRCS:%.cpp=%.o)
2008-11-08 14:14:16 +01:00
TESTS=testbufferoverrun.o testcharvar.o testconstructors.o testdivision.o testincompletestatement.o testmemleak.o testpreprocessor.o testtokenize.o testunusedprivfunc.o testunusedvar.o
BIN = ${DESTDIR}/usr/bin
%.o: %.cpp
2008-02-16 16:46:32 +01:00
g++ -Wall -pedantic -g -I. -o $@ -c $^
all: ${OBJS} main.o
2008-02-16 16:46:32 +01:00
g++ -Wall -g -o cppcheck $^
test: ${OBJS} testrunner.o testsuite.o ${TESTS}
g++ -Wall -g -o testrunner $^
clean:
rm -f *.o testrunner cppcheck
install: cppcheck
install -d ${BIN}
install cppcheck ${BIN}