Makefile.am revision 209ff23f
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
29if DRI
30RADEON_DRI_SRCS = radeon_dri.c
31endif
32
33RADEON_ATOMBIOS_SOURCES = \
34	AtomBios/CD_Operations.c \
35	AtomBios/Decoder.c \
36	AtomBios/hwserv_drv.c \
37	AtomBios/includes/atombios.h \
38        AtomBios/includes/CD_binding.h \
39        AtomBios/includes/CD_Common_Types.h \
40        AtomBios/includes/CD_Definitions.h \
41        AtomBios/includes/CD_hw_services.h \
42        AtomBios/includes/CD_Opcodes.h \
43        AtomBios/includes/CD_Structs.h \
44        AtomBios/includes/Decoder.h \
45        AtomBios/includes/ObjectID.h \
46        AtomBios/includes/regsdef.h
47
48XMODE_SRCS=\
49        local_xf86Rename.h \
50	parser/xf86Parser.h \
51        parser/xf86Optrec.h \
52        modes/xf86Modes.h \
53        modes/xf86Modes.c \
54        modes/xf86cvt.c \
55        modes/xf86Crtc.h \
56        modes/xf86Crtc.c \
57        modes/xf86Cursors.c \
58        modes/xf86EdidModes.c \
59        modes/xf86RandR12.c \
60        modes/xf86RandR12.h \
61        modes/xf86Rename.h \
62        modes/xf86Rotate.c \
63        modes/xf86DiDGA.c
64
65if USE_EXA
66RADEON_EXA_SOURCES = radeon_exa.c
67endif
68
69AM_CFLAGS = @XORG_CFLAGS@ @DRI_CFLAGS@ @XMODES_CFLAGS@ -DDISABLE_EASF -DENABLE_ALL_SERVICE_FUNCTIONS -DATOM_BIOS -DATOM_BIOS_PARSER -DDRIVER_PARSER
70
71INCLUDES = -I$(srcdir)/AtomBios/includes
72
73ati_drv_la_LTLIBRARIES = ati_drv.la
74ati_drv_la_LDFLAGS = -module -avoid-version
75ati_drv_ladir = @moduledir@/drivers
76ati_drv_la_SOURCES = \
77	ati.c atimodule.c
78
79radeon_drv_la_LTLIBRARIES = radeon_drv.la
80radeon_drv_la_LDFLAGS = -module -avoid-version
81radeon_drv_ladir = @moduledir@/drivers
82radeon_drv_la_SOURCES = \
83	radeon_accel.c radeon_cursor.c radeon_dga.c \
84	radeon_driver.c radeon_video.c radeon_bios.c radeon_mm_i2c.c \
85	radeon_vip.c radeon_misc.c radeon_probe.c \
86	legacy_crtc.c legacy_output.c \
87	radeon_textured_video.c \
88	radeon_crtc.c radeon_output.c radeon_modes.c radeon_tv.c \
89	$(RADEON_ATOMBIOS_SOURCES) radeon_atombios.c radeon_atomwrapper.c \
90	$(RADEON_DRI_SRCS) $(RADEON_EXA_SOURCES) atombios_output.c atombios_crtc.c
91
92if XMODES
93radeon_drv_la_SOURCES += \
94	$(XMODE_SRCS)
95endif
96
97theatre_detect_drv_la_LTLIBRARIES = theatre_detect_drv.la
98theatre_detect_drv_la_LDFLAGS = -module -avoid-version
99theatre_detect_drv_ladir = @moduledir@/multimedia
100theatre_detect_drv_la_SOURCES = \
101	theatre_detect.c theatre_detect_module.c
102
103theatre_drv_la_LTLIBRARIES = theatre_drv.la
104theatre_drv_la_LDFLAGS = -module -avoid-version
105theatre_drv_ladir = @moduledir@/multimedia
106
107theatre_drv_la_SOURCES = \
108	theatre.c theatre_module.c
109
110theatre200_drv_la_LTLIBRARIES = theatre200_drv.la
111theatre200_drv_la_LDFLAGS = -module -avoid-version
112theatre200_drv_ladir = @moduledir@/multimedia
113theatre200_drv_la_CFLAGS = \
114	$(AM_CFLAGS) -DMICROC_DIR=\"$(theatre200_drv_ladir)\"
115theatre200_drv_la_SOURCES = \
116	theatre200.c theatre200_module.c
117
118EXTRA_DIST = \
119	$(XMODE_SRCS) \
120	radeon_render.c \
121	radeon_accelfuncs.c \
122	radeon_textured_videofuncs.c \
123	\
124	ati.h \
125	ativersion.h \
126	generic_bus.h \
127	radeon_common.h \
128	radeon_commonfuncs.c \
129	radeon_dri.h \
130	radeon_dripriv.h \
131	radeon_exa_render.c \
132	radeon_exa_funcs.c \
133	radeon.h \
134	radeon_macros.h \
135	radeon_probe.h \
136	radeon_reg.h \
137	radeon_sarea.h \
138	radeon_version.h \
139	radeon_video.h \
140	radeon_tv.h \
141        radeon_atomwrapper.h \
142	theatre200.h \
143	theatre_detect.h \
144	theatre.h \
145	theatre_reg.h \
146	atipciids.h \
147	atipcirename.h \
148	ati_pciids_gen.h \
149	radeon_chipinfo_gen.h \
150	radeon_chipset_gen.h \
151	radeon_pci_chipset_gen.h \
152	radeon_pci_device_match_gen.h \
153	pcidb/ati_pciids.csv \
154	pcidb/parse_pci_ids.pl \
155	radeon_atombios.h
156