xenocara/driver/xf86-video-radeonhd/src/Imakefile
2008-01-05 17:28:11 +00:00

103 lines
2.3 KiB
Plaintext

#define IHaveModules
#include <Server.tmpl>
#include "../RadeonHD.tmpl"
#define ATOM_BIOS_PARSER
#ifdef ATOM_BIOS_PARSER
ATOM_BIOS_PARSER_SRCS = \
rhd_atomwrapper.c \
AtomBios/CD_Operations.c \
AtomBios/Decoder.c \
AtomBios/hwserv_drv.c
ATOM_BIOS_PARSER_OBJS = \
rhd_atomwrapper.o \
AtomBios/CD_Operations.o \
AtomBios/Decoder.o \
AtomBios/hwserv_drv.o
#endif
SRCS = \
rhd_atombios.c \
rhd_i2c.c \
rhd_crtc.c \
rhd_connector.c \
rhd_cursor.c \
rhd_dac.c \
rhd_driver.c \
rhd_edid.c \
rhd_helper.c \
rhd_id.c \
rhd_lut.c \
rhd_lvtma.c \
rhd_modes.c \
rhd_monitor.c \
rhd_output.c \
rhd_pll.c \
rhd_randr.c \
rhd_tmds.c \
rhd_vga.c \
rhd_shadow.c \
$(ATOM_BIOS_PARSER_SRCS) \
git_version.h
OBJS = \
rhd_atombios.o \
rhd_i2c.o \
rhd_crtc.o \
rhd_connector.o \
rhd_cursor.o \
rhd_dac.o \
rhd_driver.o \
rhd_edid.o \
rhd_helper.o \
rhd_id.o \
rhd_lut.o \
rhd_lvtma.o \
rhd_modes.o \
rhd_monitor.o \
rhd_output.o \
rhd_pll.o \
rhd_randr.o \
rhd_tmds.o \
rhd_vga.o \
rhd_shadow.o \
$(ATOM_BIOS_PARSER_OBJS)
INCLUDES = -I. -I$(XF86COMSRC) -I$(XF86OSSRC) \
-I$(SERVERSRC)/mi \
-I$(XF86SRC)/ramdac \
-I$(XF86SRC)/ddc -I$(XF86SRC)/i2c \
-I$(XF86SRC)/rac -I$(XF86SRC)/int10 -I$(SERVERSRC)/render \
-I$(SERVERSRC)/include -I$(XINCLUDESRC) \
-I$(SERVERSRC)/fb \
-I$(XF86SRC) -I$(XF86OSSRC)/bus -I$(XF86SRC)/vbe \
-I/usr/X11R6/lib64/Server/include \
-I/usr/X11R6/lib/Server/include
ATOM_BIOS_INCLUDES = -I./AtomBios/includes
ATOM_BIOS_DEFINES = -DATOM_BIOS=1
XCOMM older versions always have xf86_ansic.h
XF86_ANSIC_DEFINES = -DHAVE_XF86_ANSIC_H=1
#ifdef ATOM_BIOS_PARSER
ATOM_BIOS_PARSER_INCLUDES = -I./AtomBios
ATOM_BIOS_PARSER_DEFINES = -DDRIVER_PARSER -DDISABLE_EASF -DENABLE_ALL_SERVICE_FUNCTIONS -DATOM_BIOS_PARSER=1
#endif
DEFINES = $(INCLUDES) $(ATOM_BIOS_INCLUDES) $(ATOM_BIOS_PARSER_INCLUDES) \
$(ATOM_BIOS_DEFINES) $(ATOM_BIOS_PARSER_DEFINES) \
$(XF86_ANSIC_DEFINES) \
$(RHD_GIT_DEFINES) \
$(RHD_VERSION_DEFINES)
ObjectModuleTarget(radeonhd, $(OBJS))
#ifdef InstallVideoObjectModule
InstallVideoObjectModule(radeonhd,$(MODULEDIR))
#else
InstallObjectModule(radeonhd,$(MODULEDIR),drivers)
#endif
DependTarget()