From a503403226e4e2a929efddd4a2d0daad9c33c596 Mon Sep 17 00:00:00 2001 From: Paul LeoNerd Evans Date: Thu, 7 Feb 2008 00:58:41 +0000 Subject: Initial attempt --- Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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 -- cgit v1.2.3