diff options
| author | JP Appel <jeanpierre.appel01@gmail.com> | 2024-04-29 11:17:29 -0400 |
|---|---|---|
| committer | JP Appel <jeanpierre.appel01@gmail.com> | 2024-04-29 11:17:29 -0400 |
| commit | cb38a4184f55b7d6d89913e86601d02eaba706ff (patch) | |
| tree | 70a89be0927b922161f084d132e09992953e394e /makefile | |
| parent | 150d5cb448cb6ed428bcff795a428510884b4831 (diff) | |
fixed .gitignore to include analysis
Diffstat (limited to 'makefile')
| -rw-r--r-- | makefile | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -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 # ################ |
