summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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)