summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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..dde9e33
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,20 @@
+CC = g++
+LIB = -lm `sdl-config --libs` -lSDL_image -L/usr/X11R6/lib -lGL -lGLU
+CFLAGS = -s -O2 `sdl-config --cflags` -Wall -Wsign-compare -Wpointer-arith -Wcast-qual -Wcast-align -fomit-frame-pointer
+PROGS = mandel metaball raytrace
+
+default: $(PROGS)
+
+mandel: mandel.cpp rainbow.h
+ $(CC) $(LIB) $(CFLAGS) mandel.cpp -o mandel
+
+metaball: metaball.cpp
+ $(CC) $(LIB) $(CFLAGS) metaball.cpp -o metaball
+
+raytrace: raytrace.cpp
+ $(CC) $(LIB) $(CFLAGS) raytrace.cpp -o raytrace
+
+clean:
+ @rm -f *.o *~ $(PROGS)
+
+