aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/makefile
diff options
context:
space:
mode:
authorJP Appel <jeanpierre.appel01@gmail.com>2024-04-30 06:46:31 -0400
committerJP Appel <jeanpierre.appel01@gmail.com>2024-04-30 06:46:31 -0400
commit3efffb9ca98303487cf091447c7ba3fba3c71df8 (patch)
tree466e31da0487c6b6ba8d90a7e6c206805942b3af /makefile
parent05ba9a3fc30878dcabbbe02929f24da189008293 (diff)
finishing changes to presentation
Diffstat (limited to 'makefile')
-rw-r--r--makefile20
1 files changed, 16 insertions, 4 deletions
diff --git a/makefile b/makefile
index 8fc8abd..8a73420 100644
--- a/makefile
+++ b/makefile
@@ -48,19 +48,31 @@ $(OBJ_DIR)/%.o: $(SRC_DIR)/%.c | $(OBJ_DIR)
$(OBJ_DIR):
mkdir -p $@
-###########
-# Tests #
-###########
+####################
+# Tests/Examples #
+###################
examples/julia.png: examples/julia.grid $(BUILD_DIR)/fractal-render
$(BUILD_DIR)/fractal-render -i $< -r png -o $@
+examples/multicorn.gif: examples/multicorn_framelist
+ $(BUILD_DIR)/fractal-render -i $< -d 80 -r gif -o $@
+
+examples/multicorn_framelist: examples/multicorn_2.grid examples/multicorn_3.grid examples/multicorn_4.grid examples/multicorn_5.grid
+ @echo $< > $@
+ @echo $(word 2, $^) >> $@
+ @echo $(word 3, $^) >> $@
+ @echo $(word 4, $^) >> $@
+
examples/julia.grid: $(BUILD_DIR)/shared-fractals
- $< -c 0.285+0.01i -i 255 -r 2 -x 8192 -y 8192 -o $@ -f julia
+ $< -c 0.285+0.01i -i 155 -r 2 -x 8192 -y 8192 -o $@ -f julia
examples/mandelbrot_%.grid: $(BUILD_DIR)/%-fractals
$< -x 100 -y 100 -o $@
+examples/multicorn_%.grid: $(BUILD_DIR)/shared-fractals
+ $< -x1000 -y1000 -i50 -d $* -o $@ -f multicorn
+
tests/mandelbrot: examples/mandelbrot_serial.grid examples/mandelbrot_shared.grid examples/mandelbrot_cuda.grid
cmp -l $< $(word 2, $^) > $@
cmp -l $(word 2, $^) $(word 3, $^) >> $@