summaryrefslogtreecommitdiff
path: root/usr/src/common/libdrm/Makefile.drm
blob: a26cd51445e64d58aef5a7fac4c29446cd1bb090 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source.  A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#

#
# Copyright 2016 Gordon W. Ross
#

# This make include is used in $SRC/lib/libdrm/*
#
# See also: ./Makefile LIBDRM_VERS, ./Check-patches, and
# $SRC/pkg/manifests/x11-library-libdrm.mf
LIBDRM_VERS=2.4.73

LIBDRM_CMN_DIR=$(SRC)/common/libdrm/libdrm-$(LIBDRM_VERS)

ROOTLIBDIR =	$(ROOT)/usr/lib/xorg
ROOTLIBDIR64 =	$(ROOT)/usr/lib/xorg/$(MACH64)

CPPFLAGS +=	-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE

# Defines that would normally come from autoconf.  Look through
# libdrm-$(LIBDRM_VERS)/config.h.in when updating libdrm to
# check for new ones we might need to define.
CPPFLAGS +=	-DHAVE_ALLOCA_H
CPPFLAGS +=	-DMAJOR_IN_MKDEV

# Additional CPPFLAG defines in:
#  $SRC/cmd/drm-tests/util  HAVE_CAIRO
#  $SRC/lib/libkms  HAVE_INTEL (_VMWGFX,_NOUVEAU,_RADEON,_EXYNOS)

CPPFLAGS +=	-I$(SRC)/uts/common \
		-I$(SRC)/uts/common/drm \
		-I$(LIBDRM_CMN_DIR)/include/drm

# The libdrm code has lots of parentheses warnings.  Suppress.
CERRWARN +=	-_gcc=-Wno-parentheses