mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
This introduces libzpci which is a library intended to handle s390x specific PCI attributes and peculiarities. As a first step it introduces code to list PCI devices on s390x including an initial set of s390x specific attributes like FID, PFT, UID etc. It also collects information on network device associated with a particular PCI function. The included example serves as a demonstration of using libzpci to list PCI devices. Reviewed-by: Halil Pasic <pasic@linux.ibm.com> Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
21 lines
317 B
Makefile
21 lines
317 B
Makefile
include ../common.mak
|
|
|
|
lib = libzpci.a
|
|
|
|
all: $(lib)
|
|
|
|
objects = pci_list.o
|
|
|
|
examples := $(patsubst %.c,%,$(wildcard *_example.c))
|
|
|
|
examples: $(examples)
|
|
$(examples): %: %.o $(lib) $(rootdir)/libutil/libutil.a
|
|
|
|
$(lib): ALL_CFLAGS += -fPIC -std=c11
|
|
$(lib): $(objects)
|
|
|
|
install: all
|
|
|
|
clean:
|
|
rm -f *.o $(lib) $(examples)
|