annotate vidix/drivers/Makefile @ 19510:1544ca347324

Redundancy removal part II: Remove useless variable indirection.
author diego
date Thu, 24 Aug 2006 00:16:11 +0000
parents 2a00413b228e
children 854cfbd1a952
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3996
872781fef1b3 preliminary version
nick
parents:
diff changeset
1 # makefile
872781fef1b3 preliminary version
nick
parents:
diff changeset
2
872781fef1b3 preliminary version
nick
parents:
diff changeset
3 include ../../config.mak
872781fef1b3 preliminary version
nick
parents:
diff changeset
4
5814
16186e365197 libdir changed
arpi
parents: 5607
diff changeset
5 BINDIR = $(LIBDIR)/mplayer/vidix
4030
922241968c63 Embedding vidix
nick
parents: 3996
diff changeset
6
19509
2a00413b228e Redundancy removal part I: Unify CFLAGS and LDFLAGS handling.
diego
parents: 19508
diff changeset
7 VIDIX_LIBS = -L../../libdha -ldha
2a00413b228e Redundancy removal part I: Unify CFLAGS and LDFLAGS handling.
diego
parents: 19508
diff changeset
8 VIDIX_CFLAGS=-fPIC -I. -I.. $(OPTFLAGS)
2a00413b228e Redundancy removal part I: Unify CFLAGS and LDFLAGS handling.
diego
parents: 19508
diff changeset
9
2a00413b228e Redundancy removal part I: Unify CFLAGS and LDFLAGS handling.
diego
parents: 19508
diff changeset
10 CYBERBLADE_LIBS=$(VIDIX_LIBS) -lm
3996
872781fef1b3 preliminary version
nick
parents:
diff changeset
11
19509
2a00413b228e Redundancy removal part I: Unify CFLAGS and LDFLAGS handling.
diego
parents: 19508
diff changeset
12 RADEON_LIBS=$(VIDIX_LIBS) -lm $(X_LIB)
3996
872781fef1b3 preliminary version
nick
parents:
diff changeset
13
19509
2a00413b228e Redundancy removal part I: Unify CFLAGS and LDFLAGS handling.
diego
parents: 19508
diff changeset
14 RAGE128_LIBS=$(VIDIX_LIBS) -lm $(X_LIB)
2a00413b228e Redundancy removal part I: Unify CFLAGS and LDFLAGS handling.
diego
parents: 19508
diff changeset
15 RAGE128_CFLAGS=$(VIDIX_CFLAGS) -DRAGE128
3996
872781fef1b3 preliminary version
nick
parents:
diff changeset
16
19509
2a00413b228e Redundancy removal part I: Unify CFLAGS and LDFLAGS handling.
diego
parents: 19508
diff changeset
17 MGA_LIBS=$(VIDIX_LIBS) -lm
4136
1080b7780d03 committed due to request of gabucino
alex
parents: 4030
diff changeset
18
19509
2a00413b228e Redundancy removal part I: Unify CFLAGS and LDFLAGS handling.
diego
parents: 19508
diff changeset
19 MGA_CRTC2_LIBS=$(VIDIX_LIBS) -lm
2a00413b228e Redundancy removal part I: Unify CFLAGS and LDFLAGS handling.
diego
parents: 19508
diff changeset
20 MGA_CRTC2_CFLAGS=$(VIDIX_CFLAGS) -DCRTC2
4139
13d6395e8daa added mga_vid (also playback->offset is not set (fixing it on monday)
alex
parents: 4136
diff changeset
21
19509
2a00413b228e Redundancy removal part I: Unify CFLAGS and LDFLAGS handling.
diego
parents: 19508
diff changeset
22 NVIDIA_LIBS=$(VIDIX_LIBS) -lm
10954
27da030f7201 experimental nvidia_vid, use at your own risk
faust3
parents: 9629
diff changeset
23
19509
2a00413b228e Redundancy removal part I: Unify CFLAGS and LDFLAGS handling.
diego
parents: 19508
diff changeset
24 UNICHROME_LIBS=$(VIDIX_LIBS) -lm
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
25
19509
2a00413b228e Redundancy removal part I: Unify CFLAGS and LDFLAGS handling.
diego
parents: 19508
diff changeset
26 SAVAGE_LIBS=$(VIDIX_LIBS) -lm
14203
8be9b0f1e4b6 experimental savage vidix driver by Reza Jelveh <reza.jelveh at tu-harburg.de>
faust3
parents: 13605
diff changeset
27
19510
1544ca347324 Redundancy removal part II: Remove useless variable indirection.
diego
parents: 19509
diff changeset
28 all: cyberblade_vid.so radeon_vid.so rage128_vid.so mach64_vid.so \
1544ca347324 Redundancy removal part II: Remove useless variable indirection.
diego
parents: 19509
diff changeset
29 nvidia_vid.so mga_vid.so mga_crtc2_vid.so pm3_vid.so \
1544ca347324 Redundancy removal part II: Remove useless variable indirection.
diego
parents: 19509
diff changeset
30 sis_vid.so unichrome_vid.so savage_vid.so
3996
872781fef1b3 preliminary version
nick
parents:
diff changeset
31
872781fef1b3 preliminary version
nick
parents:
diff changeset
32
872781fef1b3 preliminary version
nick
parents:
diff changeset
33 .SUFFIXES: .c .o
872781fef1b3 preliminary version
nick
parents:
diff changeset
34
872781fef1b3 preliminary version
nick
parents:
diff changeset
35 # .PHONY: all clean
872781fef1b3 preliminary version
nick
parents:
diff changeset
36
19510
1544ca347324 Redundancy removal part II: Remove useless variable indirection.
diego
parents: 19509
diff changeset
37 cyberblade_vid.o: cyberblade_vid.c
19509
2a00413b228e Redundancy removal part I: Unify CFLAGS and LDFLAGS handling.
diego
parents: 19508
diff changeset
38 $(CC) -c $(VIDIX_CFLAGS) -o $@ $<
8505
d794e866cf5f EPIA (CyberBlade/i1) driver by Alastair M. Robinson
alex
parents: 7073
diff changeset
39
19510
1544ca347324 Redundancy removal part II: Remove useless variable indirection.
diego
parents: 19509
diff changeset
40 cyberblade_vid.so: cyberblade_vid.o
19507
570dac445535 Simplify compilation commands with $< and $@.
diego
parents: 19506
diff changeset
41 $(CC) -shared $< $(CYBERBLADE_LIBS) -Wl,-soname,$@ -o $@
8505
d794e866cf5f EPIA (CyberBlade/i1) driver by Alastair M. Robinson
alex
parents: 7073
diff changeset
42
19510
1544ca347324 Redundancy removal part II: Remove useless variable indirection.
diego
parents: 19509
diff changeset
43 pm3_vid.o: pm3_vid.c
19509
2a00413b228e Redundancy removal part I: Unify CFLAGS and LDFLAGS handling.
diego
parents: 19508
diff changeset
44 $(CC) -c $(VIDIX_CFLAGS) -o $@ $<
6254
034b12194350 rage128/radeon fixes, mach64 mess^H^H^H^Hcleanup, pm3 driver.
arpi
parents: 5814
diff changeset
45
19510
1544ca347324 Redundancy removal part II: Remove useless variable indirection.
diego
parents: 19509
diff changeset
46 pm3_vid.so: pm3_vid.o
19509
2a00413b228e Redundancy removal part I: Unify CFLAGS and LDFLAGS handling.
diego
parents: 19508
diff changeset
47 $(CC) -shared $< $(VIDIX_LIBS) -Wl,-soname,$@ -o $@
6254
034b12194350 rage128/radeon fixes, mach64 mess^H^H^H^Hcleanup, pm3 driver.
arpi
parents: 5814
diff changeset
48
19510
1544ca347324 Redundancy removal part II: Remove useless variable indirection.
diego
parents: 19509
diff changeset
49 radeon_vid.o: radeon_vid.c
19509
2a00413b228e Redundancy removal part I: Unify CFLAGS and LDFLAGS handling.
diego
parents: 19508
diff changeset
50 $(CC) -c $(VIDIX_CFLAGS) -o $@ $<
3996
872781fef1b3 preliminary version
nick
parents:
diff changeset
51
19510
1544ca347324 Redundancy removal part II: Remove useless variable indirection.
diego
parents: 19509
diff changeset
52 radeon_vid.so: radeon_vid.o
19507
570dac445535 Simplify compilation commands with $< and $@.
diego
parents: 19506
diff changeset
53 $(CC) -shared $< $(RADEON_LIBS) -Wl,-soname,$@ -o $@
3996
872781fef1b3 preliminary version
nick
parents:
diff changeset
54
19510
1544ca347324 Redundancy removal part II: Remove useless variable indirection.
diego
parents: 19509
diff changeset
55 rage128_vid.o: radeon_vid.c
3996
872781fef1b3 preliminary version
nick
parents:
diff changeset
56 $(CC) -c $(RAGE128_CFLAGS) -o $@ $<
872781fef1b3 preliminary version
nick
parents:
diff changeset
57
19510
1544ca347324 Redundancy removal part II: Remove useless variable indirection.
diego
parents: 19509
diff changeset
58 rage128_vid.so: rage128_vid.o
19507
570dac445535 Simplify compilation commands with $< and $@.
diego
parents: 19506
diff changeset
59 $(CC) -shared $< $(RAGE128_LIBS) -Wl,-soname,$@ -o $@
3996
872781fef1b3 preliminary version
nick
parents:
diff changeset
60
19510
1544ca347324 Redundancy removal part II: Remove useless variable indirection.
diego
parents: 19509
diff changeset
61 mach64_vid.o: mach64_vid.c
19509
2a00413b228e Redundancy removal part I: Unify CFLAGS and LDFLAGS handling.
diego
parents: 19508
diff changeset
62 $(CC) -c $(VIDIX_CFLAGS) -o $@ $<
4691
9c23a7497a6d Scratch for volunteers
nick
parents: 4215
diff changeset
63
19510
1544ca347324 Redundancy removal part II: Remove useless variable indirection.
diego
parents: 19509
diff changeset
64 mach64_vid.so: mach64_vid.o
19509
2a00413b228e Redundancy removal part I: Unify CFLAGS and LDFLAGS handling.
diego
parents: 19508
diff changeset
65 $(CC) -shared $< $(VIDIX_LIBS) -Wl,-soname,$@ -o $@
4691
9c23a7497a6d Scratch for volunteers
nick
parents: 4215
diff changeset
66
19510
1544ca347324 Redundancy removal part II: Remove useless variable indirection.
diego
parents: 19509
diff changeset
67 nvidia_vid.o: nvidia_vid.c
19509
2a00413b228e Redundancy removal part I: Unify CFLAGS and LDFLAGS handling.
diego
parents: 19508
diff changeset
68 $(CC) -c $(VIDIX_CFLAGS) -o $@ $<
4136
1080b7780d03 committed due to request of gabucino
alex
parents: 4030
diff changeset
69
19510
1544ca347324 Redundancy removal part II: Remove useless variable indirection.
diego
parents: 19509
diff changeset
70 nvidia_vid.so: nvidia_vid.o
19507
570dac445535 Simplify compilation commands with $< and $@.
diego
parents: 19506
diff changeset
71 $(CC) -shared $< $(NVIDIA_LIBS) -Wl,-soname,$@ -o $@
4136
1080b7780d03 committed due to request of gabucino
alex
parents: 4030
diff changeset
72
19510
1544ca347324 Redundancy removal part II: Remove useless variable indirection.
diego
parents: 19509
diff changeset
73 mga_vid.o: mga_vid.c
19509
2a00413b228e Redundancy removal part I: Unify CFLAGS and LDFLAGS handling.
diego
parents: 19508
diff changeset
74 $(CC) -c $(VIDIX_CFLAGS) -o $@ $<
4136
1080b7780d03 committed due to request of gabucino
alex
parents: 4030
diff changeset
75
19510
1544ca347324 Redundancy removal part II: Remove useless variable indirection.
diego
parents: 19509
diff changeset
76 mga_vid.so: mga_vid.o
19507
570dac445535 Simplify compilation commands with $< and $@.
diego
parents: 19506
diff changeset
77 $(CC) -shared $< $(MGA_LIBS) -Wl,-soname,$@ -o $@
4136
1080b7780d03 committed due to request of gabucino
alex
parents: 4030
diff changeset
78
19510
1544ca347324 Redundancy removal part II: Remove useless variable indirection.
diego
parents: 19509
diff changeset
79 mga_crtc2_vid.o: mga_vid.c
4139
13d6395e8daa added mga_vid (also playback->offset is not set (fixing it on monday)
alex
parents: 4136
diff changeset
80 $(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
81
19510
1544ca347324 Redundancy removal part II: Remove useless variable indirection.
diego
parents: 19509
diff changeset
82 mga_crtc2_vid.so: mga_crtc2_vid.o
19507
570dac445535 Simplify compilation commands with $< and $@.
diego
parents: 19506
diff changeset
83 $(CC) -shared $< $(MGA_CRTC2_LIBS) -Wl,-soname,$@ -o $@
4139
13d6395e8daa added mga_vid (also playback->offset is not set (fixing it on monday)
alex
parents: 4136
diff changeset
84
19510
1544ca347324 Redundancy removal part II: Remove useless variable indirection.
diego
parents: 19509
diff changeset
85 sis_vid.o sis_bridge.o: sis_vid.c sis_bridge.c
19509
2a00413b228e Redundancy removal part I: Unify CFLAGS and LDFLAGS handling.
diego
parents: 19508
diff changeset
86 $(CC) -c $(VIDIX_CFLAGS) -o $@ $(basename $@).c
11038
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents: 10954
diff changeset
87
19510
1544ca347324 Redundancy removal part II: Remove useless variable indirection.
diego
parents: 19509
diff changeset
88 sis_vid.so: sis_vid.o sis_bridge.o
19509
2a00413b228e Redundancy removal part I: Unify CFLAGS and LDFLAGS handling.
diego
parents: 19508
diff changeset
89 $(CC) -shared $< $(VIDIX_LIBS) -Wl,-soname,$@ -o $@
11038
3bac281db5a1 SiS 650/651/740/etc driver by Jake Page <jake@CS.Stanford.EDU>
alex
parents: 10954
diff changeset
90
19510
1544ca347324 Redundancy removal part II: Remove useless variable indirection.
diego
parents: 19509
diff changeset
91 unichrome_vid.o: unichrome_vid.c
19509
2a00413b228e Redundancy removal part I: Unify CFLAGS and LDFLAGS handling.
diego
parents: 19508
diff changeset
92 $(CC) -c $(VIDIX_CFLAGS) -o $@ $<
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
93
19510
1544ca347324 Redundancy removal part II: Remove useless variable indirection.
diego
parents: 19509
diff changeset
94 unichrome_vid.so: unichrome_vid.o
19507
570dac445535 Simplify compilation commands with $< and $@.
diego
parents: 19506
diff changeset
95 $(CC) -shared $< $(UNICHROME_LIBS) -Wl,-soname,$@ -o $@
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
96
19510
1544ca347324 Redundancy removal part II: Remove useless variable indirection.
diego
parents: 19509
diff changeset
97 savage_vid.o: savage_vid.c
19509
2a00413b228e Redundancy removal part I: Unify CFLAGS and LDFLAGS handling.
diego
parents: 19508
diff changeset
98 $(CC) -c $(VIDIX_CFLAGS) -o $@ $<
14250
ca1a994df819 10l, patch by Martin Braun <braun12@gmx.de>
faust3
parents: 14203
diff changeset
99
19510
1544ca347324 Redundancy removal part II: Remove useless variable indirection.
diego
parents: 19509
diff changeset
100 savage_vid.so: savage_vid.o
19507
570dac445535 Simplify compilation commands with $< and $@.
diego
parents: 19506
diff changeset
101 $(CC) -shared $< $(SAVAGE_LIBS) -Wl,-soname,$@ -o $@
14203
8be9b0f1e4b6 experimental savage vidix driver by Reza Jelveh <reza.jelveh at tu-harburg.de>
faust3
parents: 13605
diff changeset
102
3996
872781fef1b3 preliminary version
nick
parents:
diff changeset
103 clean:
872781fef1b3 preliminary version
nick
parents:
diff changeset
104 rm -f *.o *.so *~
872781fef1b3 preliminary version
nick
parents:
diff changeset
105
17488
ce1ba8fd57e7 Make clean/distclean behave uniformly in all directories.
diego
parents: 17288
diff changeset
106 distclean: clean
ce1ba8fd57e7 Make clean/distclean behave uniformly in all directories.
diego
parents: 17288
diff changeset
107 rm -f .depend test
3996
872781fef1b3 preliminary version
nick
parents:
diff changeset
108
872781fef1b3 preliminary version
nick
parents:
diff changeset
109 dep: depend
872781fef1b3 preliminary version
nick
parents:
diff changeset
110
872781fef1b3 preliminary version
nick
parents:
diff changeset
111 depend:
6254
034b12194350 rage128/radeon fixes, mach64 mess^H^H^H^Hcleanup, pm3 driver.
arpi
parents: 5814
diff changeset
112 # do nothing here
3996
872781fef1b3 preliminary version
nick
parents:
diff changeset
113
872781fef1b3 preliminary version
nick
parents:
diff changeset
114 install:
7024
c605c57edead hmm. vosub_vidix has LIBDIR/mplayer/vidix as driver path, so we should use
arpi
parents: 6650
diff changeset
115 mkdir -p $(LIBDIR)/mplayer/vidix
17288
4c86d2479aa2 use $(INSTALLSTRIP) consistently
rathann
parents: 14250
diff changeset
116 -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
117 uninstall:
7024
c605c57edead hmm. vosub_vidix has LIBDIR/mplayer/vidix as driver path, so we should use
arpi
parents: 6650
diff changeset
118 rm -f $(LIBDIR)/mplayer/vidix/*.so
19508
faf94e4b3a36 The way to ignore failing commands in Makefiles is to prepend a -.
diego
parents: 19507
diff changeset
119 -rmdir -p $(LIBDIR)/mplayer/vidix
6254
034b12194350 rage128/radeon fixes, mach64 mess^H^H^H^Hcleanup, pm3 driver.
arpi
parents: 5814
diff changeset
120
3996
872781fef1b3 preliminary version
nick
parents:
diff changeset
121 #
872781fef1b3 preliminary version
nick
parents:
diff changeset
122 # include dependency files if they exist
872781fef1b3 preliminary version
nick
parents:
diff changeset
123 #
872781fef1b3 preliminary version
nick
parents:
diff changeset
124 ifneq ($(wildcard .depend),)
872781fef1b3 preliminary version
nick
parents:
diff changeset
125 include .depend
872781fef1b3 preliminary version
nick
parents:
diff changeset
126 endif