Mercurial > mplayer.hg
annotate vidix/drivers/Makefile @ 7060:b14880a6cccb
new v4l capture patch by Jindrich Makovicka <makovick@kmlinux.fjfi.cvut.cz>:
- multithreaded audio/video buffering (I know mplayer crew hates threads
but it seems to me as the only way of doing reliable a/v capture)
- a/v timebase synchronization (sample count vs. gettimeofday)
- "immediate" mode support for mplayer
- fixed colorspace stuff - RGB?? and YUY2 modes now work as expected
- native ALSA audio capture
- separated audio input layer
author | arpi |
---|---|
date | Wed, 21 Aug 2002 22:50:40 +0000 |
parents | c605c57edead |
children | b69ddd4d3bb9 |
rev | line source |
---|---|
3996 | 1 # makefile |
2 | |
3 include ../../config.mak | |
4 | |
5814 | 5 BINDIR = $(LIBDIR)/mplayer/vidix |
4030 | 6 |
3996 | 7 |
8 RADEON_VID=radeon_vid.so | |
9 RADEON_SRCS=radeon_vid.c | |
10 RADEON_OBJS=radeon_vid.o | |
11 RADEON_LIBS=-L../../libdha -ldha -lm | |
12 RADEON_CFLAGS=$(OPTFLAGS) -fPIC -I. -I.. -Wall -W | |
13 | |
14 RAGE128_VID=rage128_vid.so | |
15 RAGE128_SRCS=radeon_vid.c | |
16 RAGE128_OBJS=rage128_vid.o | |
17 RAGE128_LIBS=-L../../libdha -ldha | |
18 RAGE128_CFLAGS=$(OPTFLAGS) -fPIC -I. -I.. -Wall -W -DRAGE128 | |
19 | |
6254
034b12194350
rage128/radeon fixes, mach64 mess^H^H^H^Hcleanup, pm3 driver.
arpi
parents:
5814
diff
changeset
|
20 PM3_VID=pm3_vid.so |
034b12194350
rage128/radeon fixes, mach64 mess^H^H^H^Hcleanup, pm3 driver.
arpi
parents:
5814
diff
changeset
|
21 PM3_SRCS=pm3_vid.c |
034b12194350
rage128/radeon fixes, mach64 mess^H^H^H^Hcleanup, pm3 driver.
arpi
parents:
5814
diff
changeset
|
22 PM3_OBJS=pm3_vid.o |
034b12194350
rage128/radeon fixes, mach64 mess^H^H^H^Hcleanup, pm3 driver.
arpi
parents:
5814
diff
changeset
|
23 PM3_LIBS=-L../../libdha -ldha |
034b12194350
rage128/radeon fixes, mach64 mess^H^H^H^Hcleanup, pm3 driver.
arpi
parents:
5814
diff
changeset
|
24 PM3_CFLAGS=$(OPTFLAGS) -fPIC -I. -I.. -Wall -W |
034b12194350
rage128/radeon fixes, mach64 mess^H^H^H^Hcleanup, pm3 driver.
arpi
parents:
5814
diff
changeset
|
25 |
4691 | 26 MACH64_VID=mach64_vid.so |
27 MACH64_SRCS=mach64_vid.c | |
28 MACH64_OBJS=mach64_vid.o | |
29 MACH64_LIBS=-L../../libdha -ldha | |
30 MACH64_CFLAGS=$(OPTFLAGS) -fPIC -I. -I.. -Wall -W -DRAGE128 | |
31 | |
4136 | 32 MGA_VID=mga_vid.so |
33 MGA_SRCS=mga_vid.c | |
34 MGA_OBJS=mga_vid.o | |
35 MGA_LIBS=-L../../libdha -ldha -lm | |
36 MGA_CFLAGS=$(OPTFLAGS) -fPIC -I. -I.. -Wall -W | |
37 | |
4139
13d6395e8daa
added mga_vid (also playback->offset is not set (fixing it on monday)
alex
parents:
4136
diff
changeset
|
38 MGA_CRTC2_VID=mga_crtc2_vid.so |
13d6395e8daa
added mga_vid (also playback->offset is not set (fixing it on monday)
alex
parents:
4136
diff
changeset
|
39 MGA_CRTC2_SRCS=mga_vid.c |
13d6395e8daa
added mga_vid (also playback->offset is not set (fixing it on monday)
alex
parents:
4136
diff
changeset
|
40 MGA_CRTC2_OBJS=mga_crtc2_vid.o |
13d6395e8daa
added mga_vid (also playback->offset is not set (fixing it on monday)
alex
parents:
4136
diff
changeset
|
41 MGA_CRTC2_LIBS=-L../../libdha -ldha -lm |
13d6395e8daa
added mga_vid (also playback->offset is not set (fixing it on monday)
alex
parents:
4136
diff
changeset
|
42 MGA_CRTC2_CFLAGS=$(OPTFLAGS) -fPIC -I. -I.. -Wall -W -DCRTC2 |
13d6395e8daa
added mga_vid (also playback->offset is not set (fixing it on monday)
alex
parents:
4136
diff
changeset
|
43 |
6254
034b12194350
rage128/radeon fixes, mach64 mess^H^H^H^Hcleanup, pm3 driver.
arpi
parents:
5814
diff
changeset
|
44 all: $(RADEON_VID) $(RAGE128_VID) $(MACH64_VID) $(NVIDIA_VID) $(GENFB_VID) $(MGA_VID) $(MGA_CRTC2_VID) $(PM3_VID) |
3996 | 45 |
46 | |
47 .SUFFIXES: .c .o | |
48 | |
49 # .PHONY: all clean | |
50 | |
6254
034b12194350
rage128/radeon fixes, mach64 mess^H^H^H^Hcleanup, pm3 driver.
arpi
parents:
5814
diff
changeset
|
51 $(PM3_OBJS): $(PM3_SRCS) |
034b12194350
rage128/radeon fixes, mach64 mess^H^H^H^Hcleanup, pm3 driver.
arpi
parents:
5814
diff
changeset
|
52 $(CC) -c $(PM3_CFLAGS) -o $@ $< |
034b12194350
rage128/radeon fixes, mach64 mess^H^H^H^Hcleanup, pm3 driver.
arpi
parents:
5814
diff
changeset
|
53 |
034b12194350
rage128/radeon fixes, mach64 mess^H^H^H^Hcleanup, pm3 driver.
arpi
parents:
5814
diff
changeset
|
54 $(PM3_VID): $(PM3_OBJS) |
034b12194350
rage128/radeon fixes, mach64 mess^H^H^H^Hcleanup, pm3 driver.
arpi
parents:
5814
diff
changeset
|
55 $(LD) $(PM3_LIBS) -shared -soname $(PM3_VID) -o $(PM3_VID) $(PM3_OBJS) |
034b12194350
rage128/radeon fixes, mach64 mess^H^H^H^Hcleanup, pm3 driver.
arpi
parents:
5814
diff
changeset
|
56 |
3996 | 57 $(RADEON_OBJS): $(RADEON_SRCS) |
58 $(CC) -c $(RADEON_CFLAGS) -o $@ $< | |
59 | |
60 $(RADEON_VID): $(RADEON_OBJS) | |
4030 | 61 $(LD) $(RADEON_LIBS) -shared -soname $(RADEON_VID) -o $(RADEON_VID) $(RADEON_OBJS) |
3996 | 62 |
63 $(RAGE128_OBJS): $(RAGE128_SRCS) | |
64 $(CC) -c $(RAGE128_CFLAGS) -o $@ $< | |
65 | |
66 $(RAGE128_VID): $(RAGE128_OBJS) | |
4030 | 67 $(LD) $(RAGE128_LIBS) -shared -soname $(RAGE128_VID) -o $(RAGE128_VID) $(RAGE128_OBJS) |
3996 | 68 |
4691 | 69 $(MACH64_OBJS): $(MACH64_SRCS) |
70 $(CC) -c $(MACH64_CFLAGS) -o $@ $< | |
71 | |
72 $(MACH64_VID): $(MACH64_OBJS) | |
73 $(LD) $(MACH64_LIBS) -shared -soname $(MACH64_VID) -o $(MACH64_VID) $(MACH64_OBJS) | |
74 | |
4136 | 75 $(NVIDIA_OBJS): $(NVIDIA_SRCS) |
76 $(CC) -c $(NVIDIA_CFLAGS) -o $@ $< | |
77 | |
78 $(NVIDIA_VID): $(NVIDIA_OBJS) | |
79 $(LD) $(NVIDIA_LIBS) -shared -soname $(NVIDIA_VID) -o $(NVIDIA_VID) $(NVIDIA_OBJS) | |
80 | |
81 $(GENFB_OBJS): $(GENFB_SRCS) | |
82 $(CC) -c $(GENFB_CFLAGS) -o $@ $< | |
83 | |
84 $(GENFB_VID): $(GENFB_OBJS) | |
85 $(LD) $(GENFB_LIBS) -shared -soname $(GENFB_VID) -o $(GENFB_VID) $(GENFB_OBJS) | |
86 | |
87 $(MGA_OBJS): $(MGA_SRCS) | |
88 $(CC) -c $(MGA_CFLAGS) -o $@ $< | |
89 | |
90 $(MGA_VID): $(MGA_OBJS) | |
91 $(LD) $(MGA_LIBS) -shared -soname $(MGA_VID) -o $(MGA_VID) $(MGA_OBJS) | |
92 | |
4139
13d6395e8daa
added mga_vid (also playback->offset is not set (fixing it on monday)
alex
parents:
4136
diff
changeset
|
93 $(MGA_CRTC2_OBJS): $(MGA_CRTC2_SRCS) |
13d6395e8daa
added mga_vid (also playback->offset is not set (fixing it on monday)
alex
parents:
4136
diff
changeset
|
94 $(CC) -c $(MGA_CRTC2_CFLAGS) -o $@ $< |
13d6395e8daa
added mga_vid (also playback->offset is not set (fixing it on monday)
alex
parents:
4136
diff
changeset
|
95 |
13d6395e8daa
added mga_vid (also playback->offset is not set (fixing it on monday)
alex
parents:
4136
diff
changeset
|
96 $(MGA_CRTC2_VID): $(MGA_CRTC2_OBJS) |
13d6395e8daa
added mga_vid (also playback->offset is not set (fixing it on monday)
alex
parents:
4136
diff
changeset
|
97 $(LD) $(MGA_CRTC2_LIBS) -shared -soname $(MGA_CRTC2_VID) -o $(MGA_CRTC2_VID) $(MGA_CRTC2_OBJS) |
13d6395e8daa
added mga_vid (also playback->offset is not set (fixing it on monday)
alex
parents:
4136
diff
changeset
|
98 |
3996 | 99 clean: |
100 rm -f *.o *.so *~ | |
101 | |
102 distclean: | |
103 rm -f Makefile.bak *.o *.so test *~ .depend | |
104 | |
105 dep: depend | |
106 | |
107 depend: | |
6254
034b12194350
rage128/radeon fixes, mach64 mess^H^H^H^Hcleanup, pm3 driver.
arpi
parents:
5814
diff
changeset
|
108 # do nothing here |
3996 | 109 |
110 install: | |
7024
c605c57edead
hmm. vosub_vidix has LIBDIR/mplayer/vidix as driver path, so we should use
arpi
parents:
6650
diff
changeset
|
111 mkdir -p $(LIBDIR)/mplayer/vidix |
c605c57edead
hmm. vosub_vidix has LIBDIR/mplayer/vidix as driver path, so we should use
arpi
parents:
6650
diff
changeset
|
112 -install -m 755 -s -p *.so $(LIBDIR)/mplayer/vidix |
6254
034b12194350
rage128/radeon fixes, mach64 mess^H^H^H^Hcleanup, pm3 driver.
arpi
parents:
5814
diff
changeset
|
113 uninstall: |
7024
c605c57edead
hmm. vosub_vidix has LIBDIR/mplayer/vidix as driver path, so we should use
arpi
parents:
6650
diff
changeset
|
114 rm -f $(LIBDIR)/mplayer/vidix/*.so |
c605c57edead
hmm. vosub_vidix has LIBDIR/mplayer/vidix as driver path, so we should use
arpi
parents:
6650
diff
changeset
|
115 rmdir -p --ignore-fail-on-non-empty $(LIBDIR)/mplayer/vidix |
6254
034b12194350
rage128/radeon fixes, mach64 mess^H^H^H^Hcleanup, pm3 driver.
arpi
parents:
5814
diff
changeset
|
116 |
3996 | 117 # |
118 # include dependency files if they exist | |
119 # | |
120 ifneq ($(wildcard .depend),) | |
121 include .depend | |
122 endif |