egl/wayland: Move wayland-egl into a subdir
[profile/ivi/mesa.git] / src / egl / drivers / dri2 / Makefile
1 # src/egl/drivers/dri2/Makefile
2
3 TOP = ../../../..
4 include $(TOP)/configs/current
5
6 EGL_DRIVER = egl_dri2
7 EGL_SOURCES = egl_dri2.c platform_x11.c platform_drm.c
8
9 EGL_INCLUDES = \
10         -I$(TOP)/include \
11         -I$(TOP)/src/egl/main \
12         -I$(TOP)/src/mapi \
13         -DDEFAULT_DRIVER_DIR=\"$(DRI_DRIVER_SEARCH_DIR)\" \
14         $(XCB_DRI2_CFLAGS) \
15         $(LIBUDEV_CFLAGS) \
16         $(LIBDRM_CFLAGS)
17
18 EGL_LIBS = $(XCB_DRI2_LIBS) $(LIBUDEV_LIBS) $(DLOPEN_LIBS) $(LIBDRM_LIB)
19
20 EGL_CFLAGS = -D_EGL_MAIN=_eglBuiltInDriverDRI2
21 EGL_BUILTIN = true
22
23 ifeq ($(SHARED_GLAPI),1)
24 EGL_CFLAGS += -DHAVE_SHARED_GLAPI
25 endif
26
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/wayland-egl \
31                 -I$(TOP)/src/egl/wayland/wayland-drm
32 EGL_LIBS += $(WAYLAND_LIBS) \
33             $(TOP)/src/egl/wayland/wayland-drm/libwayland-drm.a
34 endif
35
36 include ../Makefile.template