aboutsummaryrefslogtreecommitdiffstats
path: root/cube_gl/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'cube_gl/Makefile')
-rw-r--r--cube_gl/Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/cube_gl/Makefile b/cube_gl/Makefile
new file mode 100644
index 0000000..7c21b70
--- /dev/null
+++ b/cube_gl/Makefile
@@ -0,0 +1,14 @@
+CFLAGS=`pkg-config glu --cflags` `sdl-config --cflags` -lglut -ansi -Wall -m32
+LIBS=`pkg-config glu --libs` `sdl-config --libs`
+OBJS=ledcube.o effect.o font.o
+
+%.o:%.cpp
+ g++ $(CFLAGS) -o $@ -c $<
+
+all: ledcube
+
+clean:
+ rm -f ledcube $(OBJS)
+
+ledcube: $(OBJS)
+ g++ $(CFLAGS) $(LIBS) $(OBJS) -o $@