aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile14
1 files changed, 13 insertions, 1 deletions
diff --git a/makefile b/makefile
index 6aa3232..2ca7100 100644
--- a/makefile
+++ b/makefile
@@ -1,4 +1,4 @@
-CC := gcc
+CC := gcc-13
CPPFLAGS := #-DEXTENDED_PRECISION
CFLAGS := -Wall -O3 -march=native
LDFLAGS := -lm
@@ -48,6 +48,18 @@ $(OBJ_DIR)/%.o: $(SRC_DIR)/%.c | $(OBJ_DIR)
$(OBJ_DIR):
mkdir -p $@
+###########
+# Tests #
+###########
+
+examples/mandelbrot_%.grid: $(BUILD_DIR)/%-fractals
+ $< -x 100 -y 100 -o $@
+
+tests/mandelbrot: examples/mandelbrot_serial.grid examples/mandelbrot_shared.grid examples/mandelbrot_cuda.grid
+ cmp -l $< $(word 2, $^) > $@
+ cmp -l $(word 2, $^) $(word 3, $^) >> $@
+ cmp -l $(word 3, $^) $< >> $@
+
################
# Animations #
################