summaryrefslogtreecommitdiff
path: root/Makefile
blob: cc1fdb35fac75343bdba1e51c5894344b7ed4d32 (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

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