aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-05-22 10:44:49 +0200
committerCharles <sircharlesaze@gmail.com>2020-05-22 10:44:49 +0200
commit6d4c3864e3b742a92e9874f1e4dfe3a9c1565188 (patch)
treea406e7f7d6bdc5210b2133762e39f7bdb396cfff /Makefile
parentc9098d549d63b5fe18d8c95049ba13a5ae6e9eca (diff)
downloadmandelbrot_cpu-6d4c3864e3b742a92e9874f1e4dfe3a9c1565188.tar.gz
mandelbrot_cpu-6d4c3864e3b742a92e9874f1e4dfe3a9c1565188.tar.bz2
mandelbrot_cpu-6d4c3864e3b742a92e9874f1e4dfe3a9c1565188.zip
Added information (iterations, center, time)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index e6c83dc..5ee5d60 100644
--- a/Makefile
+++ b/Makefile
@@ -9,7 +9,8 @@ OBJ_DIR = obj
CC = gcc
OFLAG = -Ofast -funroll-loops -ffast-math
CCFLAGS = -I$(INC_DIR) -Wall -Wextra $(OFLAG)
-LDFLAGS = -lm -lpthread $(shell sdl2-config --libs --cflags)
+LDFLAGS = -lm -lpthread \
+ $(shell pkg-config --libs --cflags sdl2 SDL2_ttf)
INC = $(shell find $(INC_DIR) -type f -name '*.h')
SRC = $(shell find $(SRC_DIR) -type f -name '*.c')
@@ -23,7 +24,7 @@ prebuild:
$(NAME): $(OBJ)
$(CC) -o $@ $(OBJ) $(LDFLAGS)
-$(OBJ_DIR)/%.o: $(SRC_DIR)/%.c $(HEADER)
+$(OBJ_DIR)/%.o: $(SRC_DIR)/%.c $(INC)
$(CC) $(CCFLAGS) -c -o $@ $<
debug: OFLAG = -g