blob: 609f44dd7a1fbfee6cfdc7a0b682db29d09f1e14 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
# $OpenBSD: Makefile,v 1.9 2023/01/31 03:29:36 jsg Exp $
.include <bsd.xconf.mk>
LIB= EGL
SRCS= eglapi.c \
eglarray.c \
eglconfigdebug.c \
eglconfig.c \
eglcontext.c \
eglcurrent.c \
egldevice.c \
egldisplay.c \
eglglobals.c \
eglimage.c \
egllog.c \
eglsurface.c \
eglsync.c
.if ${XENOCARA_BUILD_DRI:L} == "yes"
SRCS+= egl_dri2.c \
platform_device.c \
platform_drm.c \
platform_surfaceless.c \
platform_x11.c
.endif
.if ${XENOCARA_BUILD_DRI3:L} == "yes"
SRCS+= platform_x11_dri3.c
.endif
.include "../Makefile.inc"
CFLAGS+= ${C_VIS_ARGS}
CPPFLAGS+= -I${MESA_SRC}/src/egl/main \
-I${MESA_SRC}/src/loader \
-I${MESA_SRC}/src/gbm/main \
-I${MESA_SRC}/src/gbm/backends/dri \
-D_EGL_NATIVE_PLATFORM=_EGL_PLATFORM_X11
LDADD+= -Wl,--as-needed -Wl,--allow-shlib-undefined -Wl,--start-group \
${.CURDIR}/../libmesa_util/${__objdir}/libmesa_util.a \
${.CURDIR}/../libmesa_format/${__objdir}/libmesa_format.a
.if ${WITH_SSE41} == "yes"
LDADD+= ${.CURDIR}/../libmesa_util_sse41/${__objdir}/libmesa_util_sse41.a
.endif
LDADD+= ${.CURDIR}/../libmesa_util_c11/${__objdir}/libmesa_util_c11.a \
-Wl,--gc-sections \
-lz -lm -lpthread \
-L${X11BASE}/lib -lX11-xcb -lX11 -lxcb -lxcb-randr -lxcb-xfixes
.if ${XENOCARA_BUILD_DRI:L} == "yes"
LDADD+= ${.CURDIR}/../libloader/${__objdir}/libloader.a \
${.CURDIR}/../libxmlconfig/${__objdir}/libxmlconfig.a \
-ldrm -lxcb-dri2 -lexpat
.endif
.if ${XENOCARA_BUILD_DRI3:L} == "yes"
LDADD+= ${.CURDIR}/../libloader_dri3_helper/${__objdir}/libloader_dri3_helper.a \
-lxcb-dri3 -lxcb-present -lxcb-sync -lxshmfence
.endif
LDADD+= -L${.CURDIR}/../libgbm/${__objdir} -lgbm \
-L${.CURDIR}/../libglapi/${__objdir} -lglapi \
-Wl,--end-group
obj: _xenocara_obj
beforeinstall:
rm -f ${DESTDIR}${LIBDIR}/lib${LIB}.la
.include <bsd.lib.mk>
.include <bsd.xorg.mk>
.PATH: ${MESA_SRC}/src/egl/main
.PATH: ${MESA_SRC}/src/egl/drivers/dri2
|