|
|
@ -1,7 +1,7 @@
|
|
|
|
CFLAGS=-std=c99 -Wextra -pedantic -g -O2
|
|
|
|
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
|
|
|
|
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
|
|
|
|
.PHONY: all
|
|
|
|
all: $(TARGETS) $(EXTRAS)
|
|
|
|
all: $(TARGETS) $(EXTRAS)
|
|
|
@ -17,6 +17,9 @@ cppcheck.txt: *.c *.h
|
|
|
|
cppcheck . 2> $@
|
|
|
|
cppcheck . 2> $@
|
|
|
|
cat $@
|
|
|
|
cat $@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tags: *.c
|
|
|
|
|
|
|
|
ctags -R .
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|