diff drivers/Makefile @ 22680:29f59ec39e6e

Introduce OBJS variable for the list of objects to build.
author diego
date Sat, 17 Mar 2007 15:41:04 +0000
parents b24dce17634d
children 25109ca96ec1
line wrap: on
line diff
--- a/drivers/Makefile	Sat Mar 17 15:28:02 2007 +0000
+++ b/drivers/Makefile	Sat Mar 17 15:41:04 2007 +0000
@@ -4,7 +4,9 @@
 
 CFLAGS = -O2 -D__KERNEL__ -DMODULE -I$(KERNEL_INCLUDES) -Wall -include $(KERNEL_INCLUDES)/linux/modversions.h
 
-all: mga_vid.o mga_vid_test tdfx_vid.o tdfx_vid_test
+OBJS = mga_vid.o tdfx_vid.o
+
+all: $(OBJS) mga_vid_test tdfx_vid_test
 
 mga_vid.o: mga_vid.c mga_vid.h
 tdfx_vid.o: tdfx_vid.c 3dfx.h
@@ -14,7 +16,7 @@
 
 install:
 	-mkdir -p $(MDIR)
-	install -m 644 mga_vid.o tdfx_vid.o $(MDIR)
+	install -m 644 $(OBJS) $(MDIR)
 	depmod -a
 
 dep depend: