Mercurial > mplayer.hg
annotate drivers/radeon/Makefile @ 22164:ef142bfc30fb
Handle libavformat libnut dependencies.
Fixes compilation after ffmpeg r7891.
author | uau |
---|---|
date | Fri, 09 Feb 2007 19:44:43 +0000 |
parents | 618d1857f4c4 |
children | 507ed8dcd772 |
rev | line source |
---|---|
1921 | 1 KERNEL_INCLUDES = /usr/src/linux/include |
2 INCLUDES = -I$(KERNEL_INCLUDES) | |
3244 | 3 # auto install |
4 CONFIG_SHELL=/bin/sh -c | |
5 KERNEL_VERSION=$(shell $(CONFIG_SHELL) 'uname -r') | |
6 MOD_PATH_PREFIX= | |
7 MOD_PATH=$(MOD_PATH_PREFIX)/lib/modules/$(KERNEL_VERSION)/kernel/drivers/video/ | |
1921 | 8 |
9 # | |
10 # standard CFLAGS | |
11 # | |
12 | |
13 CPPFLAGS := -D__KERNEL__ -I$(KERNEL_INCLUDES) | |
14 | |
7073
b69ddd4d3bb9
removed -W -Wall -g and other gcc-specific warning/debug options
arpi
parents:
3940
diff
changeset
|
15 CFLAGS := $(CPPFLAGS) -O2 \ |
3940 | 16 -fomit-frame-pointer -fno-strict-aliasing -fno-common -ffast-math\ |
1921 | 17 -D__KERNEL__ -DMODULE -include $(KERNEL_INCLUDES)/linux/modversions.h |
18 AFLAGS := -D__ASSEMBLY__ $(CPPFLAGS) | |
19 | |
20 | |
3164 | 21 all: radeonfb.o radeon_vid.o rage128_vid.o |
1921 | 22 |
23 radeonfb.o: radeonfb.c radeon.h | |
24 $(CC) $(CFLAGS) $(INCLUDES) -c $(basename $@).c | |
2870 | 25 radeon_vid.o: radeon_vid.c radeon.h radeon_vid.h |
26 $(CC) $(CFLAGS) $(INCLUDES) -c $(basename $@).c | |
3164 | 27 rage128_vid.o: radeon_vid.c radeon.h radeon_vid.h |
28 $(CC) $(CFLAGS) -DRAGE128 $(INCLUDES) -c radeon_vid.c -o $@ | |
1921 | 29 |
21080 | 30 dep depend: |
1921 | 31 |
32 clean: | |
17488
ce1ba8fd57e7
Make clean/distclean behave uniformly in all directories.
diego
parents:
7073
diff
changeset
|
33 rm -f *.o *.a *~ |
ce1ba8fd57e7
Make clean/distclean behave uniformly in all directories.
diego
parents:
7073
diff
changeset
|
34 |
ce1ba8fd57e7
Make clean/distclean behave uniformly in all directories.
diego
parents:
7073
diff
changeset
|
35 distclean: clean |
1921 | 36 |
37 install: | |
3244 | 38 mkdir -p $(MOD_PATH) |
39 cp radeonfb.o $(MOD_PATH) | |
40 cp radeon_vid.o $(MOD_PATH) | |
41 cp rage128_vid.o $(MOD_PATH) | |
42 depmod -a | |
3246 | 43 nodes: |
3244 | 44 mknod /dev/radeon_vid c 178 0 |
3253 | 45 ln -s /dev/radeon_vid /dev/rage128_vid |
3246 | 46 # Stuff below is for me only ;) |
47 vid: | |
48 make install | |
49 rmmod radeon_vid | |
3266
ff90589b635f
Fixed single buffering problems and -vo mga compatibility by number of buffers
nick
parents:
3253
diff
changeset
|
50 modprobe radeon_vid mtrr=1 |