@ -1,6 +1,7 @@
*~
.*.swp
*.o
cppcheck.txt
approximate-pi
linked-list
mandelbrot
@ -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