diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2012-03-14 18:34:03 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2012-03-14 18:34:03 +0100 |
commit | 7f9b9b0ec979c9f35c1b922412c7b2731a3a6c66 (patch) | |
tree | 96bc15a3c45881d80c05034e6f424f90ef0979a4 /Makefile | |
download | cv-7f9b9b0ec979c9f35c1b922412c7b2731a3a6c66.tar.gz cv-7f9b9b0ec979c9f35c1b922412c7b2731a3a6c66.tar.bz2 cv-7f9b9b0ec979c9f35c1b922412c7b2731a3a6c66.zip |
Add initial wimmel program
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 28 |
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) |