Add an actual .c file for the rage128_vid kernel module.
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>
Mon, 20 Sep 2010 19:20:06 +0000 (19:20 +0000)
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>
Mon, 20 Sep 2010 19:20:06 +0000 (19:20 +0000)
It's easier to handle compilation and dependencies this way.
We also do this in other places like VIDIX for the Rage128 implementation.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32323 b3059339-0415-0410-9bf9-f77b7e298cf2

Makefile
drivers/rage128_vid.c [new file with mode: 0644]

index 518e81c..310db65 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1095,7 +1095,6 @@ 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
-       $(CC) $(CFLAGS) -DRAGE128 -c $< -o $@
 
 install-drivers: $(DRIVER_OBJS)
        -mkdir -p $(MODULES_DIR)
diff --git a/drivers/rage128_vid.c b/drivers/rage128_vid.c
new file mode 100644 (file)
index 0000000..2cd193a
--- /dev/null
@@ -0,0 +1,3 @@
+#define RAGE128
+
+#include "radeon_vid.c"