Support OpenPOWERs OEM commands on openbmc
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..6c4de84
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,20 @@
+CXX ?= $(CROSS_COMPILE)g++
+
+LIB_OEM_OBJ = oemhandler.o
+LIB_OEM     = liboemhandler.so
+
+LDFLAGS += -rdynamic -ldl
+CXXFLAGS += -fPIC -Wall
+
+
+all: $(LIB_OEM)
+
+%.o: %.C
+	$(CXX) -c $< $(CXXFLAGS) -o $@
+
+
+$(LIB_OEM): $(LIB_OEM_OBJ)
+	$(CXX) $^ -shared $(LDFLAGS) -o $@
+
+clean:
+	$(RM) $(LIB_OEM_OBJ) $(LIB_OEM)