1PACKAGE_DEPS=gio-unix-2.0 glib-2.0 2INSTALLDEPS=install-lib install-headers 3CLEANDEPS=clean-lib 4DEFAULT_ALL=$(LIBOBMC) 5ALL_CFLAGS+=-iquote ../gdbus 6LIBOBMC=openbmc_intf 7INCLUDES=openbmc_intf.h openbmc.h gpio.h 8 9$(LIBOBMC): %: %.o gpio.o 10 $(CC) -shared $(CFLAGS) $(LDFLAGS) -Wl,-soname,lib$(LIBOBMC).so \ 11 -o lib$@.so.1 $^ $(LDLIBS) 12 13install-headers: 14 @mkdir -p $(DESTDIR)$(includedir) 15 install $(INCLUDES) $(DESTDIR)$(includedir) 16 17install-lib: 18 @mkdir -p $(DESTDIR)$(libdir) 19 install lib$(LIBOBMC).so.1 $(DESTDIR)$(libdir) 20 ln -s lib$(LIBOBMC).so.1 $(DESTDIR)$(libdir)/lib$(LIBOBMC).so 21 22clean-lib: 23 rm -f lib$(LIBOBMC).so.1 24 25include ../rules.mk 26