aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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 \