Brad Bishop | 40a360c | 2016-05-28 18:41:04 -0400 | [diff] [blame^] | 1 | PACKAGE_DEPS=gio-unix-2.0 glib-2.0 |
| 2 | INSTALLDEPS=install-lib |
| 3 | CLEANDEPS=clean-lib |
| 4 | DEFAULT_ALL=$(LIBOBMC) |
| 5 | CFLAGS+=-iquote ../gdbus |
| 6 | LIBOBMC=openbmc_intf |
| 7 | |
| 8 | $(LIBOBMC): %: %.o gpio.o |
| 9 | $(CC) -shared $(LDFLAGS) -Wl,-soname,lib$(LIBOBMC).so \ |
| 10 | -o lib$@.so.1 $^ $(LDLIBS) |
| 11 | |
| 12 | install-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 | |
| 17 | clean-lib: |
| 18 | rm -f lib$(LIBOBMC).so.1 |
| 19 | |
| 20 | include ../rules.mk |