[Mesa-dev] small patch to wayland-drm Makefile

Liu, Xinyun xinyunliu at gmail.com
Fri Mar 25 02:54:41 PDT 2011


Meet the same build issue. And fixed it with the same way.

diff --git a/src/egl/wayland/wayland-drm/Makefile
b/src/egl/wayland/wayland-drm/Makefile
index c232769..1a25f5f 100644
--- a/src/egl/wayland/wayland-drm/Makefile
+++ b/src/egl/wayland/wayland-drm/Makefile
@@ -3,6 +3,8 @@
 TOP = ../../../..
 include $(TOP)/configs/current

+INCLUDE_DIRS = -I$(TOP)/include
+
 GEN_SOURCES = wayland-drm-protocol.c

 GEN_HEADERS = wayland-drm-client-protocol.h wayland-drm-server-protocol.h
@@ -38,7 +40,7 @@ install:
       @echo -n ""

 $(wayland_drm_OBJECTS): %.o: %.c $(GEN_HEADERS)
-       $(CC) -c $(wayland_drm_INCLUDES) $(CFLAGS) $< -o $@
+       $(CC) -c $(INCLUDE_DIRS) $(wayland_drm_INCLUDES) $(CFLAGS) $< -o $@


Regards,
Xinyun


More information about the mesa-dev mailing list