configure: replace pkg-config calls with $(PKG_CONFIG) in the makefiles.
[mesa.git] / src / gallium / winsys / i915 / drm / Makefile
index 4aac3309aa767f2e80f060d43a5d495b6d03ad67..ebe3ded7ac2477ffdc9717794106e0dc0b62624c 100644 (file)
@@ -1,16 +1,13 @@
 TOP = ../../../../..
 include $(TOP)/configs/current
 
-LIBNAME = inteldrm
+LIBNAME = i915drm
 
-C_SOURCES = \
-       intel_drm_batchbuffer.c \
-       intel_drm_buffer.c \
-       intel_drm_fence.c \
-       intel_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