aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 2155733f55a09aabcc89b65d517c66327438a009 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
all: fractal-gen symlinks

symlinks: fractal-gen
	ln -sf $< mbrot-gen
	ln -sf $< bship-gen

fractal-gen: fractal-gen.o mbrot.o bship.o
	$(CC) -o $@ $^ -lm -lpthread

%.o: %.c
	$(CC) -c -o $@ $< -Wall -Wextra -Werror


.PHONY: all clean symlinks
clean:
	rm fractal-gen \
	   mbrot-gen   \
	   bship-gen   \
	   *.o \
	   -f