aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDavid Phillips <dbphillipsnz@gmail.com>2016-09-20 01:03:51 +1200
committerDavid Phillips <dbphillipsnz@gmail.com>2016-09-20 01:03:51 +1200
commit086e49a701debe24c0e8547fb0db2d08e12e1e14 (patch)
treea6a3492f39e5e91a96315f46df1505785fb2264a /Makefile
parent5ed1f38b2f515c6cebd8386de44c13a2b120c878 (diff)
downloadfractal-gen-086e49a701debe24c0e8547fb0db2d08e12e1e14.tar.xz
Add header files as dependencies to object filesmakefile-fix
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index a2f4358..0a60968 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,9 @@
CFLAGS += -Wall -Wextra -Werror
LDFLAGS += -lm -lpthread
+
+HEADERS = generator.h algorithms.h fractal-gen.h
+
+
all: fractal-gen symlinks
symlinks: fractal-gen
@@ -10,6 +14,8 @@ fractal-gen: fractal-gen.o \
algorithms/mandelbrot.o \
algorithms/burning-ship.o \
+*.o: *.c $(HEADERS)
+ $(CC) -c -o $@ $< $(CFLAGS)
clean: clean-object
rm fractal-gen \