aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2016-10-26 15:56:08 +1300
committerDavid Phillips <david@sighup.nz>2016-10-26 15:56:08 +1300
commitf0778d25e747092d59fa6b7d3a1e15bfc795fcd3 (patch)
tree57846238256ec890ab046cbc866da19bc5a96dc3
parent7c278008f5ae15f072b2674f17c81c017b1cd348 (diff)
parent086e49a701debe24c0e8547fb0db2d08e12e1e14 (diff)
downloadfractal-gen-f0778d25e747092d59fa6b7d3a1e15bfc795fcd3.tar.xz
Merge branch 'makefile-fix'
-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 \