annotate drivers/radeon/Makefile @ 12281:e6f6dac5d77b

needed for a/v sync with compressed audio (e.g. raw .mp2 or .ac3 file)
author rfelker
date Mon, 26 Apr 2004 03:11:08 +0000
parents b69ddd4d3bb9
children ce1ba8fd57e7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1921
3733b1430c60 building improvements
nick
parents:
diff changeset
1 KERNEL_INCLUDES = /usr/src/linux/include
3733b1430c60 building improvements
nick
parents:
diff changeset
2 INCLUDES = -I$(KERNEL_INCLUDES)
3244
6f6c1bd1a682 Auto-install stuff
nick
parents: 3164
diff changeset
3 # auto install
6f6c1bd1a682 Auto-install stuff
nick
parents: 3164
diff changeset
4 CONFIG_SHELL=/bin/sh -c
6f6c1bd1a682 Auto-install stuff
nick
parents: 3164
diff changeset
5 KERNEL_VERSION=$(shell $(CONFIG_SHELL) 'uname -r')
6f6c1bd1a682 Auto-install stuff
nick
parents: 3164
diff changeset
6 MOD_PATH_PREFIX=
6f6c1bd1a682 Auto-install stuff
nick
parents: 3164
diff changeset
7 MOD_PATH=$(MOD_PATH_PREFIX)/lib/modules/$(KERNEL_VERSION)/kernel/drivers/video/
1921
3733b1430c60 building improvements
nick
parents:
diff changeset
8
3733b1430c60 building improvements
nick
parents:
diff changeset
9 #
3733b1430c60 building improvements
nick
parents:
diff changeset
10 # standard CFLAGS
3733b1430c60 building improvements
nick
parents:
diff changeset
11 #
3733b1430c60 building improvements
nick
parents:
diff changeset
12
3733b1430c60 building improvements
nick
parents:
diff changeset
13 CPPFLAGS := -D__KERNEL__ -I$(KERNEL_INCLUDES)
3733b1430c60 building improvements
nick
parents:
diff changeset
14
7073
b69ddd4d3bb9 removed -W -Wall -g and other gcc-specific warning/debug options
arpi
parents: 3940
diff changeset
15 CFLAGS := $(CPPFLAGS) -O2 \
3940
db3a8c95bcf7 Added support of Radeon2 8500 AIW
nick
parents: 3266
diff changeset
16 -fomit-frame-pointer -fno-strict-aliasing -fno-common -ffast-math\
1921
3733b1430c60 building improvements
nick
parents:
diff changeset
17 -D__KERNEL__ -DMODULE -include $(KERNEL_INCLUDES)/linux/modversions.h
3733b1430c60 building improvements
nick
parents:
diff changeset
18 AFLAGS := -D__ASSEMBLY__ $(CPPFLAGS)
3733b1430c60 building improvements
nick
parents:
diff changeset
19
3733b1430c60 building improvements
nick
parents:
diff changeset
20
3164
3c5ad8d5ac00 radeon_vid new features:
nick
parents: 2870
diff changeset
21 all: radeonfb.o radeon_vid.o rage128_vid.o
1921
3733b1430c60 building improvements
nick
parents:
diff changeset
22
3733b1430c60 building improvements
nick
parents:
diff changeset
23 radeonfb.o: radeonfb.c radeon.h
3733b1430c60 building improvements
nick
parents:
diff changeset
24 $(CC) $(CFLAGS) $(INCLUDES) -c $(basename $@).c
2870
f46c5556f1e6 radeon_vid: it's in first pre-alpha stage
nick
parents: 2004
diff changeset
25 radeon_vid.o: radeon_vid.c radeon.h radeon_vid.h
f46c5556f1e6 radeon_vid: it's in first pre-alpha stage
nick
parents: 2004
diff changeset
26 $(CC) $(CFLAGS) $(INCLUDES) -c $(basename $@).c
3164
3c5ad8d5ac00 radeon_vid new features:
nick
parents: 2870
diff changeset
27 rage128_vid.o: radeon_vid.c radeon.h radeon_vid.h
3c5ad8d5ac00 radeon_vid new features:
nick
parents: 2870
diff changeset
28 $(CC) $(CFLAGS) -DRAGE128 $(INCLUDES) -c radeon_vid.c -o $@
1921
3733b1430c60 building improvements
nick
parents:
diff changeset
29
3733b1430c60 building improvements
nick
parents:
diff changeset
30 dep:
3733b1430c60 building improvements
nick
parents:
diff changeset
31
3733b1430c60 building improvements
nick
parents:
diff changeset
32 clean:
3733b1430c60 building improvements
nick
parents:
diff changeset
33 rm -f *.o *~
3733b1430c60 building improvements
nick
parents:
diff changeset
34
3733b1430c60 building improvements
nick
parents:
diff changeset
35 install:
3244
6f6c1bd1a682 Auto-install stuff
nick
parents: 3164
diff changeset
36 mkdir -p $(MOD_PATH)
6f6c1bd1a682 Auto-install stuff
nick
parents: 3164
diff changeset
37 cp radeonfb.o $(MOD_PATH)
6f6c1bd1a682 Auto-install stuff
nick
parents: 3164
diff changeset
38 cp radeon_vid.o $(MOD_PATH)
6f6c1bd1a682 Auto-install stuff
nick
parents: 3164
diff changeset
39 cp rage128_vid.o $(MOD_PATH)
6f6c1bd1a682 Auto-install stuff
nick
parents: 3164
diff changeset
40 depmod -a
3246
f03adf755028 Improving auto-install
nick
parents: 3244
diff changeset
41 nodes:
3244
6f6c1bd1a682 Auto-install stuff
nick
parents: 3164
diff changeset
42 mknod /dev/radeon_vid c 178 0
3253
48899ffdc4de Minor improvements
nick
parents: 3246
diff changeset
43 ln -s /dev/radeon_vid /dev/rage128_vid
3246
f03adf755028 Improving auto-install
nick
parents: 3244
diff changeset
44 # Stuff below is for me only ;)
f03adf755028 Improving auto-install
nick
parents: 3244
diff changeset
45 vid:
f03adf755028 Improving auto-install
nick
parents: 3244
diff changeset
46 make install
f03adf755028 Improving auto-install
nick
parents: 3244
diff changeset
47 rmmod radeon_vid
3266
ff90589b635f Fixed single buffering problems and -vo mga compatibility by number of buffers
nick
parents: 3253
diff changeset
48 modprobe radeon_vid mtrr=1