annotate drivers/radeon/Makefile @ 3244:6f6c1bd1a682

Auto-install stuff
author nick
date Sat, 01 Dec 2001 15:22:10 +0000
parents 3c5ad8d5ac00
children f03adf755028
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
3733b1430c60 building improvements
nick
parents:
diff changeset
15 CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes -Wno-trigraphs -O2 \
3733b1430c60 building improvements
nick
parents:
diff changeset
16 -fomit-frame-pointer -fno-strict-aliasing -fno-common\
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
6f6c1bd1a682 Auto-install stuff
nick
parents: 3164
diff changeset
41 mknod /dev/radeon_vid c 178 0
6f6c1bd1a682 Auto-install stuff
nick
parents: 3164
diff changeset
42 mknod /dev/rage128_vid c 178 0
1921
3733b1430c60 building improvements
nick
parents:
diff changeset
43