Merge branch 'llvm-cliptest-viewport'
[mesa.git] / src / gallium / state_trackers / xorg / Makefile
index 27a1990724d4cfa220091a2afa3a56608ebfefe7..7a44d28017bf87e9f4ee0685f786146ef456d29d 100644 (file)
@@ -5,7 +5,12 @@ LIBNAME = xorgtracker
 
 LIBRARY_INCLUDES = \
        -DHAVE_CONFIG_H \
-       $(shell pkg-config --cflags-only-I pixman-1 xorg-server libdrm xproto) \
+       $(shell pkg-config xextproto --atleast-version=7.0.99.1 \
+                               && echo "-DHAVE_XEXTPROTO_71") \
+       $(shell pkg-config libkms --atleast-version=1.0 \
+                               && echo "-DHAVE_LIBKMS") \
+       $(shell pkg-config libkms --silence-errors --cflags-only-I) \
+       $(shell pkg-config --cflags-only-I pixman-1 xorg-server libdrm xproto dri2proto) \
        -I$(TOP)/src/gallium/include \
        -I$(TOP)/src/gallium/auxiliary \
        -I$(TOP)/include \