103b705cfSriastradh# Copyright 2005 Adam Jackson. 203b705cfSriastradh# 303b705cfSriastradh# Permission is hereby granted, free of charge, to any person obtaining a 403b705cfSriastradh# copy of this software and associated documentation files (the "Software"), 503b705cfSriastradh# to deal in the Software without restriction, including without limitation 603b705cfSriastradh# on the rights to use, copy, modify, merge, publish, distribute, sub 703b705cfSriastradh# license, and/or sell copies of the Software, and to permit persons to whom 803b705cfSriastradh# the Software is furnished to do so, subject to the following conditions: 903b705cfSriastradh# 1003b705cfSriastradh# The above copyright notice and this permission notice (including the next 1103b705cfSriastradh# paragraph) shall be included in all copies or substantial portions of the 1203b705cfSriastradh# Software. 1303b705cfSriastradh# 1403b705cfSriastradh# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 1503b705cfSriastradh# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 1603b705cfSriastradh# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 1703b705cfSriastradh# ADAM JACKSON BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 1803b705cfSriastradh# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 1903b705cfSriastradh# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 2003b705cfSriastradh 2103b705cfSriastradhSUBDIRS = brw fb 2203b705cfSriastradh 2303b705cfSriastradhAM_CFLAGS = \ 2403b705cfSriastradh @CWARNFLAGS@ \ 2503b705cfSriastradh -I$(top_srcdir)/src \ 2603b705cfSriastradh -I$(top_srcdir)/src/render_program \ 2742542f5fSchristos $(XORG_CFLAGS) \ 2842542f5fSchristos $(UDEV_CFLAGS) \ 2942542f5fSchristos $(DRM_CFLAGS) \ 3003b705cfSriastradh $(NULL) 3103b705cfSriastradh 3203b705cfSriastradhif VALGRIND 3342542f5fSchristosAM_CFLAGS += $(VALGRIND_CFLAGS) 3403b705cfSriastradhendif 3503b705cfSriastradh 3603b705cfSriastradhnoinst_LTLIBRARIES = libsna.la 3703b705cfSriastradhlibsna_la_LDFLAGS = -pthread 3842542f5fSchristoslibsna_la_LIBADD = $(UDEV_LIBS) -lm $(DRM_LIBS) brw/libbrw.la fb/libfb.la ../../libobj/libcompat.la 3903b705cfSriastradh 4003b705cfSriastradhlibsna_la_SOURCES = \ 4103b705cfSriastradh atomic.h \ 4203b705cfSriastradh blt.c \ 4303b705cfSriastradh compiler.h \ 4413496ba1Ssnj debug.h \ 4503b705cfSriastradh kgem.c \ 4603b705cfSriastradh kgem.h \ 4703b705cfSriastradh rop.h \ 4803b705cfSriastradh sna.h \ 4903b705cfSriastradh sna_accel.c \ 5042542f5fSchristos sna_acpi.c \ 5103b705cfSriastradh sna_blt.c \ 5203b705cfSriastradh sna_composite.c \ 5303b705cfSriastradh sna_cpu.c \ 5403b705cfSriastradh sna_cpuid.h \ 5503b705cfSriastradh sna_damage.c \ 5603b705cfSriastradh sna_damage.h \ 5703b705cfSriastradh sna_display.c \ 5803b705cfSriastradh sna_display_fake.c \ 5903b705cfSriastradh sna_driver.c \ 6003b705cfSriastradh sna_glyphs.c \ 6103b705cfSriastradh sna_gradient.c \ 6203b705cfSriastradh sna_io.c \ 6303b705cfSriastradh sna_module.h \ 6403b705cfSriastradh sna_render.c \ 6503b705cfSriastradh sna_render.h \ 6603b705cfSriastradh sna_render_inline.h \ 6703b705cfSriastradh sna_reg.h \ 6803b705cfSriastradh sna_stream.c \ 6942542f5fSchristos sna_trapezoids.h \ 7003b705cfSriastradh sna_trapezoids.c \ 7142542f5fSchristos sna_trapezoids_boxes.c \ 7242542f5fSchristos sna_trapezoids_imprecise.c \ 7342542f5fSchristos sna_trapezoids_mono.c \ 7442542f5fSchristos sna_trapezoids_precise.c \ 7503b705cfSriastradh sna_tiling.c \ 7603b705cfSriastradh sna_transform.c \ 7703b705cfSriastradh sna_threads.c \ 7803b705cfSriastradh sna_vertex.c \ 7903b705cfSriastradh sna_video.c \ 8003b705cfSriastradh sna_video.h \ 8103b705cfSriastradh sna_video_overlay.c \ 8203b705cfSriastradh sna_video_sprite.c \ 8303b705cfSriastradh sna_video_textured.c \ 8403b705cfSriastradh gen2_render.c \ 8503b705cfSriastradh gen2_render.h \ 8603b705cfSriastradh gen3_render.c \ 8703b705cfSriastradh gen3_render.h \ 8842542f5fSchristos gen4_common.c \ 8942542f5fSchristos gen4_common.h \ 9003b705cfSriastradh gen4_render.c \ 9103b705cfSriastradh gen4_render.h \ 9203b705cfSriastradh gen4_source.c \ 9303b705cfSriastradh gen4_source.h \ 9403b705cfSriastradh gen4_vertex.c \ 9503b705cfSriastradh gen4_vertex.h \ 9603b705cfSriastradh gen5_render.c \ 9703b705cfSriastradh gen5_render.h \ 9842542f5fSchristos gen6_common.c \ 9942542f5fSchristos gen6_common.h \ 10003b705cfSriastradh gen6_render.c \ 10103b705cfSriastradh gen6_render.h \ 10203b705cfSriastradh gen7_render.c \ 10303b705cfSriastradh gen7_render.h \ 10442542f5fSchristos gen8_eu.c \ 10542542f5fSchristos gen8_eu.h \ 10642542f5fSchristos gen8_render.c \ 10742542f5fSchristos gen8_render.h \ 10842542f5fSchristos gen8_vertex.c \ 10942542f5fSchristos gen8_vertex.h \ 110fe8aea9eSmrg gen9_render.c \ 111fe8aea9eSmrg gen9_render.h \ 11213496ba1Ssnj xassert.h \ 11303b705cfSriastradh $(NULL) 11403b705cfSriastradh 11503b705cfSriastradhif DRI2 11642542f5fSchristosAM_CFLAGS += $(DRI2_CFLAGS) 11742542f5fSchristoslibsna_la_SOURCES += sna_dri2.c 11803b705cfSriastradhlibsna_la_LIBADD += $(DRI2_LIBS) @CLOCK_GETTIME_LIBS@ 11903b705cfSriastradhendif 12003b705cfSriastradh 12142542f5fSchristosif DRI3 12242542f5fSchristosAM_CFLAGS += $(DRI3_CFLAGS) 12342542f5fSchristoslibsna_la_SOURCES += sna_dri3.c 12442542f5fSchristoslibsna_la_LIBADD += $(DRI3_LIBS) 12542542f5fSchristosendif 12642542f5fSchristos 12742542f5fSchristosif PRESENT 12842542f5fSchristosAM_CFLAGS += $(PRESENT_CFLAGS) 12942542f5fSchristoslibsna_la_SOURCES += sna_present.c 13042542f5fSchristoslibsna_la_LIBADD += $(PRESENT_LIBS) 13142542f5fSchristosendif 13242542f5fSchristos 13303b705cfSriastradhif XVMC 13403b705cfSriastradhlibsna_la_SOURCES += \ 13503b705cfSriastradh sna_video_hwmc.h \ 13603b705cfSriastradh sna_video_hwmc.c \ 13703b705cfSriastradh $(NULL) 13803b705cfSriastradhendif 13903b705cfSriastradh 14003b705cfSriastradhif FULL_DEBUG 14103b705cfSriastradhlibsna_la_SOURCES += \ 14203b705cfSriastradh kgem_debug.c \ 14303b705cfSriastradh kgem_debug.h \ 14403b705cfSriastradh kgem_debug_gen2.c \ 14503b705cfSriastradh kgem_debug_gen3.c \ 14603b705cfSriastradh kgem_debug_gen4.c \ 14703b705cfSriastradh kgem_debug_gen5.c \ 14803b705cfSriastradh kgem_debug_gen6.c \ 14903b705cfSriastradh kgem_debug_gen7.c \ 15003b705cfSriastradh $(NULL) 15103b705cfSriastradhendif 15203b705cfSriastradh 15303b705cfSriastradhif HAVE_DOT_GIT 15403b705cfSriastradhgit_version.h: $(top_srcdir)/.git/HEAD $(shell sed -e '/ref:/!d' -e 's#ref: *#$(top_srcdir)/.git/#' < $(top_srcdir)/.git/HEAD) 15503b705cfSriastradh @echo "Recording git-tree used for compilation: `git describe`" 15603b705cfSriastradh @V=`git describe`; echo "static const char git_version[] = \"$$V\";" > git_version.h 15703b705cfSriastradhsna_driver.c: git_version.h 15803b705cfSriastradhendif 15942542f5fSchristos 16042542f5fSchristosAM_CFLAGS += @NOWARNFLAGS@ 161