comparison drivers/radeon/Makefile @ 1921:3733b1430c60

building improvements
author nick
date Wed, 19 Sep 2001 16:52:13 +0000
parents
children d323a65c8f6b
comparison
equal deleted inserted replaced
1920:99ae4b6d4c9b 1921:3733b1430c60
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 distclean: clean
27 rm -f mga_vid_test
28
29 install:
30 @echo Please copy *.o files to '/lib/modules/LINUX_VER/kernel/drivers/video' folder
31