summaryrefslogtreecommitdiffstats
path: root/vidix/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'vidix/Makefile')
-rw-r--r--vidix/Makefile24
1 files changed, 19 insertions, 5 deletions
diff --git a/vidix/Makefile b/vidix/Makefile
index 9f256a18ce..712c86e5b9 100644
--- a/vidix/Makefile
+++ b/vidix/Makefile
@@ -3,15 +3,29 @@ include ../config.mak
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)
-
-OBJS_MPLAYER = mga_crtc2_vid.o \
- rage128_vid.o \
+ pci_dev_ids.c
+
+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