# $NetBSD: Makefile,v 1.19 2022/07/11 19:33:33 mrg Exp $ .include <bsd.own.mk> LIB= drm .PATH: ${X11SRCDIR.${LIB}} SRCS= xf86drm.c xf86drmHash.c xf86drmMode.c xf86drmRandom.c xf86drmSL.c INCS= xf86drm.h xf86drmMode.h libsync.h INCSDIR=${X11INCDIR} CPPFLAGS+= -I${DESTDIR}${X11INCDIR}/libdrm -I${X11SRCDIR.${LIB}}/../include SUBDIR= drm PKGCONFIG= libdrm PKGDIST= ${LIB} COPTS.xf86drm.c+= ${${ACTIVE_CC} == "gcc":? -Wno-error=cpp :} COPTS.xf86drm.c+= ${${ACTIVE_CC} == "clang":? -Wno-error=\#warnings :} CWARNFLAGS.clang+= -Wno-conversion -Wno-tautological-compare LIBDPLIBS= m ${.CURDIR}/../../../../../lib/libm LIBDPLIBS+= pci ${.CURDIR}/../../../../../lib/libpci .if 0 MAN= drm.7 \ drm-kms.7 \ drm-memory.7 \ drmAvailable.3 \ drmHandleEvent.3 \ drmModeGetResources.3 # XXX is this right? MLINKS+= drm-mm.7 drm-gem.7 \ drm-mm.7 drm-ttm.7 .endif .include "Makefile.defines" .include <bsd.x11.mk> .include <bsd.lib.mk> .include <bsd.subdir.mk> |