Makefile.am revision 6322c902
1#  Copyright 2005 Adam Jackson.
2#  Copyright 2005 Red Hat, Inc.
3#
4#  Permission is hereby granted, free of charge, to any person obtaining a
5#  copy of this software and associated documentation files (the "Software"),
6#  to deal in the Software without restriction, including without limitation
7#  on the rights to use, copy, modify, merge, publish, distribute, sub
8#  license, and/or sell copies of the Software, and to permit persons to whom
9#  the Software is furnished to do so, subject to the following conditions:
10#
11#  The above copyright notice and this permission notice (including the next
12#  paragraph) shall be included in all copies or substantial portions of the
13#  Software.
14#
15#  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16#  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17#  FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.  IN NO EVENT SHALL
18#  ADAM JACKSON BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19#  IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20#  CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
22
23# this is obnoxious:
24# -module lets us name the module exactly how we want
25# -avoid-version prevents gratuitous .0.0.0 version numbers on the end
26# _ladir passes a dummy rpath to libtool so the thing will actually link
27# TODO: -nostdlib/-Bstatic/-lgcc platform magic, not installing the .a, etc.
28
29ati_drv_la_LIBADD = $(PCIACCESS_LIBS)
30radeon_drv_la_LIBADD = $(LIBDRM_RADEON_LIBS)
31
32RADEON_KMS_SRCS=radeon_dri2.c radeon_dri3.c radeon_drm_queue.c radeon_kms.c \
33	radeon_present.c radeon_sync.c radeon_vbo.c radeon_bo_helper.c \
34	drmmode_display.c
35
36RADEON_EXA_SOURCES = radeon_exa.c r600_exa.c r6xx_accel.c r600_textured_videofuncs.c r600_shader.c radeon_exa_shared.c \
37	evergreen_exa.c evergreen_accel.c evergreen_shader.c evergreen_textured_videofuncs.c cayman_accel.c cayman_shader.c
38
39AM_CFLAGS = \
40            @LIBDRM_RADEON_CFLAGS@ \
41            @XORG_CFLAGS@ \
42            @LIBUDEV_CFLAGS@
43
44if LIBUDEV
45radeon_drv_la_LIBADD += $(LIBUDEV_LIBS)
46endif
47
48ati_drv_la_LTLIBRARIES = ati_drv.la
49ati_drv_la_LDFLAGS = -module -avoid-version
50ati_drv_ladir = @moduledir@/drivers
51ati_drv_la_SOURCES = \
52	ati.c atimodule.c
53
54radeon_drv_la_LTLIBRARIES = radeon_drv.la
55radeon_drv_la_LDFLAGS = -module -avoid-version
56radeon_drv_ladir = @moduledir@/drivers
57radeon_drv_la_SOURCES = \
58	radeon_accel.c radeon_video.c \
59	radeon_misc.c radeon_probe.c \
60	radeon_textured_video.c radeon_xvmc.c \
61	$(RADEON_EXA_SOURCES) \
62	$(RADEON_KMS_SRCS)
63
64if GLAMOR
65AM_CFLAGS += @LIBGLAMOR_CFLAGS@
66radeon_drv_la_LIBADD += @LIBGLAMOR_LIBS@
67radeon_drv_la_SOURCES += \
68	 radeon_glamor_wrappers.c \
69	 radeon_glamor.c
70endif
71
72EXTRA_DIST = \
73	radeon_textured_videofuncs.c \
74	r600_reg.h \
75	r600_reg_auto_r6xx.h \
76	r600_reg_r6xx.h \
77	r600_reg_r7xx.h \
78	r600_shader.h \
79	r600_state.h \
80	evergreen_reg.h \
81	evergreen_reg_auto.h \
82	evergreen_shader.h \
83	evergreen_state.h \
84	cayman_reg.h \
85	cayman_reg_auto.h \
86	cayman_shader.h \
87	compat-api.h \
88	ati.h \
89	ativersion.h \
90	bicubic_table.h \
91	bicubic_table.py \
92	radeon_bo_helper.h \
93	radeon_drm_queue.h \
94	radeon_exa_render.c \
95	radeon_exa_funcs.c \
96	radeon_exa_shared.h \
97	radeon_glamor.h \
98	radeon.h \
99	radeon_list.h \
100	radeon_probe.h \
101	radeon_reg.h \
102	radeon_version.h \
103	radeon_vbo.h \
104	radeon_video.h \
105	simple_list.h \
106	atipciids.h \
107	atipcirename.h \
108	ati_pciids_gen.h \
109	radeon_chipinfo_gen.h \
110	radeon_chipset_gen.h \
111	radeon_pci_chipset_gen.h \
112	radeon_pci_device_match_gen.h \
113	pcidb/ati_pciids.csv \
114	pcidb/parse_pci_ids.pl \
115	radeon_dri2.h \
116	drmmode_display.h
117