aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDavid Phillips <dbphillipsnz@gmail.com>2015-06-09 22:11:04 +1200
committerDavid Phillips <dbphillipsnz@gmail.com>2015-06-10 00:11:18 +1200
commit70b7e36de4a9db760c254b8f22d91ea4e6ddc9d8 (patch)
treee9a7d2666fb2a088b8913e6b851edeca251d1f64 /Makefile
parentd29cb84f52f93e060c2ec0f020f56fea0636428d (diff)
downloadfractal-gen-70b7e36de4a9db760c254b8f22d91ea4e6ddc9d8.tar.xz
Made it easier to add new algos, added tricorn algo, burning ship lattice ship algo
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 15 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 2155733..0162825 100644
--- a/Makefile
+++ b/Makefile
@@ -1,20 +1,28 @@
all: fractal-gen symlinks
symlinks: fractal-gen
- ln -sf $< mbrot-gen
- ln -sf $< bship-gen
+ ln -sf $< mandelbrot-gen
+ ln -sf $< burning-ship-gen
+ ln -sf $< burning-ship-lattice-gen
+ ln -sf $< tricorn-gen
+
+fractal-gen: fractal-gen.o \
+ algorithms/mandelbrot.o \
+ algorithms/burning-ship.o \
+ algorithms/burning-ship-lattice.o \
+ algorithms/tricorn.o
-fractal-gen: fractal-gen.o mbrot.o bship.o
$(CC) -o $@ $^ -lm -lpthread
%.o: %.c
$(CC) -c -o $@ $< -Wall -Wextra -Werror
-
.PHONY: all clean symlinks
clean:
rm fractal-gen \
- mbrot-gen \
- bship-gen \
- *.o \
+ mandelbrot-gen \
+ burning-ship-gen \
+ burning-ship-lattice-gen \
+ tricorn-gen \
+ **/*.o \
-f