libkms: link against libdrm
[glsdk/libdrm.git] / libkms / Makefile.am
1 AM_CFLAGS = \
2         $(WARN_CFLAGS) \
3         -I$(top_srcdir)/include/drm \
4         -I$(top_srcdir)
6 libkms_la_LTLIBRARIES = libkms.la
7 libkms_ladir = $(libdir)
8 libkms_la_LDFLAGS = -version-number 1:0:0 -no-undefined
9 libkms_la_LIBADD = ../libdrm.la
11 #if HAVE_LIBUDEV
12 #libkms_la_LIBADD += $(LIBUDEV_LIBS)
13 #endif
15 libkms_la_SOURCES = \
16         internal.h \
17         linux.c \
18         intel.c \
19         dumb.c \
20         api.c
22 if HAVE_VMWGFX
23 libkms_la_SOURCES += vmwgfx.c
24 endif
26 if HAVE_NOUVEAU
27 libkms_la_SOURCES += nouveau.c
28 endif
30 if HAVE_RADEON
31 libkms_la_SOURCES += radeon.c
32 endif
34 libkmsincludedir = ${includedir}/libkms
35 libkmsinclude_HEADERS = libkms.h
37 pkgconfigdir = @pkgconfigdir@
38 pkgconfig_DATA = libkms.pc
40 EXTRA_DIST = libkms.pc.in