📄 makefile
字号:
## Makefile for the drm device driver. This driver provides support for# the Direct Rendering Infrastructure (DRI) in XFree86 4.x.## drm.o is a fake target -- it is never built# The real targets are in the module-listO_TARGET := drm.omodule-list := gamma.o tdfx.o r128.o ffb.o mga.o i810.oexport-objs := $(patsubst %.o,%_drv.o,$(module-list))# libs-objs are included in every module so that radical changes to the# architecture of the DRM support library can be made at a later time.## The downside is that each module is larger, and a system that uses# more than one module (i.e., a dual-head system) will use more memory# (but a system that uses exactly one module will use the same amount of# memory).## The upside is that if the DRM support library ever becomes insufficient# for new families of cards, a new library can be implemented for those new# cards without impacting the drivers for the old cards. This is significant,# because testing architectural changes to old cards may be impossible, and# may delay the implementation of a better architecture. We've traded slight# memory waste (in the dual-head case) for greatly improved long-term# maintainability.## NOTE: lib-objs will be eliminated in future versions, thereby# eliminating the need to compile the .o files into every module, but# for now we still need them.#lib-objs := init.o memory.o proc.o auth.o context.o drawable.o bufs.olib-objs += lists.o lock.o ioctl.o fops.o vm.o dma.o ctxbitmap.oifeq ($(CONFIG_AGP),y) lib-objs += agpsupport.oelse ifeq ($(CONFIG_AGP),m) lib-objs += agpsupport.o endifendifgamma-objs := gamma_drv.o gamma_dma.otdfx-objs := tdfx_drv.o tdfx_context.or128-objs := r128_drv.o r128_cce.o r128_context.o r128_bufs.o r128_state.offb-objs := ffb_drv.o ffb_context.omga-objs := mga_drv.o mga_dma.o mga_context.o mga_bufs.o mga_state.oi810-objs := i810_drv.o i810_dma.o i810_context.o i810_bufs.oobj-$(CONFIG_DRM_GAMMA) += gamma.oobj-$(CONFIG_DRM_TDFX) += tdfx.oobj-$(CONFIG_DRM_R128) += r128.oobj-$(CONFIG_DRM_FFB) += ffb.oobj-$(CONFIG_DRM_MGA) += mga.oobj-$(CONFIG_DRM_I810) += i810.o# When linking into the kernel, link the library just once. # If making modules, we include the library into each modulelib-objs-mod := $(patsubst %.o,%-mod.o,$(lib-objs))ifdef MAKING_MODULES lib = drmlib-mod.aelse obj-y += drmlib.aendifinclude $(TOPDIR)/Rules.make$(patsubst %.o,%.c,$(lib-objs-mod)): @ln -sf $(subst -mod,,$@) $@drmlib-mod.a: $(lib-objs-mod) rm -f $@ $(AR) $(EXTRA_ARFLAGS) rcs $@ $(lib-objs-mod)drmlib.a: $(lib-objs) rm -f $@ $(AR) $(EXTRA_ARFLAGS) rcs $@ $(lib-objs)gamma.o: $(gamma-objs) $(lib) $(LD) -r -o $@ $(gamma-objs) $(lib)tdfx.o: $(tdfx-objs) $(lib) $(LD) -r -o $@ $(tdfx-objs) $(lib)mga.o: $(mga-objs) $(lib) $(LD) -r -o $@ $(mga-objs) $(lib)i810.o: $(i810-objs) $(lib) $(LD) -r -o $@ $(i810-objs) $(lib)r128.o: $(r128-objs) $(lib) $(LD) -r -o $@ $(r128-objs) $(lib)ffb.o: $(ffb-objs) $(lib) $(LD) -r -o $@ $(ffb-objs) $(lib)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -