# $OpenBSD$ PACKAGE_VERSION = 0.18.1 LIB = pciaccess TOP = ${.CURDIR}/.. NOPROFILE = SRCS= \ common_bridge.c \ common_iterator.c \ common_init.c \ common_interface.c \ common_io.c \ common_capability.c \ common_device_name.c \ common_map.c \ openbsd_pci.c CPPFLAGS += \ -DHAVE_CONFIG_H \ -DPCIIDS_PATH=\"${X11BASE}/share\" \ -I$(TOP)/mk \ -I$(TOP)/src \ -I$(TOP)/include CFLAGS += -std=c99 EXTRA_PKGCONFIG_SUBST= "-e s/@PCIACCESS_LIBS@//" PKGCONFIG = pciaccess.pc beforeinstall: @cmp -s ${DESTDIR}${X11BASE}/include/pciaccess.h \ $(TOP)/include/pciaccess.h || \ echo "${INSTALL_DATA} $(TOP)/include/pciaccess.h \ ${DESTDIR}${X11BASE}/include/pciaccess.h" && \ ${INSTALL_DATA} $(TOP)/include/pciaccess.h \ ${DESTDIR}${X11BASE}/include/pciaccess.h .PATH: $(TOP) .PATH: $(TOP)/src .include .include