aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/makefile
diff options
context:
space:
mode:
authorJP Appel <jeanpierre.appel01@gmail.com>2024-04-29 11:17:29 -0400
committerJP Appel <jeanpierre.appel01@gmail.com>2024-04-29 11:17:29 -0400
commitcb38a4184f55b7d6d89913e86601d02eaba706ff (patch)
tree70a89be0927b922161f084d132e09992953e394e /makefile
parent150d5cb448cb6ed428bcff795a428510884b4831 (diff)
fixed .gitignore to include analysis
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 #
################