Mercurial > mplayer.hg
annotate drivers/Makefile @ 24793:a77d2ba096f0
Disable libavcodec libvorbis encoder
MPlayer's configure does not test and set variables required by the
encoder properly (never links with -lvorbisenc for example). Disable
it completely to fix broken compilation in cases where it was enabled.
Support for the libvorbis encoder could be a desirable feature as it
can produce better quality audio than libavcodec's own encoder, but
implementing that properly would require more work.
author | uau |
---|---|
date | Sat, 20 Oct 2007 16:03:12 +0000 |
parents | c162f47fdae3 |
children | fa1161425445 |
rev | line source |
---|---|
22777 | 1 KERNEL_INC = /lib/modules/`uname -r`/build/include |
2 VERSION = $(shell grep RELEASE $(KERNEL_INC)/linux/version.h | cut -d'"' -f2) | |
3768
fda4c0ea039f
install: target added, based on patch by Jukka Tastula <jukka.tastula@kotinet.com>
arpi
parents:
1395
diff
changeset
|
3 MDIR = /lib/modules/$(VERSION)/misc |
1 | 4 |
22777 | 5 CFLAGS = -O2 -D__KERNEL__ -DMODULE -Wall -I$(KERNEL_INC) \ |
6 -include $(KERNEL_INC)/linux/modversions.h | |
22671
99db91e74443
Remove remnants of Linux 2.6 support, the mga_vid.c part was made to
diego
parents:
22670
diff
changeset
|
7 |
22691 | 8 OBJS = mga_vid.o tdfx_vid.o radeon_vid.o rage128_vid.o |
22680
29f59ec39e6e
Introduce OBJS variable for the list of objects to build.
diego
parents:
22676
diff
changeset
|
9 |
29f59ec39e6e
Introduce OBJS variable for the list of objects to build.
diego
parents:
22676
diff
changeset
|
10 all: $(OBJS) mga_vid_test tdfx_vid_test |
12694
e2fa87f416a2
mga_vid under linux 2.6.x support written by F. O. Tempel, Ed Sweetman, Gergely Nagy among others
alex
parents:
9545
diff
changeset
|
11 |
1 | 12 mga_vid.o: mga_vid.c mga_vid.h |
9545
d1bbeae9f46a
tdfx_vid a new kernel driver for tdfx wich let use agp move :)
albeu
parents:
7073
diff
changeset
|
13 tdfx_vid.o: tdfx_vid.c 3dfx.h |
22691 | 14 radeon_vid.o: radeon_vid.c radeon.h radeon_vid.h |
15 rage128_vid.o: radeon_vid.c radeon.h radeon_vid.h | |
22683
5bfd5bd0ef80
Merge Makefile from radeon/ subdirectory into this one.
diego
parents:
22682
diff
changeset
|
16 $(CC) $(CFLAGS) -DRAGE128 -c $< -o $@ |
22691 | 17 radeon_vid.o rage128_vid.o: |
22683
5bfd5bd0ef80
Merge Makefile from radeon/ subdirectory into this one.
diego
parents:
22682
diff
changeset
|
18 CFLAGS += -fomit-frame-pointer -fno-strict-aliasing -fno-common -ffast-math |
9545
d1bbeae9f46a
tdfx_vid a new kernel driver for tdfx wich let use agp move :)
albeu
parents:
7073
diff
changeset
|
19 |
22673
40e45742e810
Remove now unnecessary MGA_VID_OBJ variable indirection.
diego
parents:
22672
diff
changeset
|
20 install: |
18083 | 21 -mkdir -p $(MDIR) |
22680
29f59ec39e6e
Introduce OBJS variable for the list of objects to build.
diego
parents:
22676
diff
changeset
|
22 install -m 644 $(OBJS) $(MDIR) |
3768
fda4c0ea039f
install: target added, based on patch by Jukka Tastula <jukka.tastula@kotinet.com>
arpi
parents:
1395
diff
changeset
|
23 depmod -a |
22682 | 24 -mknod /dev/mga_vid c 178 0 |
25 -mknod /dev/tdfx_vid c 178 0 | |
22683
5bfd5bd0ef80
Merge Makefile from radeon/ subdirectory into this one.
diego
parents:
22682
diff
changeset
|
26 -mknod /dev/radeon_vid c 178 0 |
5bfd5bd0ef80
Merge Makefile from radeon/ subdirectory into this one.
diego
parents:
22682
diff
changeset
|
27 -ln -s /dev/radeon_vid /dev/rage128_vid |
3768
fda4c0ea039f
install: target added, based on patch by Jukka Tastula <jukka.tastula@kotinet.com>
arpi
parents:
1395
diff
changeset
|
28 |
21080 | 29 dep depend: |
1395
a721a2b91d3d
Added StrongARM crosscompiling support by Maksim Krasnyanskiy <maxk at qualcomm.com> and fixed a --datadir bug in configure.
atmos4
parents:
57
diff
changeset
|
30 |
22653
e86fb87c952c
Make strange clean/distclean rules behave in a more standard fashion.
diego
parents:
22652
diff
changeset
|
31 clean: |
22671
99db91e74443
Remove remnants of Linux 2.6 support, the mga_vid.c part was made to
diego
parents:
22670
diff
changeset
|
32 rm -f *.o *~ mga_vid_test tdfx_vid_test |
1 | 33 |
34 distclean: clean | |
12694
e2fa87f416a2
mga_vid under linux 2.6.x support written by F. O. Tempel, Ed Sweetman, Gergely Nagy among others
alex
parents:
9545
diff
changeset
|
35 |
22646 | 36 .PHONY: all install dep depend clean distclean |