commit | 4d98c1eed2d0db40ea5365561f5f138dd713573d | [log] [tgz] |
---|---|---|
author | Chris Austen <austenc@us.ibm.com> | Tue Oct 13 14:33:50 2015 -0500 |
committer | Patrick Williams <patrick@stwcx.xyz> | Thu Oct 22 17:33:14 2015 -0500 |
tree | 87b49bf28128c6ba18609fc982bcc18717290921 | |
parent | fe3ef4654e7fe24ca0f9733974e2743623a98d32 [diff] [blame] |
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)