changeset 22647:ca72ca36b4fd

Simplify compilation command.
author diego
date Sat, 17 Mar 2007 00:52:05 +0000
parents 8c20203d98ca
children 9c884a0a8375
files drivers/Makefile
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/drivers/Makefile	Sat Mar 17 00:45:56 2007 +0000
+++ b/drivers/Makefile	Sat Mar 17 00:52:05 2007 +0000
@@ -20,19 +20,19 @@
 # sis_vid.o
 
 mga_vid.o: mga_vid.c mga_vid.h
-	$(CC) $(CFLAGS) $(INCLUDES) -c $(basename $@).c
+	$(CC) $(CFLAGS) $(INCLUDES) -c $<
 
 mga_vid.ko: mga_vid.c mga_vid.h
 	$(MAKE) -C $(KERNEL_DIR) SUBDIRS=$(PWD) modules
 
 sis_vid.o: sis_vid.c sis_vid.h
-	$(CC) $(CFLAGS) $(INCLUDES) -c $(basename $@).c
+	$(CC) $(CFLAGS) $(INCLUDES) -c $<
 
 mga_vid_test: mga_vid_test.c
 	$(CC) -O $(INCLUDES) -o $@ $@.c
 
 tdfx_vid.o: tdfx_vid.c 3dfx.h
-	$(CC) $(CFLAGS) $(INCLUDES) -c $(basename $@).c
+	$(CC) $(CFLAGS) $(INCLUDES) -c $<
 
 tdfx_vid_tst: tdfx_vid_tst.c
 	$(CC) -O $(INCLUDES) -o $@ $@.c