diff --git a/Makefile b/Makefile index 583b196..3bab0a8 100644 --- a/Makefile +++ b/Makefile @@ -11,6 +11,16 @@ PC_LIBS := $(shell $(PKG_CONFIG) --libs $(PC_DEPS)) CPPFLAGS += -std=c99 -D_GNU_SOURCE=1 CFLAGS += -Wall -Wsign-compare -Wpointer-arith -Wcast-qual -Wcast-align +ifdef $(GBM_EXYNOS) + CFLAGS += $(shell $(PKG_CONFIG) --cflags libdrm_exynos) +endif +ifdef $(GBM_I915) + CFLAGS += $(shell $(PKG_CONFIG) --cflags libdrm_intel) +endif +ifdef $(GBM_ROCKCHIP) + CFLAGS += $(shell $(PKG_CONFIG) --cflags libdrm_rockchip) +endif + CPPFLAGS += $(PC_CFLAGS) LDLIBS += $(PC_LIBS)