aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2019-09-20 16:01:46 +0200
committerCharles <sircharlesaze@gmail.com>2019-09-20 16:01:46 +0200
commit5efde1e3e65af769cb629d55f0a4dd4f87caebe9 (patch)
tree88c685fad561e39fac869a36a93e98866e2ccb62 /Makefile
parent95b209426dd7a9f844cf1aa093a2b1c4301f049b (diff)
downloadmandelbrot_cpu-5efde1e3e65af769cb629d55f0a4dd4f87caebe9.tar.gz
mandelbrot_cpu-5efde1e3e65af769cb629d55f0a4dd4f87caebe9.tar.bz2
mandelbrot_cpu-5efde1e3e65af769cb629d55f0a4dd4f87caebe9.zip
Parallel computation, pixel array
- All the pixels are stored in an array, put in a surface then a texture so we don't draw each pixel one by one. - The computation of this array is done in parallel (one thread by line) - Use sscanf instead of atoi hack to parse options
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 904f534..85660a0 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
NAME = mandel
CC = gcc
CCFLAGS = -Wall -Wextra
-LDFLAGS = $(shell sdl2-config --libs --cflags)
+LDFLAGS = -lpthread $(shell sdl2-config --libs --cflags)
HEADER = header.h
SRC = main.c graphics.c mandelbrot.c helper.c
@@ -19,7 +19,7 @@ $(NAME): $(OBJ)
$(CC) $(LDFLAGS) $(CCFLAGS) -c -o $@ $<
.PHONY: debug
-debug: CCFLAGS += -g
+debug: CCFLAGS += -g -fsanitize=address
debug: re
.PHONY: clean