summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2012-03-14 18:34:03 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2012-03-14 18:34:03 +0100
commit7f9b9b0ec979c9f35c1b922412c7b2731a3a6c66 (patch)
tree96bc15a3c45881d80c05034e6f424f90ef0979a4 /Makefile
downloadcv-7f9b9b0ec979c9f35c1b922412c7b2731a3a6c66.tar.gz
cv-7f9b9b0ec979c9f35c1b922412c7b2731a3a6c66.tar.bz2
cv-7f9b9b0ec979c9f35c1b922412c7b2731a3a6c66.zip
Add initial wimmel program
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile28
1 files changed, 28 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..4a6b4bf
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,28 @@
+CC = gcc
+CFLAGS = -ggdb -std=c99 -pedantic -Wall `pkg-config --cflags gtk+-2.0 glib-2.0`
+LDFLAGS = `pkg-config --libs gtk+-2.0 glib-2.0` -lm
+
+PROGS = wimmel wimmel_gl
+OBJS = wimmel.o wimmel_gl.o util.o
+
+all: $(PROGS)
+
+wimmel: wimmel.o util.o
+wimmel_gl: wimmel_gl.o
+
+.PHONY: clean all
+
+%:
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $+
+
+%.o: %.c %.h
+ $(CC) $(CFLAGS) -c -o $@ $<
+
+
+wimmel_gl:
+ $(CC) -lglut `pkg-config --cflags --libs gtk+-2.0 glib-2.0` -o $@ $+
+
+
+
+clean:
+ rm -f $(PROGS) $(OBJS)