Drop main() prototype. Syncs with NetBSD-8
[minix.git] / external / mit / xorg / lib / libgbm / Makefile
blob3eec3c759881485e483ee04578cd9537a5e3fadf
1 # $NetBSD: Makefile,v 1.1 2015/02/23 00:09:30 jmcneill Exp $
3 .include <bsd.own.mk>
5 LIB= gbm
7 .PATH: ${X11SRCDIR.MesaLib}/src/gbm/main
8 SRCS.main= \
9 backend.c \
10 gbm.c
12 .PATH: ${X11SRCDIR.MesaLib}/src/gbm/backends/dri
13 SRCS.dri= \
14 gbm_dri.c
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
28 .if defined(__MINIX)
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
37 INCS= gbm.h
38 INCSDIR= ${X11INCDIR}
40 LIBDPLIBS= glapi ${.CURDIR}/../libglapi
41 LIBDPLIBS= drm ${.CURDIR}/../libdrm
43 PKGCONFIG= gbm
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"
50 .include <bsd.x11.mk>
51 .include <bsd.lib.mk>