annotate drivers/radeon/Makefile @ 2750:9ef09e232505

gcc does optimize writes to non volatile variables away if it didnt know that they were read in between
author michael
date Tue, 06 Nov 2001 19:26:22 +0000
parents d323a65c8f6b
children f46c5556f1e6
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)
3733b1430c60 building improvements
nick
parents:
diff changeset
3
3733b1430c60 building improvements
nick
parents:
diff changeset
4 #
3733b1430c60 building improvements
nick
parents:
diff changeset
5 # standard CFLAGS
3733b1430c60 building improvements
nick
parents:
diff changeset
6 #
3733b1430c60 building improvements
nick
parents:
diff changeset
7
3733b1430c60 building improvements
nick
parents:
diff changeset
8 CPPFLAGS := -D__KERNEL__ -I$(KERNEL_INCLUDES)
3733b1430c60 building improvements
nick
parents:
diff changeset
9
3733b1430c60 building improvements
nick
parents:
diff changeset
10 CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes -Wno-trigraphs -O2 \
3733b1430c60 building improvements
nick
parents:
diff changeset
11 -fomit-frame-pointer -fno-strict-aliasing -fno-common\
3733b1430c60 building improvements
nick
parents:
diff changeset
12 -D__KERNEL__ -DMODULE -include $(KERNEL_INCLUDES)/linux/modversions.h
3733b1430c60 building improvements
nick
parents:
diff changeset
13 AFLAGS := -D__ASSEMBLY__ $(CPPFLAGS)
3733b1430c60 building improvements
nick
parents:
diff changeset
14
3733b1430c60 building improvements
nick
parents:
diff changeset
15
3733b1430c60 building improvements
nick
parents:
diff changeset
16 all: radeonfb.o
3733b1430c60 building improvements
nick
parents:
diff changeset
17
3733b1430c60 building improvements
nick
parents:
diff changeset
18 radeonfb.o: radeonfb.c radeon.h
3733b1430c60 building improvements
nick
parents:
diff changeset
19 $(CC) $(CFLAGS) $(INCLUDES) -c $(basename $@).c
3733b1430c60 building improvements
nick
parents:
diff changeset
20
3733b1430c60 building improvements
nick
parents:
diff changeset
21 dep:
3733b1430c60 building improvements
nick
parents:
diff changeset
22
3733b1430c60 building improvements
nick
parents:
diff changeset
23 clean:
3733b1430c60 building improvements
nick
parents:
diff changeset
24 rm -f *.o *~
3733b1430c60 building improvements
nick
parents:
diff changeset
25
3733b1430c60 building improvements
nick
parents:
diff changeset
26 install:
3733b1430c60 building improvements
nick
parents:
diff changeset
27 @echo Please copy *.o files to '/lib/modules/LINUX_VER/kernel/drivers/video' folder
3733b1430c60 building improvements
nick
parents:
diff changeset
28