diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..cc1fdb3 --- /dev/null +++ b/Makefile @@ -0,0 +1,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 |