1 # src/egl/drivers/dri2/Makefile
4 include $(TOP
)/configs
/current
7 EGL_SOURCES
= egl_dri2.c platform_x11.c platform_drm.c
11 -I
$(TOP
)/src
/egl
/main \
13 -DDEFAULT_DRIVER_DIR
=\"$(DRI_DRIVER_SEARCH_DIR
)\" \
18 EGL_LIBS
= $(XCB_DRI2_LIBS
) $(LIBUDEV_LIBS
) $(DLOPEN_LIBS
) $(LIBDRM_LIB
)
20 EGL_CFLAGS
= -D_EGL_MAIN
=_eglBuiltInDriverDRI2
23 ifeq ($(SHARED_GLAPI
),1)
24 EGL_CFLAGS
+= -DHAVE_SHARED_GLAPI
27 ifneq ($(findstring wayland
, $(EGL_PLATFORMS
)),)
28 EGL_SOURCES
+= platform_wayland.c
29 EGL_INCLUDES
+= -DHAVE_WAYLAND_PLATFORM
$(WAYLAND_CFLAGS
) \
30 -I
$(TOP
)/src
/egl
/wayland \
31 -I
$(TOP
)/src
/egl
/wayland
/wayland-drm
32 EGL_LIBS
+= $(WAYLAND_LIBS
) \
33 $(TOP
)/src
/egl
/wayland
/wayland-drm
/libwayland-drm.a
36 include ..
/Makefile.template