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-02-22 08:43:59 -07:00
|
|
|
# $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/Makefile.kernel,v 1.5 2000/02/14 06:27:25 martin Exp $
|
1999-12-05 16:10:37 -07:00
|
|
|
|
|
|
|
L_TARGET := libdrm.a
|
|
|
|
|
|
|
|
L_OBJS := init.o memory.o proc.o auth.o context.o drawable.o bufs.o \
|
2000-04-04 16:08:14 -06:00
|
|
|
lists.o lock.o ioctl.o fops.o vm.o dma.o ctxbitmap.o \
|
|
|
|
agpsupport.o
|
1999-12-05 16:10:37 -07:00
|
|
|
|
|
|
|
M_OBJS :=
|
|
|
|
|
|
|
|
ifdef CONFIG_DRM_GAMMA
|
|
|
|
M_OBJS += gamma.o
|
|
|
|
endif
|
|
|
|
|
2000-02-22 08:43:59 -07:00
|
|
|
ifdef CONFIG_DRM_TDFX
|
|
|
|
M_OBJS += tdfx.o
|
|
|
|
endif
|
|
|
|
|
2000-04-04 16:08:14 -06:00
|
|
|
ifdef CONFIG_DRM_MGA
|
|
|
|
M_OBJS += mga.o
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifdef CONFIG_DRM_R128
|
|
|
|
M_OBJS += r128.o
|
|
|
|
endif
|
|
|
|
|
1999-12-05 16:10:37 -07:00
|
|
|
include $(TOPDIR)/Rules.make
|
|
|
|
|
|
|
|
gamma.o: gamma_drv.o gamma_dma.o $(L_TARGET)
|
|
|
|
$(LD) $(LD_RFLAG) -r -o $@ gamma_drv.o gamma_dma.o -L. -ldrm
|
2000-02-22 08:43:59 -07:00
|
|
|
|
|
|
|
tdfx.o: tdfx_drv.o tdfx_context.o $(L_TARGET)
|
|
|
|
$(LD) $(LD_RFLAG) -r -o $@ tdfx_drv.o tdfx_context.o -L. -ldrm
|
2000-04-04 16:08:14 -06:00
|
|
|
|
|
|
|
i810.o: i810_drv.o i810_context.o $(L_TARGET)
|
|
|
|
$(LD) $(LD_RFLAG) -r -o $@ i810_drv.o i810_bufs.o i810_dma.o i810_context.o -L. -ldrm
|
|
|
|
|
|
|
|
mga.o: mga_drv.o mga_context.o mga_dma.o mga_bufs.o $(L_TARGET)
|
|
|
|
$(LD) $(LD_RFLAG) -r -o $@ mga_drv.o mga_bufs.o mga_dma.o mga_context.o mga_state.o -L. -ldrm
|
|
|
|
|