# $NetBSD: Makefile,v 1.16.2.1 2019/08/12 17:23:20 martin Exp $ .include 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 SUBDIR= drm kms 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 .include .include