aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPaul LeoNerd Evans <leonerd@leonerd.org.uk>2008-02-07 00:58:41 +0000
committerPaul LeoNerd Evans <leonerd@leonerd.org.uk>2008-02-07 00:58:41 +0000
commita503403226e4e2a929efddd4a2d0daad9c33c596 (patch)
tree032aa941ca6153c2e61fd01711e623d487aecfbe /Makefile
downloadtermo-a503403226e4e2a929efddd4a2d0daad9c33c596.tar.gz
termo-a503403226e4e2a929efddd4a2d0daad9c33c596.tar.xz
termo-a503403226e4e2a929efddd4a2d0daad9c33c596.zip
Initial attempt
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..f0afb15
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,17 @@
+CCFLAGS=-Wall -Iinclude -std=c99
+LDFLAGS=
+
+CCFLAGS+=$(shell pkg-config --cflags glib-2.0)
+LDFLAGS+=$(shell pkg-config --libs glib-2.0)
+
+all: demo
+
+demo: termkey.o demo.c
+ gcc $(CCFLAGS) $(LDFLAGS) -o $@ $^
+
+termkey.o: termkey.c
+ gcc $(CCFLAGS) -o $@ -c $^
+
+.PHONY: clean
+clean:
+ rm -f *.o demo