summaryrefslogtreecommitdiffstats
path: root/vidix/Makefile
blob: f9f04c4894f14286e40d0e0d78a0cbb6dc5d29bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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\

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_PM2)                += pm2_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
# that includes svgalib_helper.o:
#CFLAGS += -DDEV_SVGA=\"/dev/svga\" -DCONFIG_SVGAHELPER -Isvgalib_helper/

libs: pci_names.c

dep depend:: pci_names.c

include ../mpcommon.mak

mga_crtc2_vid.o: mga_vid.c
	$(CC) -c $(CFLAGS) -DCRTC2 -o $@ $<

rage128_vid.o: radeon_vid.c
	$(CC) -c $(CFLAGS) -DRAGE128 -o $@ $<

pci_names.c pci_dev_ids.c: pci.db
	LC_ALL=C $(AWK) -f pci_db2c.awk $<

clean::
	rm -f pci_*.c pci_*.h