aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDavid Phillips <dbphillipsnz@gmail.com>2015-06-06 23:11:34 +1200
committerDavid Phillips <dbphillipsnz@gmail.com>2015-06-06 23:11:34 +1200
commit7b5eb54e54aad01383912d2e67b996402eb9a602 (patch)
treef26e094dc944fb13a9035ad7c3d77e62d36c0e44 /Makefile
parenta157d1890add21eceddae2adee6213f302bc1bd2 (diff)
downloadfractal-gen-7b5eb54e54aad01383912d2e67b996402eb9a602.tar.xz
Updated Makefile, added missing files
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index ffb0d46..57124c3 100644
--- a/Makefile
+++ b/Makefile
@@ -4,8 +4,11 @@ symlinks: fractal-gen
ln -sf $< mbrot-gen
ln -sf $< bship-gen
-fractal-gen: fractal-gen.c
- $(CC) -o $@ $< -lm -lpthread -Wall -Wextra -Werror
+fractal-gen: fractal-gen.o mbrot.o bship.o
+ $(CC) -o $@ $? -lm -lpthread
+
+%.o: %.c
+ $(CC) -c -o $@ $< -Wall -Wextra -Werror
.PHONY: all clean
@@ -13,4 +16,5 @@ clean:
rm fractal-gen \
mbrot-gen \
bship-gen \
+ *.o \
-f