summaryrefslogtreecommitdiff
path: root/linux-core/Makefile.kernel
blob: 44d75c487a1d30daaee878c5c984fab978d2d974 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#
# 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..
#
# $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/drm/kernel/Makefile.kernel,v 1.5 2000/02/14 06:27:25 martin Exp $

L_TARGET        := libdrm.a

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

M_OBJS		:= 

ifdef CONFIG_DRM_GAMMA
M_OBJS          += gamma.o
endif

ifdef CONFIG_DRM_TDFX
M_OBJS          += tdfx.o
endif

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

tdfx.o: tdfx_drv.o tdfx_context.o $(L_TARGET)
	$(LD) $(LD_RFLAG) -r -o $@ tdfx_drv.o tdfx_context.o -L. -ldrm