From ede68f2afc43d48532744939e21dba2508ddccc3 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 16 Apr 2015 01:43:37 +0200 Subject: add makefile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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 + -- cgit v1.2.3-70-g09d2