[PATCH skeleton 6/9] Create a libopenbmc_intf symlink

OpenBMC Patches openbmc-patches at stwcx.xyz
Tue Jun 28 04:50:51 AEST 2016


From: Brad Bishop <bradleyb at fuzziesquirrel.com>

Create a libopenbmc_intf symlink in the build target to
enable things like:

 -L ../libopenbmc_intf -lopenbmc_intf

Signed-off-by: Brad Bishop <bradleyb at fuzziesquirrel.com>
---
 libopenbmc_intf/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libopenbmc_intf/Makefile b/libopenbmc_intf/Makefile
index 156767a..f82bce5 100644
--- a/libopenbmc_intf/Makefile
+++ b/libopenbmc_intf/Makefile
@@ -8,6 +8,7 @@ INCLUDES=openbmc_intf.h openbmc.h gpio.h
 $(LIBOBMC): %: %.o gpio.o
 	$(CC) -shared $(CFLAGS) $(LDFLAGS) -Wl,-soname,lib$(LIBOBMC).so \
 		-o lib$@.so.1 $^ $(LDLIBS)
+	ln -sf lib$(LIBOBMC).so.1 lib$(LIBOBMC).so
 
 install-headers:
 	@mkdir -p $(DESTDIR)$(includedir)
@@ -20,5 +21,6 @@ install-lib:
 
 clean-lib:
 	rm -f lib$(LIBOBMC).so.1
+	rm -f lib$(LIBOBMC).so
 
 include ../rules.mk
-- 
2.9.0




More information about the openbmc mailing list