2007-07-17 08:15:50 +02:00
|
|
|
SRCS=CheckBufferOverrun.cpp CheckClass.cpp CheckHeaders.cpp CheckMemoryLeak.cpp CheckOther.cpp CommonCheck.cpp Statements.cpp test.cpp tokenize.cpp
|
|
|
|
OBJS=$(SRCS:%.cpp=%.o)
|
|
|
|
|
2007-05-26 08:42:31 +02:00
|
|
|
|
2007-07-17 08:15:50 +02:00
|
|
|
%.o: %.cpp
|
|
|
|
gxx -Wall -pedantic -I. -o $@ -c $^
|
2007-05-26 08:42:31 +02:00
|
|
|
|
2007-07-17 08:15:50 +02:00
|
|
|
all: ${OBJS} main.o
|
|
|
|
gxx -o cppcheck $^
|
|
|
|
test: ${OBJS} TestTok.o
|
|
|
|
gxx -o cppcheck_test $^
|
|
|
|
clean:
|
|
|
|
rm -f *.o cppcheck_test cppcheck
|