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