cppcheck/Makefile

14 lines
383 B
Makefile
Raw Normal View History

SRCS=CheckBufferOverrun.cpp CheckClass.cpp CheckHeaders.cpp CheckMemoryLeak.cpp CheckOther.cpp CommonCheck.cpp Statements.cpp tokenize.cpp
OBJS=$(SRCS:%.cpp=%.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 $^
test: ${OBJS} tests.o
g++ -Wall -g -o cppcheck_test $^
clean:
rm -f *.o cppcheck_test cppcheck