genode/repos/libports/lib/mk/drm.mk
Norman Feske 366bba0227 Exclude higher-level repos from strict warnings
This is a follow-up commit to "Increase default warning level", which
overrides Genode's new default warning level for targets contained in
higher-level repositories. By explicitly whitelisting all those targets,
we can selectively adjust them to the new strictness over time - by
looking out for 'CC_CXX_WARN_STRICT' in the target description files.

Issue #465
2018-01-17 12:14:36 +01:00

29 lines
690 B
Makefile

SHARED_LIB = yes
LIBS = libc
DRM_SRC_DIR := $(call select_from_ports,drm)/src/lib/drm
LIB_DIR = $(REP_DIR)/src/lib/drm
INC_DIR += $(DRM_SRC_DIR)/include/drm $(LIB_DIR)/include \
$(DRM_SRC_DIR)
SRC_C = intel/intel_bufmgr.c \
intel/intel_bufmgr_gem.c \
intel/intel_decode.c \
xf86drm.c xf86drmHash.c \
xf86drmRandom.c
SRC_CC = dummies.cc ioctl.cc
CC_OPT = -DHAVE_LIBDRM_ATOMIC_PRIMITIVES=1 -DO_CLOEXEC=0
#
# We rename 'ioctl' calls to 'genode_ioctl' calls, this way we are not required
# to write a libc plugin for libdrm.
#
CC_C_OPT += -Dioctl=genode_ioctl
vpath %.c $(DRM_SRC_DIR)
vpath %.cc $(LIB_DIR)
CC_CXX_WARN_STRICT =