Makefile.am revision 2f39173d
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
29radeon_drv_la_LIBADD = $(LIBDRM_RADEON_LIBS)
30
31if DRI
32RADEON_DRI_SRCS = radeon_dri.c
33radeon_drv_la_LIBADD += $(DRI_LIBS)
34endif
35
36RADEON_ATOMBIOS_SOURCES = \
37	AtomBios/CD_Operations.c \
38	AtomBios/Decoder.c \
39	AtomBios/hwserv_drv.c \
40	AtomBios/includes/atombios.h \
41        AtomBios/includes/CD_binding.h \
42        AtomBios/includes/CD_Common_Types.h \
43        AtomBios/includes/CD_Definitions.h \
44        AtomBios/includes/CD_hw_services.h \
45        AtomBios/includes/CD_Opcodes.h \
46        AtomBios/includes/CD_Structs.h \
47        AtomBios/includes/Decoder.h \
48        AtomBios/includes/ObjectID.h \
49        AtomBios/includes/regsdef.h
50
51XMODE_SRCS=\
52        local_xf86Rename.h \
53	parser/xf86Parser.h \
54        parser/xf86Optrec.h \
55        modes/xf86Modes.h \
56        modes/xf86Modes.c \
57        modes/xf86cvt.c \
58        modes/xf86Crtc.h \
59        modes/xf86Crtc.c \
60        modes/xf86Cursors.c \
61        modes/xf86EdidModes.c \
62        modes/xf86RandR12.c \
63        modes/xf86RandR12.h \
64        modes/xf86Rename.h \
65        modes/xf86Rotate.c \
66        modes/xf86DiDGA.c
67
68if XF86DRM_MODE
69RADEON_KMS_SRCS=radeon_dri2.c radeon_kms.c drmmode_display.c radeon_vbo.c
70endif
71
72if USE_EXA
73RADEON_EXA_SOURCES = radeon_exa.c r600_exa.c r6xx_accel.c r600_textured_videofuncs.c r600_shader.c
74endif
75
76AM_CFLAGS = \
77            @LIBDRM_RADEON_CFLAGS@ \
78            @XORG_CFLAGS@ \
79            @DRI_CFLAGS@ \
80            @XMODES_CFLAGS@ \
81            @LIBUDEV_CFLAGS@ \
82            -DDISABLE_EASF \
83            -DENABLE_ALL_SERVICE_FUNCTIONS \
84            -DATOM_BIOS \
85            -DATOM_BIOS_PARSER \
86            -DDRIVER_PARSER
87
88INCLUDES = -I$(srcdir)/AtomBios/includes
89
90if XSERVER_LIBPCIACCESS
91ati_drv_la_LIBADD = $(PCIACCESS_LIBS)
92radeon_drv_la_LIBADD += $(PCIACCESS_LIBS)
93endif
94
95if LIBUDEV
96radeon_drv_la_LIBADD += $(LIBUDEV_LIBS)
97endif
98
99ati_drv_la_LTLIBRARIES = ati_drv.la
100ati_drv_la_LDFLAGS = -module -avoid-version
101ati_drv_ladir = @moduledir@/drivers
102ati_drv_la_SOURCES = \
103	ati.c atimodule.c
104
105radeon_drv_la_LTLIBRARIES = radeon_drv.la
106radeon_drv_la_LDFLAGS = -module -avoid-version
107radeon_drv_ladir = @moduledir@/drivers
108radeon_drv_la_SOURCES = \
109	radeon_accel.c radeon_cursor.c radeon_legacy_memory.c \
110	radeon_driver.c radeon_video.c radeon_bios.c radeon_mm_i2c.c \
111	radeon_vip.c radeon_misc.c radeon_probe.c \
112	legacy_crtc.c legacy_output.c \
113	radeon_textured_video.c radeon_pm.c \
114	radeon_crtc.c radeon_output.c radeon_modes.c radeon_tv.c \
115	$(RADEON_ATOMBIOS_SOURCES) radeon_atombios.c radeon_atomwrapper.c \
116	$(RADEON_DRI_SRCS) $(RADEON_EXA_SOURCES) atombios_output.c atombios_crtc.c \
117	$(RADEON_KMS_SRCS)
118
119if XMODES
120radeon_drv_la_SOURCES += \
121	$(XMODE_SRCS)
122endif
123
124theatre_detect_drv_la_LTLIBRARIES = theatre_detect_drv.la
125theatre_detect_drv_la_LDFLAGS = -module -avoid-version
126theatre_detect_drv_ladir = @moduledir@/multimedia
127theatre_detect_drv_la_SOURCES = \
128	theatre_detect.c theatre_detect_module.c
129
130theatre_drv_la_LTLIBRARIES = theatre_drv.la
131theatre_drv_la_LDFLAGS = -module -avoid-version
132theatre_drv_ladir = @moduledir@/multimedia
133
134theatre_drv_la_SOURCES = \
135	theatre.c theatre_module.c
136
137theatre200_drv_la_LTLIBRARIES = theatre200_drv.la
138theatre200_drv_la_LDFLAGS = -module -avoid-version
139theatre200_drv_ladir = @moduledir@/multimedia
140theatre200_drv_la_CFLAGS = \
141	$(AM_CFLAGS) -DMICROC_DIR=\"$(theatre200_drv_ladir)\"
142theatre200_drv_la_SOURCES = \
143	theatre200.c theatre200_module.c
144
145EXTRA_DIST = \
146	$(XMODE_SRCS) \
147	radeon_render.c \
148	radeon_accelfuncs.c \
149	radeon_textured_videofuncs.c \
150	r600_reg.h \
151	r600_reg_auto_r6xx.h \
152	r600_reg_r6xx.h \
153	r600_reg_r7xx.h \
154	r600_shader.h \
155	r600_state.h \
156	ati.h \
157	ativersion.h \
158	bicubic_table.h \
159	generic_bus.h \
160	radeon_commonfuncs.c \
161	radeon_dri.h \
162	radeon_drm.h \
163	radeon_dummy_bufmgr.h \
164	radeon_exa_render.c \
165	radeon_exa_funcs.c \
166	radeon.h \
167	radeon_macros.h \
168	radeon_probe.h \
169	radeon_reg.h \
170	radeon_version.h \
171	radeon_vbo.h \
172	radeon_video.h \
173	radeon_tv.h \
174	radeon_atomwrapper.h \
175	simple_list.h \
176	theatre200.h \
177	theatre_detect.h \
178	theatre.h \
179	theatre_reg.h \
180	atipciids.h \
181	atipcirename.h \
182	ati_pciids_gen.h \
183	radeon_chipinfo_gen.h \
184	radeon_chipset_gen.h \
185	radeon_pci_chipset_gen.h \
186	radeon_pci_device_match_gen.h \
187	pcidb/ati_pciids.csv \
188	pcidb/parse_pci_ids.pl \
189	radeon_atombios.h \
190	radeon_dri2.h \
191	drmmode_display.h
192