1*4882a593Smuzhiyun# Copyright 2005 Adam Jackson. 2*4882a593Smuzhiyun# 3*4882a593Smuzhiyun# Permission is hereby granted, free of charge, to any person obtaining a 4*4882a593Smuzhiyun# copy of this software and associated documentation files (the "Software"), 5*4882a593Smuzhiyun# to deal in the Software without restriction, including without limitation 6*4882a593Smuzhiyun# on the rights to use, copy, modify, merge, publish, distribute, sub 7*4882a593Smuzhiyun# license, and/or sell copies of the Software, and to permit persons to whom 8*4882a593Smuzhiyun# the Software is furnished to do so, subject to the following conditions: 9*4882a593Smuzhiyun# 10*4882a593Smuzhiyun# The above copyright notice and this permission notice (including the next 11*4882a593Smuzhiyun# paragraph) shall be included in all copies or substantial portions of the 12*4882a593Smuzhiyun# Software. 13*4882a593Smuzhiyun# 14*4882a593Smuzhiyun# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15*4882a593Smuzhiyun# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16*4882a593Smuzhiyun# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 17*4882a593Smuzhiyun# ADAM JACKSON BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 18*4882a593Smuzhiyun# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 19*4882a593Smuzhiyun# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20*4882a593Smuzhiyun 21*4882a593Smuzhiyun# this is obnoxious: 22*4882a593Smuzhiyun# -module lets us name the module exactly how we want 23*4882a593Smuzhiyun# -avoid-version prevents gratuitous .0.0.0 version numbers on the end 24*4882a593Smuzhiyun# _ladir passes a dummy rpath to libtool so the thing will actually link 25*4882a593Smuzhiyun# TODO: -nostdlib/-Bstatic/-lgcc platform magic, not installing the .a, etc. 26*4882a593Smuzhiyun 27*4882a593Smuzhiyuninclude $(top_srcdir)/manpages.am 28*4882a593Smuzhiyun 29*4882a593SmuzhiyunAM_CFLAGS = $(DIX_CFLAGS) $(XORG_CFLAGS) $(LIBDRM_CFLAGS) $(UDEV_CFLAGS) $(CWARNFLAGS) 30*4882a593Smuzhiyun 31*4882a593SmuzhiyunAM_CPPFLAGS = \ 32*4882a593Smuzhiyun $(XORG_INCS) \ 33*4882a593Smuzhiyun -I$(top_srcdir)/glamor \ 34*4882a593Smuzhiyun -I$(top_srcdir)/exa \ 35*4882a593Smuzhiyun -I$(top_srcdir)/dri3 \ 36*4882a593Smuzhiyun -I$(srcdir)/../../ddc \ 37*4882a593Smuzhiyun -I$(srcdir)/../../dri2 \ 38*4882a593Smuzhiyun -I$(srcdir)/../../i2c \ 39*4882a593Smuzhiyun -I$(srcdir)/../../modes \ 40*4882a593Smuzhiyun -I$(srcdir)/../../parser \ 41*4882a593Smuzhiyun -I$(srcdir)/../../ramdac \ 42*4882a593Smuzhiyun $(NULL) 43*4882a593Smuzhiyun 44*4882a593Smuzhiyunmodesetting_drv_la_LTLIBRARIES = modesetting_drv.la 45*4882a593Smuzhiyunmodesetting_drv_la_LDFLAGS = -module -avoid-version 46*4882a593Smuzhiyunmodesetting_drv_la_LIBADD = $(UDEV_LIBS) $(DRM_LIBS) $(RGA_LIBS) 47*4882a593Smuzhiyunmodesetting_drv_ladir = @moduledir@/drivers 48*4882a593Smuzhiyun 49*4882a593Smuzhiyunmodesetting_drv_la_SOURCES = \ 50*4882a593Smuzhiyun dri2.c \ 51*4882a593Smuzhiyun driver.c \ 52*4882a593Smuzhiyun driver.h \ 53*4882a593Smuzhiyun drmmode_display.c \ 54*4882a593Smuzhiyun drmmode_display.h \ 55*4882a593Smuzhiyun dumb_bo.c \ 56*4882a593Smuzhiyun dumb_bo.h \ 57*4882a593Smuzhiyun present.c \ 58*4882a593Smuzhiyun vblank.c \ 59*4882a593Smuzhiyun pageflip.c \ 60*4882a593Smuzhiyun exa.c \ 61*4882a593Smuzhiyun xv.c \ 62*4882a593Smuzhiyun $(NULL) 63*4882a593Smuzhiyun 64*4882a593Smuzhiyunif DRI3 65*4882a593Smuzhiyunmodesetting_drv_la_SOURCES += dri3.c 66*4882a593Smuzhiyunendif 67*4882a593Smuzhiyun 68*4882a593Smuzhiyundrivermandir = $(DRIVER_MAN_DIR) 69*4882a593Smuzhiyundriverman_PRE = modesetting.man 70*4882a593Smuzhiyundriverman_DATA = $(driverman_PRE:man=@DRIVER_MAN_SUFFIX@) 71*4882a593Smuzhiyun 72*4882a593SmuzhiyunEXTRA_DIST = modesetting.man 73*4882a593Smuzhiyun 74*4882a593SmuzhiyunCLEANFILES = $(driverman_DATA) 75