From 90e9e471a733c925bb352a52d820bef0ac285dc1 Mon Sep 17 00:00:00 2001 From: David Phillips Date: Wed, 30 Mar 2016 11:31:10 +1300 Subject: Use system default recipes in Makefile --- Makefile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'Makefile') 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 -- cgit v1.1