2008-04-06 11:47:25 +02:00
|
|
|
SRCS=CheckBufferOverrun.cpp CheckClass.cpp CheckHeaders.cpp CheckMemoryLeak.cpp CheckOther.cpp CommonCheck.cpp tokenize.cpp
|
2007-07-17 08:15:50 +02:00
|
|
|
OBJS=$(SRCS:%.cpp=%.o)
|
|
|
|
|
2007-05-26 08:42:31 +02:00
|
|
|
|
2007-07-17 08:15:50 +02:00
|
|
|
%.o: %.cpp
|
2008-02-16 16:46:32 +01:00
|
|
|
g++ -Wall -pedantic -g -I. -o $@ -c $^
|
2007-05-26 08:42:31 +02:00
|
|
|
|
2007-07-17 08:15:50 +02:00
|
|
|
all: ${OBJS} main.o
|
2008-02-16 16:46:32 +01:00
|
|
|
g++ -Wall -g -o cppcheck $^
|
2008-08-23 18:40:53 +02:00
|
|
|
test: ${OBJS} TestsRunner.o MiniCppUnit.o testmemleak.o testbufferoverrun.o testdivision.o
|
2008-08-21 19:32:34 +02:00
|
|
|
g++ -Wall -g -o testsrunner $^
|
2007-07-17 08:15:50 +02:00
|
|
|
clean:
|
|
|
|
rm -f *.o cppcheck_test cppcheck
|