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
|
.*.swp
|
||||||
*.o
|
*.o
|
||||||
|
cppcheck.txt
|
||||||
approximate-pi
|
approximate-pi
|
||||||
linked-list
|
linked-list
|
||||||
mandelbrot
|
mandelbrot
|
||||||
|
|
9
Makefile
9
Makefile
|
@ -9,7 +9,14 @@ all: $(TARGETS) $(EXTRAS)
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
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
|
mandelbrot: mandelbrot.c
|
||||||
$(CC) $(CFLAGS) $(shell sdl-config --cflags) -o $@ $< $(shell sdl-config --libs) -lm
|
$(CC) $(CFLAGS) $(shell sdl-config --cflags) -o $@ $< $(shell sdl-config --libs) -lm
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue