Initial MCTP core code

Just a skeleton of the MCTP library at present.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..ee1eee8
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,22 @@
+
+CC = gcc
+AR = ar
+CFLAGS = -Wall -Wextra -Werror -ggdb
+CPPFLAGS = -DMCTP_LOG_STDERR -DMCTP_FILEIO -I$(LIBMCTP_DIR)
+
+LIBMCTP_DIR=./
+
+include Makefile.inc
+
+all: $(LIBMCTP)
+
+libmctp.a:
+	$(AR) rcsTPD $@ $^
+
+tests/%: tests/%.o libmctp.a
+	$(LINK.o) -o $@ $^
+
+clean:
+	rm -f $(LIBMCTP)
+	rm -f $(LIBMCTP_OBJS)
+	rm -f tests/*.o