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
|
|
16 all: radeonfb.o
|
|
17
|
|
18 radeonfb.o: radeonfb.c radeon.h
|
|
19 $(CC) $(CFLAGS) $(INCLUDES) -c $(basename $@).c
|
|
20
|
|
21 dep:
|
|
22
|
|
23 clean:
|
|
24 rm -f *.o *~
|
|
25
|
|
26 install:
|
|
27 @echo Please copy *.o files to '/lib/modules/LINUX_VER/kernel/drivers/video' folder
|
|
28
|