From 5efde1e3e65af769cb629d55f0a4dd4f87caebe9 Mon Sep 17 00:00:00 2001 From: Charles Date: Fri, 20 Sep 2019 16:01:46 +0200 Subject: 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 --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Makefile') 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 -- cgit