Mercurial > mplayer.hg
annotate vidix/drivers/Makefile @ 19513:9817edc04689
sis_vid.so should be created from more than one object.
author | diego |
---|---|
date | Thu, 24 Aug 2006 00:45:31 +0000 |
parents | cefd8333eeea |
children | 5f48b21fb801 |
rev | line source |
---|---|
3996 | 1 |
2 include ../../config.mak | |
3 | |
5814 | 4 BINDIR = $(LIBDIR)/mplayer/vidix |
4030 | 5 |
19509
2a00413b228e
Redundancy removal part I: Unify CFLAGS and LDFLAGS handling.
diego
parents:
19508
diff
changeset
|
6 VIDIX_LIBS = -L../../libdha -ldha |
19511
854cfbd1a952
Redundancy removal part III: Unify LDFLAGS handling some more.
diego
parents:
19510
diff
changeset
|
7 VIDIX_LIBS_M = $(VIDIX_LIBS) -lm |
854cfbd1a952
Redundancy removal part III: Unify LDFLAGS handling some more.
diego
parents:
19510
diff
changeset
|
8 VIDIX_LIBS_X = $(VIDIX_LIBS_M) $(X_LIB) |
19509
2a00413b228e
Redundancy removal part I: Unify CFLAGS and LDFLAGS handling.
diego
parents:
19508
diff
changeset
|
9 VIDIX_CFLAGS=-fPIC -I. -I.. $(OPTFLAGS) |
2a00413b228e
Redundancy removal part I: Unify CFLAGS and LDFLAGS handling.
diego
parents:
19508
diff
changeset
|
10 |
2a00413b228e
Redundancy removal part I: Unify CFLAGS and LDFLAGS handling.
diego
parents:
19508
diff
changeset
|
11 RAGE128_CFLAGS=$(VIDIX_CFLAGS) -DRAGE128 |
3996 | 12 |
19509
2a00413b228e
Redundancy removal part I: Unify CFLAGS and LDFLAGS handling.
diego
parents:
19508
diff
changeset
|
13 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
|
14 |
19510
1544ca347324
Redundancy removal part II: Remove useless variable indirection.
diego
parents:
19509
diff
changeset
|
15 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
|
16 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
|
17 sis_vid.so unichrome_vid.so savage_vid.so |
3996 | 18 |
19 | |
20 .SUFFIXES: .c .o | |
21 | |
22 # .PHONY: all clean | |
23 | |
19510
1544ca347324
Redundancy removal part II: Remove useless variable indirection.
diego
parents:
19509
diff
changeset
|
24 cyberblade_vid.o: cyberblade_vid.c |
19509
2a00413b228e
Redundancy removal part I: Unify CFLAGS and LDFLAGS handling.
diego
parents:
19508
diff
changeset
|
25 $(CC) -c $(VIDIX_CFLAGS) -o $@ $< |
8505 | 26 |
19510
1544ca347324
Redundancy removal part II: Remove useless variable indirection.
diego
parents:
19509
diff
changeset
|
27 cyberblade_vid.so: cyberblade_vid.o |
19511
854cfbd1a952
Redundancy removal part III: Unify LDFLAGS handling some more.
diego
parents:
19510
diff
changeset
|
28 $(CC) -shared $< $(VIDIX_LIBS_M) -Wl,-soname,$@ -o $@ |
8505 | 29 |
19510
1544ca347324
Redundancy removal part II: Remove useless variable indirection.
diego
parents:
19509
diff
changeset
|
30 pm3_vid.o: pm3_vid.c |
19509
2a00413b228e
Redundancy removal part I: Unify CFLAGS and LDFLAGS handling.
diego
parents:
19508
diff
changeset
|
31 $(CC) -c $(VIDIX_CFLAGS) -o $@ $< |
6254
034b12194350
rage128/radeon fixes, mach64 mess^H^H^H^Hcleanup, pm3 driver.
arpi
parents:
5814
diff
changeset
|
32 |
19510
1544ca347324
Redundancy removal part II: Remove useless variable indirection.
diego
parents:
19509
diff
changeset
|
33 pm3_vid.so: pm3_vid.o |
19509
2a00413b228e
Redundancy removal part I: Unify CFLAGS and LDFLAGS handling.
diego
parents:
19508
diff
changeset
|
34 $(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
|
35 |
19510
1544ca347324
Redundancy removal part II: Remove useless variable indirection.
diego
parents:
19509
diff
changeset
|
36 radeon_vid.o: radeon_vid.c |
19509
2a00413b228e
Redundancy removal part I: Unify CFLAGS and LDFLAGS handling.
diego
parents:
19508
diff
changeset
|
37 $(CC) -c $(VIDIX_CFLAGS) -o $@ $< |
3996 | 38 |
19510
1544ca347324
Redundancy removal part II: Remove useless variable indirection.
diego
parents:
19509
diff
changeset
|
39 radeon_vid.so: radeon_vid.o |
19511
854cfbd1a952
Redundancy removal part III: Unify LDFLAGS handling some more.
diego
parents:
19510
diff
changeset
|
40 $(CC) -shared $< $(VIDIX_LIBS_X) -Wl,-soname,$@ -o $@ |
3996 | 41 |
19510
1544ca347324
Redundancy removal part II: Remove useless variable indirection.
diego
parents:
19509
diff
changeset
|
42 rage128_vid.o: radeon_vid.c |
3996 | 43 $(CC) -c $(RAGE128_CFLAGS) -o $@ $< |
44 | |
19510
1544ca347324
Redundancy removal part II: Remove useless variable indirection.
diego
parents:
19509
diff
changeset
|
45 rage128_vid.so: rage128_vid.o |
19511
854cfbd1a952
Redundancy removal part III: Unify LDFLAGS handling some more.
diego
parents:
19510
diff
changeset
|
46 $(CC) -shared $< $(VIDIX_LIBS_X) -Wl,-soname,$@ -o $@ |
3996 | 47 |
19510
1544ca347324
Redundancy removal part II: Remove useless variable indirection.
diego
parents:
19509
diff
changeset
|
48 mach64_vid.o: mach64_vid.c |
19509
2a00413b228e
Redundancy removal part I: Unify CFLAGS and LDFLAGS handling.
diego
parents:
19508
diff
changeset
|
49 $(CC) -c $(VIDIX_CFLAGS) -o $@ $< |
4691 | 50 |
19510
1544ca347324
Redundancy removal part II: Remove useless variable indirection.
diego
parents:
19509
diff
changeset
|
51 mach64_vid.so: mach64_vid.o |
19509
2a00413b228e
Redundancy removal part I: Unify CFLAGS and LDFLAGS handling.
diego
parents:
19508
diff
changeset
|
52 $(CC) -shared $< $(VIDIX_LIBS) -Wl,-soname,$@ -o $@ |
4691 | 53 |
19510
1544ca347324
Redundancy removal part II: Remove useless variable indirection.
diego
parents:
19509
diff
changeset
|
54 nvidia_vid.o: nvidia_vid.c |
19509
2a00413b228e
Redundancy removal part I: Unify CFLAGS and LDFLAGS handling.
diego
parents:
19508
diff
changeset
|
55 $(CC) -c $(VIDIX_CFLAGS) -o $@ $< |
4136 | 56 |
19510
1544ca347324
Redundancy removal part II: Remove useless variable indirection.
diego
parents:
19509
diff
changeset
|
57 nvidia_vid.so: nvidia_vid.o |
19511
854cfbd1a952
Redundancy removal part III: Unify LDFLAGS handling some more.
diego
parents:
19510
diff
changeset
|
58 $(CC) -shared $< $(VIDIX_LIBS_M) -Wl,-soname,$@ -o $@ |
4136 | 59 |
19510
1544ca347324
Redundancy removal part II: Remove useless variable indirection.
diego
parents:
19509
diff
changeset
|
60 mga_vid.o: mga_vid.c |
19509
2a00413b228e
Redundancy removal part I: Unify CFLAGS and LDFLAGS handling.
diego
parents:
19508
diff
changeset
|
61 $(CC) -c $(VIDIX_CFLAGS) -o $@ $< |
4136 | 62 |
19510
1544ca347324
Redundancy removal part II: Remove useless variable indirection.
diego
parents:
19509
diff
changeset
|
63 mga_vid.so: mga_vid.o |
19511
854cfbd1a952
Redundancy removal part III: Unify LDFLAGS handling some more.
diego
parents:
19510
diff
changeset
|
64 $(CC) -shared $< $(VIDIX_LIBS_M) -Wl,-soname,$@ -o $@ |
4136 | 65 |
19510
1544ca347324
Redundancy removal part II: Remove useless variable indirection.
diego
parents:
19509
diff
changeset
|
66 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
|
67 $(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
|
68 |
19510
1544ca347324
Redundancy removal part II: Remove useless variable indirection.
diego
parents:
19509
diff
changeset
|
69 mga_crtc2_vid.so: mga_crtc2_vid.o |
19511
854cfbd1a952
Redundancy removal part III: Unify LDFLAGS handling some more.
diego
parents:
19510
diff
changeset
|
70 $(CC) -shared $< $(VIDIX_LIBS_M) -Wl,-soname,$@ -o $@ |
4139
13d6395e8daa
added mga_vid (also playback->offset is not set (fixing it on monday)
alex
parents:
4136
diff
changeset
|
71 |
19510
1544ca347324
Redundancy removal part II: Remove useless variable indirection.
diego
parents:
19509
diff
changeset
|
72 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
|
73 $(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
|
74 |
19510
1544ca347324
Redundancy removal part II: Remove useless variable indirection.
diego
parents:
19509
diff
changeset
|
75 sis_vid.so: sis_vid.o sis_bridge.o |
19513
9817edc04689
sis_vid.so should be created from more than one object.
diego
parents:
19512
diff
changeset
|
76 $(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
|
77 |
19510
1544ca347324
Redundancy removal part II: Remove useless variable indirection.
diego
parents:
19509
diff
changeset
|
78 unichrome_vid.o: unichrome_vid.c |
19509
2a00413b228e
Redundancy removal part I: Unify CFLAGS and LDFLAGS handling.
diego
parents:
19508
diff
changeset
|
79 $(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
|
80 |
19510
1544ca347324
Redundancy removal part II: Remove useless variable indirection.
diego
parents:
19509
diff
changeset
|
81 unichrome_vid.so: unichrome_vid.o |
19511
854cfbd1a952
Redundancy removal part III: Unify LDFLAGS handling some more.
diego
parents:
19510
diff
changeset
|
82 $(CC) -shared $< $(VIDIX_LIBS_M) -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
|
83 |
19510
1544ca347324
Redundancy removal part II: Remove useless variable indirection.
diego
parents:
19509
diff
changeset
|
84 savage_vid.o: savage_vid.c |
19509
2a00413b228e
Redundancy removal part I: Unify CFLAGS and LDFLAGS handling.
diego
parents:
19508
diff
changeset
|
85 $(CC) -c $(VIDIX_CFLAGS) -o $@ $< |
14250 | 86 |
19510
1544ca347324
Redundancy removal part II: Remove useless variable indirection.
diego
parents:
19509
diff
changeset
|
87 savage_vid.so: savage_vid.o |
19511
854cfbd1a952
Redundancy removal part III: Unify LDFLAGS handling some more.
diego
parents:
19510
diff
changeset
|
88 $(CC) -shared $< $(VIDIX_LIBS_M) -Wl,-soname,$@ -o $@ |
14203
8be9b0f1e4b6
experimental savage vidix driver by Reza Jelveh <reza.jelveh at tu-harburg.de>
faust3
parents:
13605
diff
changeset
|
89 |
3996 | 90 clean: |
91 rm -f *.o *.so *~ | |
92 | |
17488
ce1ba8fd57e7
Make clean/distclean behave uniformly in all directories.
diego
parents:
17288
diff
changeset
|
93 distclean: clean |
ce1ba8fd57e7
Make clean/distclean behave uniformly in all directories.
diego
parents:
17288
diff
changeset
|
94 rm -f .depend test |
3996 | 95 |
96 dep: depend | |
97 | |
98 depend: | |
6254
034b12194350
rage128/radeon fixes, mach64 mess^H^H^H^Hcleanup, pm3 driver.
arpi
parents:
5814
diff
changeset
|
99 # do nothing here |
3996 | 100 |
101 install: | |
7024
c605c57edead
hmm. vosub_vidix has LIBDIR/mplayer/vidix as driver path, so we should use
arpi
parents:
6650
diff
changeset
|
102 mkdir -p $(LIBDIR)/mplayer/vidix |
17288 | 103 -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
|
104 uninstall: |
7024
c605c57edead
hmm. vosub_vidix has LIBDIR/mplayer/vidix as driver path, so we should use
arpi
parents:
6650
diff
changeset
|
105 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
|
106 -rmdir -p $(LIBDIR)/mplayer/vidix |
6254
034b12194350
rage128/radeon fixes, mach64 mess^H^H^H^Hcleanup, pm3 driver.
arpi
parents:
5814
diff
changeset
|
107 |
3996 | 108 # |
109 # include dependency files if they exist | |
110 # | |
111 ifneq ($(wildcard .depend),) | |
112 include .depend | |
113 endif |