summaryrefslogtreecommitdiffstats
path: root/common/recipes-lib/ipmb/files/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-lib/ipmb/files/Makefile')
-rw-r--r--common/recipes-lib/ipmb/files/Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/common/recipes-lib/ipmb/files/Makefile b/common/recipes-lib/ipmb/files/Makefile
new file mode 100644
index 0000000..c09b325
--- /dev/null
+++ b/common/recipes-lib/ipmb/files/Makefile
@@ -0,0 +1,11 @@
+# Copyright 2015-present Facebook. All Rights Reserved.
+lib: libipmb.so
+
+libipmb.so: ipmb.c
+ $(CC) $(CFLAGS) -fPIC -c -o ipmb.o ipmb.c
+ $(CC) -shared -o libipmb.so ipmb.o -lc
+
+.PHONY: clean
+
+clean:
+ rm -rf *.o libipmb.so
OpenPOWER on IntegriCloud