OSDN Git Service

resolve merge conflicts of 42ca6159e52c5a2217825da02a26cf504998301b to stage-aosp...
[android-x86/external-minigbm.git] / Makefile
index 358cd7b..8238026 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -14,7 +14,7 @@ CFLAGS += -std=c99 -Wall -Wsign-compare -Wpointer-arith -Wcast-qual \
 
 ifdef DRV_AMDGPU
        CFLAGS += $(shell $(PKG_CONFIG) --cflags libdrm_amdgpu)
-       LDLIBS += -lamdgpuaddr
+       LDLIBS += -ldrm_amdgpu -ldl
 endif
 ifdef DRV_EXYNOS
        CFLAGS += $(shell $(PKG_CONFIG) --cflags libdrm_exynos)
@@ -25,12 +25,18 @@ endif
 ifdef DRV_MESON
        CFLAGS += $(shell $(PKG_CONFIG) --cflags libdrm_meson)
 endif
+ifdef DRV_MSM
+       CFLAGS += -ldl
+endif
 ifdef DRV_RADEON
        CFLAGS += $(shell $(PKG_CONFIG) --cflags libdrm_radeon)
 endif
 ifdef DRV_ROCKCHIP
        CFLAGS += $(shell $(PKG_CONFIG) --cflags libdrm_rockchip)
 endif
+ifdef DRV_VC4
+       CFLAGS += $(shell $(PKG_CONFIG) --cflags libdrm_vc4)
+endif
 
 CPPFLAGS += $(PC_CFLAGS)
 LDLIBS += $(PC_LIBS)