X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=Makefile.am;h=826c30d0c0d9806db70c6d7d2187deb2976cd7fd;hb=8fc62ca8ac010659023bb63c4759eb683de4f9af;hp=4ade045d3077d7040040076a148a19f206d94340;hpb=2b42af9a2fd8e35e920d61a212ce6b9c85354289;p=platform%2Fupstream%2Flibdrm.git diff --git a/Makefile.am b/Makefile.am index 4ade045..826c30d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -18,15 +18,62 @@ # IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -# eventually someone might want to build the kernel modules or tests from -# here too, but let's just do libdrm for now - -AUTOMAKE_OPTIONS = foreign -SUBDIRS = libdrm shared-core tests +ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS} pkgconfigdir = @pkgconfigdir@ pkgconfig_DATA = libdrm.pc +if HAVE_LIBKMS +LIBKMS_SUBDIR = libkms +endif + +if HAVE_INTEL +INTEL_SUBDIR = intel +endif + +if HAVE_NOUVEAU +NOUVEAU_SUBDIR = nouveau +endif + +if HAVE_RADEON +RADEON_SUBDIR = radeon +endif + +if HAVE_OMAP +OMAP_SUBDIR = omap +endif + +if HAVE_EXYNOS +EXYNOS_SUBDIR = exynos +endif + +if HAVE_FREEDRENO +FREEDRENO_SUBDIR = freedreno +endif + +SUBDIRS = . $(LIBKMS_SUBDIR) $(INTEL_SUBDIR) $(NOUVEAU_SUBDIR) $(RADEON_SUBDIR) $(OMAP_SUBDIR) $(EXYNOS_SUBDIR) $(FREEDRENO_SUBDIR) tests include man + +libdrm_la_LTLIBRARIES = libdrm.la +libdrm_ladir = $(libdir) +libdrm_la_LDFLAGS = -version-number 2:4:0 -no-undefined +libdrm_la_LIBADD = @CLOCK_LIB@ + +libdrm_la_CPPFLAGS = -I$(top_srcdir)/include/drm +AM_CFLAGS = \ + $(VALGRIND_CFLAGS) + +libdrm_la_SOURCES = \ + xf86drm.c \ + xf86drmHash.c \ + xf86drmRandom.c \ + xf86drmSL.c \ + xf86drmMode.c \ + xf86atomic.h \ + libdrm_lists.h + +libdrmincludedir = ${includedir} +libdrminclude_HEADERS = xf86drm.h xf86drmMode.h + EXTRA_DIST = libdrm.pc.in include/drm/* copy-headers :