Mercurial > mplayer.hg
annotate vidix/drivers/Makefile @ 17288:4c86d2479aa2
use $(INSTALLSTRIP) consistently
patch by Ville Skytt¸«£
closes bugzilla #178
author | rathann |
---|---|
date | Tue, 03 Jan 2006 00:24:17 +0000 |
parents | ca1a994df819 |
children | ce1ba8fd57e7 |
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 | |
12513 | 16 RADEON_LIBS=-L../../libdha -ldha -lm $(X_LIB) |
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 | |
12513 | 22 RAGE128_LIBS=-L../../libdha -ldha -lm $(X_LIB) |
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 |
10954 | 49 NVIDIA_VID=nvidia_vid.so |
50 NVIDIA_SRCS=nvidia_vid.c | |
51 NVIDIA_OBJS=nvidia_vid.o | |
52 NVIDIA_LIBS=-L../../libdha -ldha -lm | |
53 NVIDIA_CFLAGS=$(OPTFLAGS) -fPIC -I. -I.. | |
54 | |
11038
3bac281db5a1
SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
10954
diff
changeset
|
55 SIS_VID=sis_vid.so |
3bac281db5a1
SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
10954
diff
changeset
|
56 SIS_SRCS=sis_vid.c sis_bridge.c |
3bac281db5a1
SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
10954
diff
changeset
|
57 SIS_OBJS=sis_vid.o sis_bridge.o |
3bac281db5a1
SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
10954
diff
changeset
|
58 SIS_LIBS=-L../../libdha -ldha |
3bac281db5a1
SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
10954
diff
changeset
|
59 SIS_CFLAGS=$(OPTFLAGS) -fPIC -I. -I.. |
3bac281db5a1
SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
10954
diff
changeset
|
60 |
13605
c971585ddcab
CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
12513
diff
changeset
|
61 UNICHROME_VID=unichrome_vid.so |
c971585ddcab
CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
12513
diff
changeset
|
62 UNICHROME_SRCS=unichrome_vid.c |
c971585ddcab
CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
12513
diff
changeset
|
63 UNICHROME_OBJS=unichrome_vid.o |
c971585ddcab
CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
12513
diff
changeset
|
64 UNICHROME_LIBS=-L../../libdha -ldha -lm |
c971585ddcab
CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
12513
diff
changeset
|
65 UNICHROME_CFLAGS=$(OPTFLAGS) -fPIC -I. -I.. |
c971585ddcab
CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
12513
diff
changeset
|
66 |
14203
8be9b0f1e4b6
experimental savage vidix driver by Reza Jelveh <reza.jelveh at tu-harburg.de>
faust3
parents:
13605
diff
changeset
|
67 SAVAGE_VID=savage_vid.so |
8be9b0f1e4b6
experimental savage vidix driver by Reza Jelveh <reza.jelveh at tu-harburg.de>
faust3
parents:
13605
diff
changeset
|
68 SAVAGE_SRCS=savage_vid.c |
8be9b0f1e4b6
experimental savage vidix driver by Reza Jelveh <reza.jelveh at tu-harburg.de>
faust3
parents:
13605
diff
changeset
|
69 SAVAGE_OBJS=savage_vid.o |
8be9b0f1e4b6
experimental savage vidix driver by Reza Jelveh <reza.jelveh at tu-harburg.de>
faust3
parents:
13605
diff
changeset
|
70 SAVAGE_LIBS=-L../../libdha -ldha -lm |
8be9b0f1e4b6
experimental savage vidix driver by Reza Jelveh <reza.jelveh at tu-harburg.de>
faust3
parents:
13605
diff
changeset
|
71 SAVAGE_CFLAGS=$(OPTFLAGS) -fPIC -I. -I.. |
8be9b0f1e4b6
experimental savage vidix driver by Reza Jelveh <reza.jelveh at tu-harburg.de>
faust3
parents:
13605
diff
changeset
|
72 |
8be9b0f1e4b6
experimental savage vidix driver by Reza Jelveh <reza.jelveh at tu-harburg.de>
faust3
parents:
13605
diff
changeset
|
73 all: $(CYBERBLADE_VID) $(RADEON_VID) $(RAGE128_VID) $(MACH64_VID) $(NVIDIA_VID) $(GENFB_VID) $(MGA_VID) $(MGA_CRTC2_VID) $(PM3_VID) $(SIS_VID) $(UNICHROME_VID) $(SAVAGE_VID) |
3996 | 74 |
75 | |
76 .SUFFIXES: .c .o | |
77 | |
78 # .PHONY: all clean | |
79 | |
8505 | 80 $(CYBERBLADE_OBJS): $(CYBERBLADE_SRCS) |
81 $(CC) -c $(CYBERBLADE_CFLAGS) -o $@ $< | |
82 | |
83 $(CYBERBLADE_VID): $(CYBERBLADE_OBJS) | |
9629
59837356f692
use gcc instead ld. Patch by prj@po.cwru.edu (Paul Jarc)
alex
parents:
8505
diff
changeset
|
84 $(CC) -shared $(CYBERBLADE_OBJS) $(CYBERBLADE_LIBS) -Wl,-soname,$(CYBERBLADE_VID) -o $(CYBERBLADE_VID) |
8505 | 85 |
6254
034b12194350
rage128/radeon fixes, mach64 mess^H^H^H^Hcleanup, pm3 driver.
arpi
parents:
5814
diff
changeset
|
86 $(PM3_OBJS): $(PM3_SRCS) |
034b12194350
rage128/radeon fixes, mach64 mess^H^H^H^Hcleanup, pm3 driver.
arpi
parents:
5814
diff
changeset
|
87 $(CC) -c $(PM3_CFLAGS) -o $@ $< |
034b12194350
rage128/radeon fixes, mach64 mess^H^H^H^Hcleanup, pm3 driver.
arpi
parents:
5814
diff
changeset
|
88 |
034b12194350
rage128/radeon fixes, mach64 mess^H^H^H^Hcleanup, pm3 driver.
arpi
parents:
5814
diff
changeset
|
89 $(PM3_VID): $(PM3_OBJS) |
9629
59837356f692
use gcc instead ld. Patch by prj@po.cwru.edu (Paul Jarc)
alex
parents:
8505
diff
changeset
|
90 $(CC) -shared $(PM3_OBJS) $(PM3_LIBS) -Wl,-soname,$(PM3_VID) -o $(PM3_VID) |
6254
034b12194350
rage128/radeon fixes, mach64 mess^H^H^H^Hcleanup, pm3 driver.
arpi
parents:
5814
diff
changeset
|
91 |
3996 | 92 $(RADEON_OBJS): $(RADEON_SRCS) |
93 $(CC) -c $(RADEON_CFLAGS) -o $@ $< | |
94 | |
95 $(RADEON_VID): $(RADEON_OBJS) | |
9629
59837356f692
use gcc instead ld. Patch by prj@po.cwru.edu (Paul Jarc)
alex
parents:
8505
diff
changeset
|
96 $(CC) -shared $(RADEON_OBJS) $(RADEON_LIBS) -Wl,-soname,$(RADEON_VID) -o $(RADEON_VID) |
3996 | 97 |
98 $(RAGE128_OBJS): $(RAGE128_SRCS) | |
99 $(CC) -c $(RAGE128_CFLAGS) -o $@ $< | |
100 | |
101 $(RAGE128_VID): $(RAGE128_OBJS) | |
9629
59837356f692
use gcc instead ld. Patch by prj@po.cwru.edu (Paul Jarc)
alex
parents:
8505
diff
changeset
|
102 $(CC) -shared $(RAGE128_OBJS) $(RAGE128_LIBS) -Wl,-soname,$(RAGE128_VID) -o $(RAGE128_VID) |
3996 | 103 |
4691 | 104 $(MACH64_OBJS): $(MACH64_SRCS) |
105 $(CC) -c $(MACH64_CFLAGS) -o $@ $< | |
106 | |
107 $(MACH64_VID): $(MACH64_OBJS) | |
9629
59837356f692
use gcc instead ld. Patch by prj@po.cwru.edu (Paul Jarc)
alex
parents:
8505
diff
changeset
|
108 $(CC) -shared $(MACH64_OBJS) $(MACH64_LIBS) -Wl,-soname,$(MACH64_VID) -o $(MACH64_VID) |
4691 | 109 |
4136 | 110 $(NVIDIA_OBJS): $(NVIDIA_SRCS) |
111 $(CC) -c $(NVIDIA_CFLAGS) -o $@ $< | |
112 | |
113 $(NVIDIA_VID): $(NVIDIA_OBJS) | |
9629
59837356f692
use gcc instead ld. Patch by prj@po.cwru.edu (Paul Jarc)
alex
parents:
8505
diff
changeset
|
114 $(CC) -shared $(NVIDIA_OBJS) $(NVIDIA_LIBS) -Wl,-soname,$(NVIDIA_VID) -o $(NVIDIA_VID) |
4136 | 115 |
116 $(GENFB_OBJS): $(GENFB_SRCS) | |
117 $(CC) -c $(GENFB_CFLAGS) -o $@ $< | |
118 | |
119 $(GENFB_VID): $(GENFB_OBJS) | |
9629
59837356f692
use gcc instead ld. Patch by prj@po.cwru.edu (Paul Jarc)
alex
parents:
8505
diff
changeset
|
120 $(CC) -shared $(GENFB_OBJS) $(GENFB_LIBS) -Wl,-soname,$(GENFB_VID) -o $(GENFB_VID) |
4136 | 121 |
122 $(MGA_OBJS): $(MGA_SRCS) | |
123 $(CC) -c $(MGA_CFLAGS) -o $@ $< | |
124 | |
125 $(MGA_VID): $(MGA_OBJS) | |
9629
59837356f692
use gcc instead ld. Patch by prj@po.cwru.edu (Paul Jarc)
alex
parents:
8505
diff
changeset
|
126 $(CC) -shared $(MGA_OBJS) $(MGA_LIBS) -Wl,-soname,$(MGA_VID) -o $(MGA_VID) |
4136 | 127 |
4139
13d6395e8daa
added mga_vid (also playback->offset is not set (fixing it on monday)
alex
parents:
4136
diff
changeset
|
128 $(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
|
129 $(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
|
130 |
13d6395e8daa
added mga_vid (also playback->offset is not set (fixing it on monday)
alex
parents:
4136
diff
changeset
|
131 $(MGA_CRTC2_VID): $(MGA_CRTC2_OBJS) |
9629
59837356f692
use gcc instead ld. Patch by prj@po.cwru.edu (Paul Jarc)
alex
parents:
8505
diff
changeset
|
132 $(CC) -shared $(MGA_CRTC2_OBJS) $(MGA_CRTC2_LIBS) -Wl,-soname,$(MGA_CRTC2_VID) -o $(MGA_CRTC2_VID) |
4139
13d6395e8daa
added mga_vid (also playback->offset is not set (fixing it on monday)
alex
parents:
4136
diff
changeset
|
133 |
11038
3bac281db5a1
SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
10954
diff
changeset
|
134 $(SIS_OBJS): $(SIS_SRCS) |
3bac281db5a1
SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
10954
diff
changeset
|
135 $(CC) -c $(SIS_CFLAGS) -o $@ $(basename $@).c |
3bac281db5a1
SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
10954
diff
changeset
|
136 |
3bac281db5a1
SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
10954
diff
changeset
|
137 $(SIS_VID): $(SIS_OBJS) |
11221 | 138 $(CC) -shared $(SIS_OBJS) $(SIS_LIBS) -Wl,-soname,$(SIS_VID) -o $(SIS_VID) |
11038
3bac281db5a1
SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents:
10954
diff
changeset
|
139 |
13605
c971585ddcab
CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
12513
diff
changeset
|
140 $(UNICHROME_OBJS): $(UNICHROME_SRCS) |
c971585ddcab
CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
12513
diff
changeset
|
141 $(CC) -c $(UNICHROME_CFLAGS) -o $@ $< |
c971585ddcab
CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
12513
diff
changeset
|
142 |
c971585ddcab
CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
12513
diff
changeset
|
143 $(UNICHROME_VID): $(UNICHROME_OBJS) |
c971585ddcab
CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
12513
diff
changeset
|
144 $(CC) -shared $(UNICHROME_OBJS) $(UNICHROME_LIBS) -Wl,-soname,$(UNICHROME_VID) -o $(UNICHROME_VID) |
c971585ddcab
CLE266 Vidix driver initial patch by Timothy Lee <timothy@siriushk.com>, doxygen comments by Benjamin Zores <ben@tutuxclan.org>
faust3
parents:
12513
diff
changeset
|
145 |
14250 | 146 $(SAVAGE_OBJS): $(SAVAGE_SRCS) |
147 $(CC) -c $(SAVAGE_CFLAGS) -o $@ $< | |
148 | |
14203
8be9b0f1e4b6
experimental savage vidix driver by Reza Jelveh <reza.jelveh at tu-harburg.de>
faust3
parents:
13605
diff
changeset
|
149 $(SAVAGE_VID): $(SAVAGE_OBJS) |
8be9b0f1e4b6
experimental savage vidix driver by Reza Jelveh <reza.jelveh at tu-harburg.de>
faust3
parents:
13605
diff
changeset
|
150 $(CC) -shared $(SAVAGE_OBJS) $(SAVAGE_LIBS) -Wl,-soname,$(SAVAGE_VID) -o $(SAVAGE_VID) |
8be9b0f1e4b6
experimental savage vidix driver by Reza Jelveh <reza.jelveh at tu-harburg.de>
faust3
parents:
13605
diff
changeset
|
151 |
3996 | 152 clean: |
153 rm -f *.o *.so *~ | |
154 | |
155 distclean: | |
156 rm -f Makefile.bak *.o *.so test *~ .depend | |
157 | |
158 dep: depend | |
159 | |
160 depend: | |
6254
034b12194350
rage128/radeon fixes, mach64 mess^H^H^H^Hcleanup, pm3 driver.
arpi
parents:
5814
diff
changeset
|
161 # do nothing here |
3996 | 162 |
163 install: | |
7024
c605c57edead
hmm. vosub_vidix has LIBDIR/mplayer/vidix as driver path, so we should use
arpi
parents:
6650
diff
changeset
|
164 mkdir -p $(LIBDIR)/mplayer/vidix |
17288 | 165 -install -m 755 $(INSTALLSTRIP) -p *.so $(LIBDIR)/mplayer/vidix |
6254
034b12194350
rage128/radeon fixes, mach64 mess^H^H^H^Hcleanup, pm3 driver.
arpi
parents:
5814
diff
changeset
|
166 uninstall: |
7024
c605c57edead
hmm. vosub_vidix has LIBDIR/mplayer/vidix as driver path, so we should use
arpi
parents:
6650
diff
changeset
|
167 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
|
168 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
|
169 |
3996 | 170 # |
171 # include dependency files if they exist | |
172 # | |
173 ifneq ($(wildcard .depend),) | |
174 include .depend | |
175 endif |