115 lines
2.8 KiB
Makefile
115 lines
2.8 KiB
Makefile
#
|
|
# Makefile for the drm device driver. This driver provides support for
|
|
# the Direct Rendering Infrastructure (DRI) in XFree86 4.x.
|
|
#
|
|
# Note! Dependencies are done automagically by 'make dep', which also
|
|
# removes any old dependencies. DON'T put your own dependencies here
|
|
# unless it's something special (ie not a .c file).
|
|
#
|
|
# Note 2! The CFLAGS definitions are now inherited from the
|
|
# parent makes..
|
|
#
|
|
|
|
O_TARGET := drm.o
|
|
|
|
L_OBJS := init.o memory.o proc.o auth.o context.o drawable.o bufs.o \
|
|
lists.o lock.o ioctl.o fops.o vm.o dma.o ctxbitmap.o \
|
|
agpsupport.o
|
|
|
|
M_OBJS :=
|
|
|
|
ifdef CONFIG_DRM_AGP
|
|
L_OBJS += agpsupport.o
|
|
endif
|
|
|
|
ifeq ($(CONFIG_DRM_GAMMA),y)
|
|
OX_OBJS += gamma_drv.o
|
|
O_OBJS += gamma_dma.o
|
|
else
|
|
ifeq ($(CONFIG_DRM_GAMMA),m)
|
|
MIX_OBJS += gamma_drv.o
|
|
MI_OBJS += gamma_dma.o
|
|
M_OBJS += gamma.o
|
|
endif
|
|
endif
|
|
|
|
ifeq ($(CONFIG_DRM_TDFX),y)
|
|
OX_OBJS += tdfx_drv.o
|
|
O_OBJS += tdfx_context.o
|
|
else
|
|
ifeq ($(CONFIG_DRM_TDFX),m)
|
|
MIX_OBJS += tdfx_drv.o
|
|
MI_OBJS += tdfx_context.o
|
|
M_OBJS += tdfx.o
|
|
endif
|
|
endif
|
|
|
|
ifeq ($(CONFIG_DRM_MGA),y)
|
|
OX_OBJS += mga_drv.o
|
|
O_OBJS += mga_context.o mga_dma.o mga_bufs.o mga_state.o
|
|
else
|
|
ifeq ($(CONFIG_DRM_MGA),m)
|
|
MIX_OBJS += mga_drv.o
|
|
MI_OBJS += mga_context.o mga_dma.o mga_bufs.o mga_state.o
|
|
M_OBJS += mga.o
|
|
endif
|
|
endif
|
|
|
|
ifeq ($(CONFIG_DRM_I810),y)
|
|
OX_OBJS += i810_drv.o
|
|
O_OBJS += i810_context.o i810_bufs.o i810_dma.o
|
|
else
|
|
ifeq ($(CONFIG_DRM_I810),m)
|
|
MIX_OBJS += i810_drv.o
|
|
MI_OBJS += i810_context.o i810_bufs.o i810_dma.o
|
|
M_OBJS += i810.o
|
|
endif
|
|
endif
|
|
|
|
ifeq ($(CONFIG_DRM_R128),y)
|
|
OX_OBJS += r128_drv.o
|
|
O_OBJS += r128_context.o r128_bufs.o r128_dma.o
|
|
else
|
|
ifeq ($(CONFIG_DRM_R128),m)
|
|
MIX_OBJS += r128_drv.o
|
|
MI_OBJS += r128_context.o r128_bufs.o r128_dma.o
|
|
M_OBJS += r128.o
|
|
endif
|
|
endif
|
|
|
|
ifeq ($(CONFIG_DRM_FFB),y)
|
|
OX_OBJS += ffb_drv.o
|
|
O_OBJS += ffb_context.o
|
|
else
|
|
ifeq ($(CONFIG_DRM_FFB),m)
|
|
MIX_OBJC += ffb_drv.o
|
|
MI_OBJS += ffb_context.o
|
|
M_OBJS += ffb.o
|
|
endif
|
|
endif
|
|
|
|
O_OBJS += $(L_OBJS)
|
|
|
|
include $(TOPDIR)/Rules.make
|
|
|
|
gamma.o : gamma_drv.o gamma_dma.o $(L_OBJS)
|
|
$(LD) $(LD_RFLAG) -r -o $@ gamma_drv.o gamma_dma.o $(L_OBJS)
|
|
|
|
tdfx.o: tdfx_drv.o tdfx_context.o $(L_OBJS)
|
|
$(LD) $(LD_RFLAG) -r -o $@ tdfx_drv.o tdfx_context.o $(L_OBJS)
|
|
|
|
mga.o: mga_drv.o mga_context.o mga_dma.o mga_bufs.o mga_state.o $(L_OBJS)
|
|
$(LD) $(LD_RFLAG) -r -o $@ mga_drv.o mga_bufs.o mga_dma.o \
|
|
mga_context.o mga_state.o $(L_OBJS)
|
|
|
|
i810.o: i810_drv.o i810_context.o i810_bufs.o i810_dma.o $(L_OBJS)
|
|
$(LD) $(LD_RFLAG) -r -o $@ i810_drv.o i810_bufs.o i810_dma.o \
|
|
i810_context.o $(L_OBJS)
|
|
|
|
r128.o: r128_drv.o r128_context.o r128_bufs.o r128_dma.o $(L_OBJS)
|
|
$(LD) $(LD_RFLAG) -r -o $@ r128_drv.o r128_bufs.o r128_dma.o \
|
|
r128_context.o $(L_OBJS)
|
|
|
|
ffb.o: ffb_drv.o ffb_context.o $(L_OBJS)
|
|
$(LD) $(LD_RFLAG) -r -o $@ ffb_drv.o ffb_context.o $(L_OBJS)
|