diff vidix/Makefile @ 22973:46597c69d843

added conditional vidix drivers compilation
author ben
date Sat, 14 Apr 2007 10:39:17 +0000
parents a7605669b114
children 30341a2c2179
line wrap: on
line diff
--- a/vidix/Makefile	Sat Apr 14 10:07:36 2007 +0000
+++ b/vidix/Makefile	Sat Apr 14 10:39:17 2007 +0000
@@ -3,15 +3,29 @@
 LIBNAME_MPLAYER = libvidix.a
 
 SRCS_MPLAYER    = vidixlib.c \
+		  drivers.c \
 		  dha.c \
 		  mtrr.c \
 		  pci.c \
 		  pci_names.c \
-		  pci_dev_ids.c \
-                  $(wildcard *.c)
+		  pci_dev_ids.c
 
-OBJS_MPLAYER    = mga_crtc2_vid.o \
-                  rage128_vid.o \
+SRCS_MPLAYER-$(CONFIG_VIDIX_CYBERBLADE) 	+= cyberblade_vid.c
+SRCS_MPLAYER-$(CONFIG_VIDIX_MACH64) 		+= mach64_vid.c
+SRCS_MPLAYER-$(CONFIG_VIDIX_MGA) 		+= mga_vid.c
+SRCS_MPLAYER-$(CONFIG_VIDIX_NVIDIA) 		+= nvidia_vid.c
+SRCS_MPLAYER-$(CONFIG_VIDIX_PM3) 		+= pm3_vid.c
+SRCS_MPLAYER-$(CONFIG_VIDIX_RADEON) 		+= radeon_vid.c
+SRCS_MPLAYER-$(CONFIG_VIDIX_SAVAGE) 		+= savage_vid.c
+SRCS_MPLAYER-$(CONFIG_VIDIX_SIS) 		+= sis_vid.c sis_bridge.c
+SRCS_MPLAYER-$(CONFIG_VIDIX_UNICHROME) 		+= unichrome_vid.c
+
+ifeq ($(CONFIG_VIDIX_MGA_CRTC2), yes)
+OBJS_MPLAYER += mga_crtc2_vid.o
+endif
+ifeq ($(CONFIG_VIDIX_RAGE128),yes)
+OBJS_MPLAYER += rage128_vid.o
+endif
 
 # If you want libdha to use svgalib_helper for hardware access,
 # uncomment this statement, and change the -I to the correct directory