1921
|
1 KERNEL_INCLUDES = /usr/src/linux/include
|
|
2 INCLUDES = -I$(KERNEL_INCLUDES)
|
|
3
|
|
4 #
|
|
5 # standard CFLAGS
|
|
6 #
|
|
7
|
|
8 CPPFLAGS := -D__KERNEL__ -I$(KERNEL_INCLUDES)
|
|
9
|
|
10 CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes -Wno-trigraphs -O2 \
|
|
11 -fomit-frame-pointer -fno-strict-aliasing -fno-common\
|
|
12 -D__KERNEL__ -DMODULE -include $(KERNEL_INCLUDES)/linux/modversions.h
|
|
13 AFLAGS := -D__ASSEMBLY__ $(CPPFLAGS)
|
|
14
|
|
15
|
3164
|
16 all: radeonfb.o radeon_vid.o rage128_vid.o
|
1921
|
17
|
|
18 radeonfb.o: radeonfb.c radeon.h
|
|
19 $(CC) $(CFLAGS) $(INCLUDES) -c $(basename $@).c
|
2870
|
20 radeon_vid.o: radeon_vid.c radeon.h radeon_vid.h
|
|
21 $(CC) $(CFLAGS) $(INCLUDES) -c $(basename $@).c
|
3164
|
22 rage128_vid.o: radeon_vid.c radeon.h radeon_vid.h
|
|
23 $(CC) $(CFLAGS) -DRAGE128 $(INCLUDES) -c radeon_vid.c -o $@
|
1921
|
24
|
|
25 dep:
|
|
26
|
|
27 clean:
|
|
28 rm -f *.o *~
|
|
29
|
|
30 install:
|
|
31 @echo Please copy *.o files to '/lib/modules/LINUX_VER/kernel/drivers/video' folder
|
|
32
|