configure: replace pkg-config calls with $(PKG_CONFIG) in the makefiles.
[mesa.git] / src / gallium / winsys / i915 / drm / Makefile
index a67b9e8a528e6796a2780df9ba3f556942410060..ebe3ded7ac2477ffdc9717794106e0dc0b62624c 100644 (file)
@@ -3,14 +3,11 @@ include $(TOP)/configs/current
 
 LIBNAME = i915drm
 
-C_SOURCES = \
-       i915_drm_batchbuffer.c \
-       i915_drm_buffer.c \
-       i915_drm_fence.c \
-       i915_drm_api.c
+# get C_SOURCES
+include Makefile.sources
 
-LIBRARY_INCLUDES = $(shell pkg-config libdrm --cflags-only-I)
+LIBRARY_INCLUDES = $(shell $(PKG_CONFIG) libdrm --cflags-only-I)
 
-LIBRARY_DEFINES = $(shell pkg-config libdrm --cflags-only-other)
+LIBRARY_DEFINES = $(shell $(PKG_CONFIG) libdrm --cflags-only-other)
 
 include ../../../Makefile.template