Added Makefile to build program and ignore produced objects.
[cascardo/pubsub-bot.git] / Makefile
diff --git a/Makefile b/Makefile
new file mode 100644 (file)
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)