[MPlayer-cvslog] r32325 - in trunk: Makefile drivers

diego subversion at mplayerhq.hu
Mon Sep 20 21:49:54 CEST 2010


Author: diego
Date: Mon Sep 20 21:49:54 2010
New Revision: 32325

Log:
Use dependency files to track the compile-time dependencies of kernel modules.

Modified:
   trunk/Makefile
   trunk/drivers/   (props changed)

Modified: trunk/Makefile
==============================================================================
--- trunk/Makefile	Mon Sep 20 21:47:45 2010	(r32324)
+++ trunk/Makefile	Mon Sep 20 21:49:54 2010	(r32325)
@@ -1086,15 +1086,12 @@ KERNEL_CFLAGS = -O2 -D__KERNEL__ -DMODUL
 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 @@ dhahelperwinclean:
 
 
 
--include $(DEP_FILES)
+-include $(DEP_FILES) $(DRIVER_DEP_FILES)
 
 .PHONY: all doxygen *install* *tools drivers dhahelper*
 .PHONY: checkheaders *clean tests


More information about the MPlayer-cvslog mailing list