From cb38a4184f55b7d6d89913e86601d02eaba706ff Mon Sep 17 00:00:00 2001 From: JP Appel Date: Mon, 29 Apr 2024 11:17:29 -0400 Subject: fixed .gitignore to include analysis --- makefile | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'makefile') 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 # ################ -- cgit v1.2.3