aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-04-16 01:43:37 +0200
committerMattias Andrée <maandree@operamail.com>2015-04-16 01:43:37 +0200
commitede68f2afc43d48532744939e21dba2508ddccc3 (patch)
tree547114ea0f21e2a7f70130ac3dc5e3de6088c7dc
parenttypo (diff)
downloadbus-ede68f2afc43d48532744939e21dba2508ddccc3.tar.gz
bus-ede68f2afc43d48532744939e21dba2508ddccc3.tar.bz2
bus-ede68f2afc43d48532744939e21dba2508ddccc3.tar.xz
add makefile
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-rw-r--r--Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..fa12410
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,23 @@
+# bus - simple message broadcasting IPC system
+# See LICENSE file for copyright and license details.
+
+all: bus
+
+bus: bin/bus
+
+bin/bus: obj/cmdline.o
+ @echo CC -o $@
+ @mkdir -p bin
+ @${CC} -o $@ $^ ${LDFLAGS}
+
+obj/%.o: src/%.c
+ @echo CC -c $<
+ @mkdir -p obj
+ @${CC} -c -o $@ ${CPPFLAGS} ${CFLAGS} $<
+
+clean:
+ @echo cleaning
+ @-rm -rf obj bin
+
+.PHONY: all bus clean install uninstall
+