aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: a2f4358a411abad627a692dfb38112a0432e4d4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
CFLAGS += -Wall -Wextra -Werror
LDFLAGS += -lm -lpthread
all: fractal-gen symlinks

symlinks: fractal-gen
	ln -sf $< mandelbrot-gen
	ln -sf $< burning-ship-gen

fractal-gen: fractal-gen.o \
             algorithms/mandelbrot.o \
             algorithms/burning-ship.o \


clean: clean-object
	rm fractal-gen \
	   mandelbrot-gen \
	   burning-ship-gen \
	   -f

clean-object:
	rm -fv *.o **/*.o

.PHONY: all clean clean-object symlinks