Mercurial > mplayer.hg
changeset 32241:04a875c8dc3e
Use dependency files to track the compile-time dependencies of kernel modules.
author | diego |
---|---|
date | Mon, 20 Sep 2010 19:49:54 +0000 |
parents | 974e9c9fa9c5 |
children | 7583077e9db1 |
files | Makefile |
diffstat | 1 files changed, 2 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile Mon Sep 20 19:47:45 2010 +0000 +++ b/Makefile Mon Sep 20 19:49:54 2010 +0000 @@ -1086,15 +1086,12 @@ KERNEL_OBJS = $(addprefix drivers/, mga_vid.o tdfx_vid.o radeon_vid.o rage128_vid.o) MODULES_DIR = /lib/modules/$(KERNEL_VERSION)/misc DRIVER_OBJS = $(KERNEL_OBJS) drivers/mga_vid_test drivers/tdfx_vid_test +DRIVER_DEP_FILES = $(KERNEL_OBJS:.o=.d) drivers/mga_vid_test.d drivers/tdfx_vid_test.d drivers: $(DRIVER_OBJS) $(DRIVER_OBJS): CFLAGS = $(KERNEL_CFLAGS) -drivers/mga_vid.o: drivers/mga_vid.c drivers/mga_vid.h -drivers/tdfx_vid.o: drivers/tdfx_vid.c drivers/3dfx.h drivers/radeon_vid.o drivers/rage128_vid.o: CFLAGS += -fomit-frame-pointer -fno-strict-aliasing -fno-common -ffast-math -drivers/radeon_vid.o: drivers/radeon_vid.c drivers/radeon.h drivers/radeon_vid.h -drivers/rage128_vid.o: drivers/radeon_vid.c drivers/radeon.h drivers/radeon_vid.h install-drivers: $(DRIVER_OBJS) -mkdir -p $(MODULES_DIR) @@ -1155,7 +1152,7 @@ --include $(DEP_FILES) +-include $(DEP_FILES) $(DRIVER_DEP_FILES) .PHONY: all doxygen *install* *tools drivers dhahelper* .PHONY: checkheaders *clean tests