# Expects to be invoked from the top-level Makefile and uses lots of its variables.
-OBJS=init access generic dump names filter names-hash names-parse names-net names-cache params
+OBJS=init access generic dump names filter names-hash names-parse names-net names-cache params caps
INCL=internal.h pci.h config.h header.h sysdep.h types.h
ifdef PCI_HAVE_PM_LINUX_SYSFS
else
CFLAGS += -fPIC -fvisibility=hidden
$(PCILIB): $(addsuffix .o,$(OBJS))
- $(CC) -shared $(SONAME) -Wl,--version-script=libpci.ver -o $@ $^ $(LIB_LDLIBS)
+ $(CC) -shared $(LDFLAGS) $(SONAME) -Wl,--version-script=libpci.ver -o $@ $^ $(LIB_LDLIBS)
endif
$(PCILIBPC): libpci.pc.in