blob: 88533186a15272f6cfaacb332265083dda8ced97 [file] [log] [blame]
Brad Bishop40a360c2016-05-28 18:41:04 -04001PACKAGE_DEPS=gio-unix-2.0 glib-2.0
2INSTALLDEPS=install-lib
3CLEANDEPS=clean-lib
4DEFAULT_ALL=$(LIBOBMC)
Brad Bishopc034d2d2016-06-19 20:53:35 -04005ALL_CFLAGS+=-iquote ../gdbus
Brad Bishop40a360c2016-05-28 18:41:04 -04006LIBOBMC=openbmc_intf
7
8$(LIBOBMC): %: %.o gpio.o
Brad Bishopc034d2d2016-06-19 20:53:35 -04009 $(CC) -shared $(CFLAGS) $(LDFLAGS) -Wl,-soname,lib$(LIBOBMC).so \
Brad Bishop40a360c2016-05-28 18:41:04 -040010 -o lib$@.so.1 $^ $(LDLIBS)
11
12install-lib:
13 @mkdir -p $(DESTDIR)$(libdir)
14 install lib$(LIBOBMC).so.1 $(DESTDIR)$(libdir)
15 ln -s lib$(LIBOBMC).so.1 $(DESTDIR)$(libdir)/lib$(LIBOBMC).so
16
17clean-lib:
18 rm -f lib$(LIBOBMC).so.1
19
20include ../rules.mk