From 30cb193108745ada5680683a693519fdfa4cd946 Mon Sep 17 00:00:00 2001 From: Thadeu Lima de Souza Cascardo Date: Sun, 22 Mar 2009 18:15:59 -0300 Subject: [PATCH] Added Makefile to build program and ignore produced objects. --- .gitignore | 2 ++ Makefile | 13 +++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 .gitignore create mode 100644 Makefile diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f284c9b --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +status +*.o diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..6f8941f --- /dev/null +++ b/Makefile @@ -0,0 +1,13 @@ +CC = gcc +CFLAGS = -g -Wall `pkg-config --cflags iksemel` +LIBS = `pkg-config --libs iksemel` +OBJECTS = status.o + +.c.o: + $(CC) $(CFLAGS) -c $< -o $@ + +status: $(OBJECTS) + $(CC) -o status $(OBJECTS) $(LIBS) + +clean: + rm -f status $(OBJECTS) -- 2.20.1