X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=Makefile.am;h=a4d07f426af65b3f7def31e7f8723ee4be2208ce;hb=refs%2Fheads%2Ffroyo-x86;hp=6cbd52a95810ded3122f42ac741d3c83b462c74e;hpb=07d23f9c60f9358f064eab7d944f3b28484b51ef;p=android-x86%2Fexternal-libdrm.git diff --git a/Makefile.am b/Makefile.am index 6cbd52a9..a4d07f42 100644 --- a/Makefile.am +++ b/Makefile.am @@ -18,13 +18,55 @@ # 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 +ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS} -AUTOMAKE_OPTIONS = foreign -SUBDIRS = libdrm +DISTCHECK_CONFIGURE_FLAGS = --enable-nouveau-experimental-api --enable-radeon-experimental-api pkgconfigdir = @pkgconfigdir@ pkgconfig_DATA = libdrm.pc -EXTRA_DIST = libdrm.pc.in +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 + +SUBDIRS = . $(LIBKMS_SUBDIR) $(INTEL_SUBDIR) $(NOUVEAU_SUBDIR) $(RADEON_SUBDIR) tests include + +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 + +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 : + cp -r $(kernel_source)/usr/include/drm $(top_srcdir)/include + +commit-headers : copy-headers + git add include + git commit -am "Copy headers from kernel $$(GIT_DIR=$(kernel_source)/.git git describe)"