summaryrefslogtreecommitdiff
path: root/libkms/Makefile.am
blob: ff4c1b2a5f8afa97645ade719dd816458a1c2d10 (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
45
include Makefile.sources

AM_CFLAGS = \
	$(WARN_CFLAGS) \
	-fvisibility=hidden \
	-I$(top_srcdir)/include/drm \
	-I$(top_srcdir)

libkms_la_LTLIBRARIES = libkms.la
libkms_ladir = $(libdir)
libkms_la_LDFLAGS = -version-number 1:0:0 -no-undefined
libkms_la_LIBADD = ../libdrm.la

libkms_la_SOURCES = $(LIBKMS_FILES)

if HAVE_VMWGFX
libkms_la_SOURCES += $(LIBKMS_VMWGFX_FILES)
endif

if HAVE_INTEL
libkms_la_SOURCES += $(LIBKMS_INTEL_FILES)
endif

if HAVE_NOUVEAU
libkms_la_SOURCES += $(LIBKMS_NOUVEAU_FILES)
endif

if HAVE_RADEON
libkms_la_SOURCES += $(LIBKMS_RADEON_FILES)
endif

if HAVE_EXYNOS
libkms_la_SOURCES += $(LIBKMS_EXYNOS_FILES)
AM_CFLAGS += -I$(top_srcdir)/exynos
endif

libkmsincludedir = ${includedir}/libkms
libkmsinclude_HEADERS = $(LIBKMS_H_FILES)

pkgconfigdir = @pkgconfigdir@
pkgconfig_DATA = libkms.pc

AM_TESTS_ENVIRONMENT = NM='$(NM)'
TESTS = kms-symbol-check
EXTRA_DIST = $(TESTS)