Mercurial > mplayer.hg
annotate vidix/drivers/Makefile @ 6173:020bfd8ac9ef
- put back SystemTooSlow message
- more tips for tooslow (ni vs cache) and buffer overflow (-ni)
author | arpi |
---|---|
date | Thu, 23 May 2002 21:58:29 +0000 |
parents | 16186e365197 |
children | 034b12194350 |
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 | |
4691 | 20 MACH64_VID=mach64_vid.so |
21 MACH64_SRCS=mach64_vid.c | |
22 MACH64_OBJS=mach64_vid.o | |
23 MACH64_LIBS=-L../../libdha -ldha | |
24 MACH64_CFLAGS=$(OPTFLAGS) -fPIC -I. -I.. -Wall -W -DRAGE128 | |
25 | |
4136 | 26 NVIDIA_VID=nvidia_vid.so |
27 NVIDIA_SRCS=nvidia_vid.c | |
28 NVIDIA_OBJS=nvidia_vid.o | |
29 NVIDIA_LIBS=-L../../libdha -ldha -lm | |
30 NVIDIA_CFLAGS=$(OPTFLAGS) -fPIC -I. -I.. -Wall -W | |
31 | |
32 GENFB_VID=genfb_vid.so | |
33 GENFB_SRCS=genfb_vid.c | |
34 GENFB_OBJS=genfb_vid.o | |
35 GENFB_LIBS=-L../../libdha -ldha -lm | |
36 GENFB_CFLAGS=$(OPTFLAGS) -fPIC -I. -I.. -Wall -W | |
37 | |
38 MGA_VID=mga_vid.so | |
39 MGA_SRCS=mga_vid.c | |
40 MGA_OBJS=mga_vid.o | |
41 MGA_LIBS=-L../../libdha -ldha -lm | |
42 MGA_CFLAGS=$(OPTFLAGS) -fPIC -I. -I.. -Wall -W | |
43 | |
4139
13d6395e8daa
added mga_vid (also playback->offset is not set (fixing it on monday)
alex
parents:
4136
diff
changeset
|
44 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
|
45 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
|
46 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
|
47 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
|
48 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
|
49 |
4691 | 50 all: $(RADEON_VID) $(RAGE128_VID) $(MACH64_VID) $(NVIDIA_VID) $(GENFB_VID) $(MGA_VID) $(MGA_CRTC2_VID) |
3996 | 51 |
52 | |
53 .SUFFIXES: .c .o | |
54 | |
55 # .PHONY: all clean | |
56 | |
57 $(RADEON_OBJS): $(RADEON_SRCS) | |
58 $(CC) -c $(RADEON_CFLAGS) -o $@ $< | |
59 | |
60 $(RADEON_VID): $(RADEON_OBJS) | |
4030 | 61 $(LD) $(RADEON_LIBS) -shared -soname $(RADEON_VID) -o $(RADEON_VID) $(RADEON_OBJS) |
3996 | 62 |
63 $(RAGE128_OBJS): $(RAGE128_SRCS) | |
64 $(CC) -c $(RAGE128_CFLAGS) -o $@ $< | |
65 | |
66 $(RAGE128_VID): $(RAGE128_OBJS) | |
4030 | 67 $(LD) $(RAGE128_LIBS) -shared -soname $(RAGE128_VID) -o $(RAGE128_VID) $(RAGE128_OBJS) |
3996 | 68 |
4691 | 69 $(MACH64_OBJS): $(MACH64_SRCS) |
70 $(CC) -c $(MACH64_CFLAGS) -o $@ $< | |
71 | |
72 $(MACH64_VID): $(MACH64_OBJS) | |
73 $(LD) $(MACH64_LIBS) -shared -soname $(MACH64_VID) -o $(MACH64_VID) $(MACH64_OBJS) | |
74 | |
4136 | 75 $(NVIDIA_OBJS): $(NVIDIA_SRCS) |
76 $(CC) -c $(NVIDIA_CFLAGS) -o $@ $< | |
77 | |
78 $(NVIDIA_VID): $(NVIDIA_OBJS) | |
79 $(LD) $(NVIDIA_LIBS) -shared -soname $(NVIDIA_VID) -o $(NVIDIA_VID) $(NVIDIA_OBJS) | |
80 | |
81 $(GENFB_OBJS): $(GENFB_SRCS) | |
82 $(CC) -c $(GENFB_CFLAGS) -o $@ $< | |
83 | |
84 $(GENFB_VID): $(GENFB_OBJS) | |
85 $(LD) $(GENFB_LIBS) -shared -soname $(GENFB_VID) -o $(GENFB_VID) $(GENFB_OBJS) | |
86 | |
87 $(MGA_OBJS): $(MGA_SRCS) | |
88 $(CC) -c $(MGA_CFLAGS) -o $@ $< | |
89 | |
90 $(MGA_VID): $(MGA_OBJS) | |
91 $(LD) $(MGA_LIBS) -shared -soname $(MGA_VID) -o $(MGA_VID) $(MGA_OBJS) | |
92 | |
4139
13d6395e8daa
added mga_vid (also playback->offset is not set (fixing it on monday)
alex
parents:
4136
diff
changeset
|
93 $(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
|
94 $(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
|
95 |
13d6395e8daa
added mga_vid (also playback->offset is not set (fixing it on monday)
alex
parents:
4136
diff
changeset
|
96 $(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
|
97 $(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
|
98 |
3996 | 99 clean: |
100 rm -f *.o *.so *~ | |
101 | |
102 distclean: | |
103 rm -f Makefile.bak *.o *.so test *~ .depend | |
104 | |
105 dep: depend | |
106 | |
107 depend: | |
5607 | 108 echo "depend not supported" |
3996 | 109 |
110 install: | |
4030 | 111 mkdir -p $(BINDIR) |
4215 | 112 install -m 755 -s -p *.so $(BINDIR) |
3996 | 113 # |
114 # include dependency files if they exist | |
115 # | |
116 ifneq ($(wildcard .depend),) | |
117 include .depend | |
118 endif |