drm/linux-core/Makefile.kernel

118 lines
2.9 KiB
Makefile
Raw Normal View History

1999-12-05 16:10:37 -07:00
#
# 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..
#
2000-07-19 12:38:41 -06:00
O_TARGET := drm.o
1999-12-05 16:10:37 -07:00
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
1999-12-05 16:10:37 -07:00
2000-07-21 09:48:24 -06:00
M_OBJS :=
ifneq ($(CONFIG_AGP),)
2000-07-21 09:48:24 -06:00
L_OBJS += agpsupport.o
endif
1999-12-05 16:10:37 -07:00
2000-07-19 12:38:41 -06:00
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
1999-12-05 16:10:37 -07:00
endif
2000-07-19 12:38:41 -06:00
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
2000-02-22 08:43:59 -07:00
endif
ifneq ($(CONFIG_AGP),)
2000-07-19 12:38:41 -06:00
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
2000-04-04 16:08:14 -06:00
endif
endif
2000-04-04 16:08:14 -06:00
ifneq ($(CONFIG_AGP),)
2000-07-19 12:38:41 -06:00
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
2000-04-04 16:08:14 -06:00
endif
endif
2000-04-04 16:08:14 -06:00
2000-07-19 12:38:41 -06:00
ifeq ($(CONFIG_DRM_R128),y)
OX_OBJS += r128_drv.o
2000-07-19 19:52:00 -06:00
O_OBJS += r128_context.o r128_bufs.o r128_dma.o
2000-07-19 12:38:41 -06:00
else
ifeq ($(CONFIG_DRM_R128),m)
2000-07-19 12:38:41 -06:00
MIX_OBJS += r128_drv.o
2000-07-19 19:52:00 -06:00
MI_OBJS += r128_context.o r128_bufs.o r128_dma.o
2000-07-19 12:38:41 -06:00
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)
1999-12-05 16:10:37 -07:00
include $(TOPDIR)/Rules.make
2000-07-19 12:38:41 -06:00
gamma.o : gamma_drv.o gamma_dma.o $(L_OBJS)
$(LD) $(LD_RFLAG) -r -o $@ gamma_drv.o gamma_dma.o $(L_OBJS)
2000-02-22 08:43:59 -07:00
2000-07-19 12:38:41 -06:00
tdfx.o: tdfx_drv.o tdfx_context.o $(L_OBJS)
$(LD) $(LD_RFLAG) -r -o $@ tdfx_drv.o tdfx_context.o $(L_OBJS)
2000-04-04 16:08:14 -06:00
2000-07-19 12:38:41 -06:00
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)
2000-04-04 16:08:14 -06:00
2000-07-19 19:14:58 -06:00
i810.o: i810_drv.o i810_context.o i810_bufs.o i810_dma.o $(L_OBJS)
2000-07-19 12:38:41 -06:00
$(LD) $(LD_RFLAG) -r -o $@ i810_drv.o i810_bufs.o i810_dma.o \
i810_context.o $(L_OBJS)
2000-04-04 16:08:14 -06:00
r128.o: r128_drv.o r128_context.o r128_bufs.o r128_dma.o $(L_OBJS)
2000-07-19 19:52:00 -06:00
$(LD) $(LD_RFLAG) -r -o $@ r128_drv.o r128_bufs.o r128_dma.o \
r128_context.o $(L_OBJS)
2000-07-19 12:38:41 -06:00
ffb.o: ffb_drv.o ffb_context.o $(L_OBJS)
$(LD) $(LD_RFLAG) -r -o $@ ffb_drv.o ffb_context.o $(L_OBJS)