Merged mga branch with trunk
[platform/upstream/libdrm.git] / linux / Makefile.kernel
1 #
2 # Makefile for the drm device driver.  This driver provides support for
3 # the Direct Rendering Infrastructure (DRI) in XFree86 4.x.
4 #
5 # Note! Dependencies are done automagically by 'make dep', which also
6 # removes any old dependencies. DON'T put your own dependencies here
7 # unless it's something special (ie not a .c file).
8 #
9 # Note 2! The CFLAGS definitions are now inherited from the
10 # parent makes..
11 #
12 # $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/Makefile.kernel,v 1.5 2000/02/14 06:27:25 martin Exp $
13
14 L_TARGET        := libdrm.a
15
16 L_OBJS          := init.o memory.o proc.o auth.o context.o drawable.o bufs.o \
17                         lists.o lock.o ioctl.o fops.o vm.o dma.o ctxbitmap.o \
18                         agpsupport.o
19
20 M_OBJS          := 
21
22 ifdef CONFIG_DRM_GAMMA
23 M_OBJS          += gamma.o
24 endif
25
26 ifdef CONFIG_DRM_TDFX
27 M_OBJS          += tdfx.o
28 endif
29
30 ifdef CONFIG_DRM_MGA
31 M_OBJS          += mga.o
32 endif
33
34 ifdef CONFIG_DRM_R128
35 M_OBJS          += r128.o
36 endif
37
38 include $(TOPDIR)/Rules.make
39
40 gamma.o: gamma_drv.o gamma_dma.o $(L_TARGET)
41         $(LD) $(LD_RFLAG) -r -o $@ gamma_drv.o gamma_dma.o -L. -ldrm
42
43 tdfx.o: tdfx_drv.o tdfx_context.o $(L_TARGET)
44         $(LD) $(LD_RFLAG) -r -o $@ tdfx_drv.o tdfx_context.o -L. -ldrm
45
46 i810.o: i810_drv.o i810_context.o $(L_TARGET)
47         $(LD) $(LD_RFLAG) -r -o $@ i810_drv.o i810_bufs.o i810_dma.o i810_context.o -L. -ldrm
48
49 mga.o: mga_drv.o mga_context.o mga_dma.o mga_bufs.o $(L_TARGET)
50         $(LD) $(LD_RFLAG) -r -o $@ mga_drv.o mga_bufs.o mga_dma.o mga_context.o mga_state.o -L. -ldrm
51