aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDavid Phillips <dbphillipsnz@gmail.com>2016-03-30 11:31:10 +1300
committerDavid Phillips <dbphillipsnz@gmail.com>2016-03-30 11:31:10 +1300
commit90e9e471a733c925bb352a52d820bef0ac285dc1 (patch)
tree53638a9c8b0d5d491058ea3ba6a0bf5da4093fdd /Makefile
parent1d50fb35485583404691d5f30420fa9d494af35f (diff)
downloadfractal-gen-90e9e471a733c925bb352a52d820bef0ac285dc1.tar.xz
Use system default recipes in Makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 4 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index b3ce7ae..3256e60 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,5 @@
+CFLAGS += -Wall -Wextra -Werror
+LDFLAGS += -lm -lpthread
all: fractal-gen symlinks
symlinks: fractal-gen
@@ -10,12 +12,7 @@ fractal-gen: fractal-gen.o \
algorithms/burning-ship.o \
algorithms/burning-ship-lattice.o \
- $(CC) -o $@ $^ -lm -lpthread
-%.o: %.c
- $(CC) -c -o $@ $< -Wall -Wextra -Werror
-
-.PHONY: all clean clean-object symlinks
clean: clean-object
rm fractal-gen \
mandelbrot-gen \
@@ -25,3 +22,5 @@ clean: clean-object
clean-object:
rm -fv *.o **/*.o
+
+.PHONY: all clean clean-object symlinks