1 # $NetBSD: Makefile,v 1.1 2015/02/23 00:09:30 jmcneill Exp $
7 .PATH
: ${X11SRCDIR.MesaLib
}/src
/gbm
/main
12 .PATH
: ${X11SRCDIR.MesaLib
}/src
/gbm
/backends
/dri
16 SRCS
= ${SRCS.main
} ${SRCS.dri
}
18 CPPFLAGS
+= -D_OS_UNIX
=1
19 CPPFLAGS
+= -DHAVE_PTHREAD
=1
20 CPPFLAGS
+= -DDEFAULT_DRIVER_DIR
=\"${X11USRLIBDIR}/modules
/dri
\"
21 CPPFLAGS
+= -DMODULEDIR
=\"${X11USRLIBDIR}/gbm
\"
22 CPPFLAGS
+= -I
${X11SRCDIR.MesaLib
}/include
23 CPPFLAGS
+= -I
${X11SRCDIR.MesaLib
}/src
/loader
24 CPPFLAGS
+= -I
${X11SRCDIR.MesaLib
}/src
/gbm
/main
25 CPPFLAGS
+= -I
${X11SRCDIR.MesaLib
}/src
/mapi
26 CPPFLAGS
+= -I
${DESTDIR}${X11INCDIR}/libdrm
27 CFLAGS
+= -fno-strict-aliasing
-fexceptions
29 CWARNFLAGS.clang
+= -Wno-\
#warnings
30 .
endif # defined(__MINIX)
32 COPTS.gbm_dri.c
+= -Wno-error
34 .
include "../libloader.mk"
36 .PATH
: ${X11SRCDIR.MesaLib
}/src
/gbm
/main
40 LIBDPLIBS
= glapi
${.CURDIR
}/..
/libglapi
41 LIBDPLIBS
= drm
${.CURDIR
}/..
/libdrm
44 PKGDIST.gbm
= ${X11SRCDIR.MesaLib
}/src
/gbm
/main
45 .
include "${.CURDIR}/../libGL/mesa-ver.mk"
46 PKGCONFIG_VERSION.gbm
= ${MESA_VER}
48 .
include "../libdrm/Makefile.defines"