aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: ae43d5acbfb6690979d2b48648e94f15f38a26be (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