diff --git a/.gitignore b/.gitignore index bfe9ead..ad566f6 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,4 @@ binsearch test-inline-assembly test-inline-assembly.s uiowa-threads-example +tags diff --git a/Makefile b/Makefile index a018bd4..783f37f 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ CFLAGS=-std=c99 -Wextra -pedantic -g -O2 TARGETS=approximate-pi linked-list mandelbrot threads circular-buffer structs ncurses-pong bit-fuckery bit-fuckery2 checkcheck multibrot bloom wo-lernen lua-foo binsearch test-inline-assembly uiowa-threads-example -EXTRAS=mandelbrot.bmp multibrot.png test-inline-assembly.s +EXTRAS=mandelbrot.bmp multibrot.png test-inline-assembly.s tags .PHONY: all all: $(TARGETS) $(EXTRAS) @@ -17,6 +17,9 @@ cppcheck.txt: *.c *.h cppcheck . 2> $@ cat $@ +tags: *.c + ctags -R . + mandelbrot: mandelbrot.c $(CC) $(CFLAGS) $(shell sdl-config --cflags) -o $@ $< $(shell sdl-config --libs) -lm