try cppcheck
This commit is contained in:
parent
dd222ae958
commit
aa891b6edb
2 changed files with 9 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,6 +1,7 @@
|
|||
*~
|
||||
.*.swp
|
||||
*.o
|
||||
cppcheck.txt
|
||||
approximate-pi
|
||||
linked-list
|
||||
mandelbrot
|
||||
|
|
9
Makefile
9
Makefile
|
@ -9,7 +9,14 @@ all: $(TARGETS) $(EXTRAS)
|
|||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
rm -f $(TARGETS) $(EXTRAS) *.o *~
|
||||
rm -f $(TARGETS) $(EXTRAS) *.o *~ cppcheck.txt
|
||||
|
||||
.PHONY: cppcheck
|
||||
cppcheck: cppcheck.txt
|
||||
|
||||
cppcheck.txt: *.c *.h
|
||||
cppcheck . 2> $@
|
||||
cat $@
|
||||
|
||||
mandelbrot: mandelbrot.c
|
||||
$(CC) $(CFLAGS) $(shell sdl-config --cflags) -o $@ $< $(shell sdl-config --libs) -lm
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue