diff options
author | David Phillips <dbphillipsnz@gmail.com> | 2016-09-20 01:03:51 +1200 |
---|---|---|
committer | David Phillips <dbphillipsnz@gmail.com> | 2016-09-20 01:03:51 +1200 |
commit | 086e49a701debe24c0e8547fb0db2d08e12e1e14 (patch) | |
tree | a6a3492f39e5e91a96315f46df1505785fb2264a /Makefile | |
parent | 5ed1f38b2f515c6cebd8386de44c13a2b120c878 (diff) | |
download | fractal-gen-086e49a701debe24c0e8547fb0db2d08e12e1e14.tar.xz |
Add header files as dependencies to object filesmakefile-fix
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 \ |