summaryrefslogtreecommitdiff
path: root/Makefile
blob: ab777b4b3e02b51e8100fde2bfc3519ccdc37e09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
CC = gcc
CC_PARAMS = -O3 -Wall -Werror -fopenmp -c
C_SOURCES = graymap.c graymap_alleg.c paledit.c mandelbrot.c
OBJ = $(C_SOURCES:%.c=%.o)
LIBS = `allegro-config --libs` -lm -lgomp -lpthread

mandelbrot: $(OBJ)
	$(CC) $(LIBS) -o mandelbrot $(OBJ)

%.o:%.c
	$(CC) $(CC_PARAMS) -o $@ $<

doc:
	if [ ! -d doc ]; then mkdir doc; fi
	doxygen Doxyfile

clean:
	rm -r doc
	rm $(OBJ)
	rm mandelbrot