Mercurial > mplayer.hg
annotate vidix/drivers/Makefile @ 6579:6850df500b8c
IMGFMT_{RGB,BGR}{1,4}
author | michael |
---|---|
date | Thu, 27 Jun 2002 18:09:32 +0000 |
parents | 034b12194350 |
children | 345958ed44e5 |
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 NVIDIA_VID=nvidia_vid.so |
33 NVIDIA_SRCS=nvidia_vid.c | |
34 NVIDIA_OBJS=nvidia_vid.o | |
35 NVIDIA_LIBS=-L../../libdha -ldha -lm | |
36 NVIDIA_CFLAGS=$(OPTFLAGS) -fPIC -I. -I.. -Wall -W | |
37 | |
38 GENFB_VID=genfb_vid.so | |
39 GENFB_SRCS=genfb_vid.c | |
40 GENFB_OBJS=genfb_vid.o | |
41 GENFB_LIBS=-L../../libdha -ldha -lm | |
42 GENFB_CFLAGS=$(OPTFLAGS) -fPIC -I. -I.. -Wall -W | |
43 | |
44 MGA_VID=mga_vid.so | |
45 MGA_SRCS=mga_vid.c | |
46 MGA_OBJS=mga_vid.o | |
47 MGA_LIBS=-L../../libdha -ldha -lm | |
48 MGA_CFLAGS=$(OPTFLAGS) -fPIC -I. -I.. -Wall -W | |
49 | |
4139
13d6395e8daa
added mga_vid (also playback->offset is not set (fixing it on monday)
alex
parents:
4136
diff
changeset
|
50 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
|
51 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
|
52 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
|
53 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
|
54 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
|
55 |
6254
034b12194350
rage128/radeon fixes, mach64 mess^H^H^H^Hcleanup, pm3 driver.
arpi
parents:
5814
diff
changeset
|
56 all: $(RADEON_VID) $(RAGE128_VID) $(MACH64_VID) $(NVIDIA_VID) $(GENFB_VID) $(MGA_VID) $(MGA_CRTC2_VID) $(PM3_VID) |
3996 | 57 |
58 | |
59 .SUFFIXES: .c .o | |
60 | |
61 # .PHONY: all clean | |
62 | |
6254
034b12194350
rage128/radeon fixes, mach64 mess^H^H^H^Hcleanup, pm3 driver.
arpi
parents:
5814
diff
changeset
|
63 $(PM3_OBJS): $(PM3_SRCS) |
034b12194350
rage128/radeon fixes, mach64 mess^H^H^H^Hcleanup, pm3 driver.
arpi
parents:
5814
diff
changeset
|
64 $(CC) -c $(PM3_CFLAGS) -o $@ $< |
034b12194350
rage128/radeon fixes, mach64 mess^H^H^H^Hcleanup, pm3 driver.
arpi
parents:
5814
diff
changeset
|
65 |
034b12194350
rage128/radeon fixes, mach64 mess^H^H^H^Hcleanup, pm3 driver.
arpi
parents:
5814
diff
changeset
|
66 $(PM3_VID): $(PM3_OBJS) |
034b12194350
rage128/radeon fixes, mach64 mess^H^H^H^Hcleanup, pm3 driver.
arpi
parents:
5814
diff
changeset
|
67 $(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
|
68 |
3996 | 69 $(RADEON_OBJS): $(RADEON_SRCS) |
70 $(CC) -c $(RADEON_CFLAGS) -o $@ $< | |
71 | |
72 $(RADEON_VID): $(RADEON_OBJS) | |
4030 | 73 $(LD) $(RADEON_LIBS) -shared -soname $(RADEON_VID) -o $(RADEON_VID) $(RADEON_OBJS) |
3996 | 74 |
75 $(RAGE128_OBJS): $(RAGE128_SRCS) | |
76 $(CC) -c $(RAGE128_CFLAGS) -o $@ $< | |
77 | |
78 $(RAGE128_VID): $(RAGE128_OBJS) | |
4030 | 79 $(LD) $(RAGE128_LIBS) -shared -soname $(RAGE128_VID) -o $(RAGE128_VID) $(RAGE128_OBJS) |
3996 | 80 |
4691 | 81 $(MACH64_OBJS): $(MACH64_SRCS) |
82 $(CC) -c $(MACH64_CFLAGS) -o $@ $< | |
83 | |
84 $(MACH64_VID): $(MACH64_OBJS) | |
85 $(LD) $(MACH64_LIBS) -shared -soname $(MACH64_VID) -o $(MACH64_VID) $(MACH64_OBJS) | |
86 | |
4136 | 87 $(NVIDIA_OBJS): $(NVIDIA_SRCS) |
88 $(CC) -c $(NVIDIA_CFLAGS) -o $@ $< | |
89 | |
90 $(NVIDIA_VID): $(NVIDIA_OBJS) | |
91 $(LD) $(NVIDIA_LIBS) -shared -soname $(NVIDIA_VID) -o $(NVIDIA_VID) $(NVIDIA_OBJS) | |
92 | |
93 $(GENFB_OBJS): $(GENFB_SRCS) | |
94 $(CC) -c $(GENFB_CFLAGS) -o $@ $< | |
95 | |
96 $(GENFB_VID): $(GENFB_OBJS) | |
97 $(LD) $(GENFB_LIBS) -shared -soname $(GENFB_VID) -o $(GENFB_VID) $(GENFB_OBJS) | |
98 | |
99 $(MGA_OBJS): $(MGA_SRCS) | |
100 $(CC) -c $(MGA_CFLAGS) -o $@ $< | |
101 | |
102 $(MGA_VID): $(MGA_OBJS) | |
103 $(LD) $(MGA_LIBS) -shared -soname $(MGA_VID) -o $(MGA_VID) $(MGA_OBJS) | |
104 | |
4139
13d6395e8daa
added mga_vid (also playback->offset is not set (fixing it on monday)
alex
parents:
4136
diff
changeset
|
105 $(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
|
106 $(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
|
107 |
13d6395e8daa
added mga_vid (also playback->offset is not set (fixing it on monday)
alex
parents:
4136
diff
changeset
|
108 $(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 $(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
|
110 |
3996 | 111 clean: |
112 rm -f *.o *.so *~ | |
113 | |
114 distclean: | |
115 rm -f Makefile.bak *.o *.so test *~ .depend | |
116 | |
117 dep: depend | |
118 | |
119 depend: | |
6254
034b12194350
rage128/radeon fixes, mach64 mess^H^H^H^Hcleanup, pm3 driver.
arpi
parents:
5814
diff
changeset
|
120 # do nothing here |
3996 | 121 |
122 install: | |
4030 | 123 mkdir -p $(BINDIR) |
4215 | 124 install -m 755 -s -p *.so $(BINDIR) |
6254
034b12194350
rage128/radeon fixes, mach64 mess^H^H^H^Hcleanup, pm3 driver.
arpi
parents:
5814
diff
changeset
|
125 uninstall: |
034b12194350
rage128/radeon fixes, mach64 mess^H^H^H^Hcleanup, pm3 driver.
arpi
parents:
5814
diff
changeset
|
126 rm -f $(BINDIR)/*.so |
034b12194350
rage128/radeon fixes, mach64 mess^H^H^H^Hcleanup, pm3 driver.
arpi
parents:
5814
diff
changeset
|
127 rmdir -p --ignore-fail-on-non-empty $(BINDIR) |
034b12194350
rage128/radeon fixes, mach64 mess^H^H^H^Hcleanup, pm3 driver.
arpi
parents:
5814
diff
changeset
|
128 |
3996 | 129 # |
130 # include dependency files if they exist | |
131 # | |
132 ifneq ($(wildcard .depend),) | |
133 include .depend | |
134 endif |