summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKevin Chabowski <der.pc222@googlemail.com>2010-07-28 23:03:16 +0200
committerKevin Chabowski <der.pc222@googlemail.com>2010-07-28 23:03:16 +0200
commit054a617a9375b835492368c3773315b09d3851ce (patch)
tree231d5e4a57e994e3cc3c0b005fea6fe2a4a9fcc9 /Makefile
downloadAnother-mandelbrot-viewer-054a617a9375b835492368c3773315b09d3851ce.tar.gz
Another-mandelbrot-viewer-054a617a9375b835492368c3773315b09d3851ce.tar.bz2
Another-mandelbrot-viewer-054a617a9375b835492368c3773315b09d3851ce.zip
Initial commit for mandelbrot.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
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