cppcheck/Makefile

14 lines
480 B
Makefile
Raw Normal View History

2008-04-06 11:47:25 +02:00
SRCS=CheckBufferOverrun.cpp CheckClass.cpp CheckHeaders.cpp CheckMemoryLeak.cpp CheckOther.cpp CommonCheck.cpp tokenize.cpp
OBJS=$(SRCS:%.cpp=%.o)
2008-08-28 08:36:30 +02:00
TESTS=testbufferoverrun.o testcharvar.o testconstructors.o testdivision.o testmemleak.o
%.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 $^
2008-08-24 08:47:33 +02:00
test: ${OBJS} TestsRunner.o MiniCppUnit.o ${TESTS}
g++ -Wall -g -o testsrunner $^
clean:
rm -f *.o cppcheck_test cppcheck