aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 57124c3c14d60dd40726cefd283f8f1bd544a0c5 (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
clean:
	rm fractal-gen \
	   mbrot-gen   \
	   bship-gen   \
	   *.o \
	   -f