Mercurial > mplayer.hg
annotate vidix/drivers/Makefile @ 9302:e23939b2ac30
sync
author | gabucino |
---|---|
date | Thu, 06 Feb 2003 21:25:48 +0000 |
parents | d794e866cf5f |
children | 59837356f692 |
rev | line source |
---|---|
3996 | 1 # makefile |
2 | |
3 include ../../config.mak | |
4 | |
5814 | 5 BINDIR = $(LIBDIR)/mplayer/vidix |
4030 | 6 |
8505 | 7 CYBERBLADE_VID=cyberblade_vid.so |
8 CYBERBLADE_SRCS=cyberblade_vid.c | |
9 CYBERBLADE_OBJS=cyberblade_vid.o | |
10 CYBERBLADE_LIBS=-L../../libdha -ldha -lm | |
11 CYBERBLADE_CFLAGS=$(OPTFLAGS) -fPIC -I. -I.. | |
3996 | 12 |
13 RADEON_VID=radeon_vid.so | |
14 RADEON_SRCS=radeon_vid.c | |
15 RADEON_OBJS=radeon_vid.o | |
16 RADEON_LIBS=-L../../libdha -ldha -lm | |
7073
b69ddd4d3bb9
removed -W -Wall -g and other gcc-specific warning/debug options
arpi
parents:
7024
diff
changeset
|
17 RADEON_CFLAGS=$(OPTFLAGS) -fPIC -I. -I.. |
3996 | 18 |
19 RAGE128_VID=rage128_vid.so | |
20 RAGE128_SRCS=radeon_vid.c | |
21 RAGE128_OBJS=rage128_vid.o | |
22 RAGE128_LIBS=-L../../libdha -ldha | |
7073
b69ddd4d3bb9
removed -W -Wall -g and other gcc-specific warning/debug options
arpi
parents:
7024
diff
changeset
|
23 RAGE128_CFLAGS=$(OPTFLAGS) -fPIC -I. -I.. -DRAGE128 |
3996 | 24 |
6254
034b12194350
rage128/radeon fixes, mach64 mess^H^H^H^Hcleanup, pm3 driver.
arpi
parents:
5814
diff
changeset
|
25 PM3_VID=pm3_vid.so |
034b12194350
rage128/radeon fixes, mach64 mess^H^H^H^Hcleanup, pm3 driver.
arpi
parents:
5814
diff
changeset
|
26 PM3_SRCS=pm3_vid.c |
034b12194350
rage128/radeon fixes, mach64 mess^H^H^H^Hcleanup, pm3 driver.
arpi
parents:
5814
diff
changeset
|
27 PM3_OBJS=pm3_vid.o |
034b12194350
rage128/radeon fixes, mach64 mess^H^H^H^Hcleanup, pm3 driver.
arpi
parents:
5814
diff
changeset
|
28 PM3_LIBS=-L../../libdha -ldha |
8505 | 29 PM3_CFLAGS=$(OPTFLAGS) -fPIC -I. -I.. |
6254
034b12194350
rage128/radeon fixes, mach64 mess^H^H^H^Hcleanup, pm3 driver.
arpi
parents:
5814
diff
changeset
|
30 |
4691 | 31 MACH64_VID=mach64_vid.so |
32 MACH64_SRCS=mach64_vid.c | |
33 MACH64_OBJS=mach64_vid.o | |
34 MACH64_LIBS=-L../../libdha -ldha | |
7073
b69ddd4d3bb9
removed -W -Wall -g and other gcc-specific warning/debug options
arpi
parents:
7024
diff
changeset
|
35 MACH64_CFLAGS=$(OPTFLAGS) -fPIC -I. -I.. -DRAGE128 |
4691 | 36 |
4136 | 37 MGA_VID=mga_vid.so |
38 MGA_SRCS=mga_vid.c | |
39 MGA_OBJS=mga_vid.o | |
40 MGA_LIBS=-L../../libdha -ldha -lm | |
8505 | 41 MGA_CFLAGS=$(OPTFLAGS) -fPIC -I. -I.. |
4136 | 42 |
4139
13d6395e8daa
added mga_vid (also playback->offset is not set (fixing it on monday)
alex
parents:
4136
diff
changeset
|
43 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
|
44 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
|
45 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
|
46 MGA_CRTC2_LIBS=-L../../libdha -ldha -lm |
7073
b69ddd4d3bb9
removed -W -Wall -g and other gcc-specific warning/debug options
arpi
parents:
7024
diff
changeset
|
47 MGA_CRTC2_CFLAGS=$(OPTFLAGS) -fPIC -I. -I.. -DCRTC2 |
4139
13d6395e8daa
added mga_vid (also playback->offset is not set (fixing it on monday)
alex
parents:
4136
diff
changeset
|
48 |
8505 | 49 all: $(CYBERBLADE_VID) $(RADEON_VID) $(RAGE128_VID) $(MACH64_VID) $(NVIDIA_VID) $(GENFB_VID) $(MGA_VID) $(MGA_CRTC2_VID) $(PM3_VID) |
3996 | 50 |
51 | |
52 .SUFFIXES: .c .o | |
53 | |
54 # .PHONY: all clean | |
55 | |
8505 | 56 $(CYBERBLADE_OBJS): $(CYBERBLADE_SRCS) |
57 $(CC) -c $(CYBERBLADE_CFLAGS) -o $@ $< | |
58 | |
59 $(CYBERBLADE_VID): $(CYBERBLADE_OBJS) | |
60 $(LD) $(CYBERBLADE_LIBS) -shared -soname $(CYBERBLADE_VID) -o $(CYBERBLADE_VID) $(CYBERBLADE_OBJS) | |
61 | |
6254
034b12194350
rage128/radeon fixes, mach64 mess^H^H^H^Hcleanup, pm3 driver.
arpi
parents:
5814
diff
changeset
|
62 $(PM3_OBJS): $(PM3_SRCS) |
034b12194350
rage128/radeon fixes, mach64 mess^H^H^H^Hcleanup, pm3 driver.
arpi
parents:
5814
diff
changeset
|
63 $(CC) -c $(PM3_CFLAGS) -o $@ $< |
034b12194350
rage128/radeon fixes, mach64 mess^H^H^H^Hcleanup, pm3 driver.
arpi
parents:
5814
diff
changeset
|
64 |
034b12194350
rage128/radeon fixes, mach64 mess^H^H^H^Hcleanup, pm3 driver.
arpi
parents:
5814
diff
changeset
|
65 $(PM3_VID): $(PM3_OBJS) |
034b12194350
rage128/radeon fixes, mach64 mess^H^H^H^Hcleanup, pm3 driver.
arpi
parents:
5814
diff
changeset
|
66 $(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
|
67 |
3996 | 68 $(RADEON_OBJS): $(RADEON_SRCS) |
69 $(CC) -c $(RADEON_CFLAGS) -o $@ $< | |
70 | |
71 $(RADEON_VID): $(RADEON_OBJS) | |
4030 | 72 $(LD) $(RADEON_LIBS) -shared -soname $(RADEON_VID) -o $(RADEON_VID) $(RADEON_OBJS) |
3996 | 73 |
74 $(RAGE128_OBJS): $(RAGE128_SRCS) | |
75 $(CC) -c $(RAGE128_CFLAGS) -o $@ $< | |
76 | |
77 $(RAGE128_VID): $(RAGE128_OBJS) | |
4030 | 78 $(LD) $(RAGE128_LIBS) -shared -soname $(RAGE128_VID) -o $(RAGE128_VID) $(RAGE128_OBJS) |
3996 | 79 |
4691 | 80 $(MACH64_OBJS): $(MACH64_SRCS) |
81 $(CC) -c $(MACH64_CFLAGS) -o $@ $< | |
82 | |
83 $(MACH64_VID): $(MACH64_OBJS) | |
84 $(LD) $(MACH64_LIBS) -shared -soname $(MACH64_VID) -o $(MACH64_VID) $(MACH64_OBJS) | |
85 | |
4136 | 86 $(NVIDIA_OBJS): $(NVIDIA_SRCS) |
87 $(CC) -c $(NVIDIA_CFLAGS) -o $@ $< | |
88 | |
89 $(NVIDIA_VID): $(NVIDIA_OBJS) | |
90 $(LD) $(NVIDIA_LIBS) -shared -soname $(NVIDIA_VID) -o $(NVIDIA_VID) $(NVIDIA_OBJS) | |
91 | |
92 $(GENFB_OBJS): $(GENFB_SRCS) | |
93 $(CC) -c $(GENFB_CFLAGS) -o $@ $< | |
94 | |
95 $(GENFB_VID): $(GENFB_OBJS) | |
96 $(LD) $(GENFB_LIBS) -shared -soname $(GENFB_VID) -o $(GENFB_VID) $(GENFB_OBJS) | |
97 | |
98 $(MGA_OBJS): $(MGA_SRCS) | |
99 $(CC) -c $(MGA_CFLAGS) -o $@ $< | |
100 | |
101 $(MGA_VID): $(MGA_OBJS) | |
102 $(LD) $(MGA_LIBS) -shared -soname $(MGA_VID) -o $(MGA_VID) $(MGA_OBJS) | |
103 | |
4139
13d6395e8daa
added mga_vid (also playback->offset is not set (fixing it on monday)
alex
parents:
4136
diff
changeset
|
104 $(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
|
105 $(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
|
106 |
13d6395e8daa
added mga_vid (also playback->offset is not set (fixing it on monday)
alex
parents:
4136
diff
changeset
|
107 $(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
|
108 $(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
|
109 |
3996 | 110 clean: |
111 rm -f *.o *.so *~ | |
112 | |
113 distclean: | |
114 rm -f Makefile.bak *.o *.so test *~ .depend | |
115 | |
116 dep: depend | |
117 | |
118 depend: | |
6254
034b12194350
rage128/radeon fixes, mach64 mess^H^H^H^Hcleanup, pm3 driver.
arpi
parents:
5814
diff
changeset
|
119 # do nothing here |
3996 | 120 |
121 install: | |
7024
c605c57edead
hmm. vosub_vidix has LIBDIR/mplayer/vidix as driver path, so we should use
arpi
parents:
6650
diff
changeset
|
122 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
|
123 -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
|
124 uninstall: |
7024
c605c57edead
hmm. vosub_vidix has LIBDIR/mplayer/vidix as driver path, so we should use
arpi
parents:
6650
diff
changeset
|
125 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
|
126 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
|
127 |
3996 | 128 # |
129 # include dependency files if they exist | |
130 # | |
131 ifneq ($(wildcard .depend),) | |
132 include .depend | |
133 endif |