view drivers/radeon/Makefile @ 2946:325bd0b35bb0

add some files
author atmos4
date Sat, 17 Nov 2001 10:25:48 +0000
parents f46c5556f1e6
children 3c5ad8d5ac00
line wrap: on
line source

KERNEL_INCLUDES = /usr/src/linux/include
INCLUDES = -I$(KERNEL_INCLUDES)

#
# standard CFLAGS
#

CPPFLAGS := -D__KERNEL__ -I$(KERNEL_INCLUDES)

CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes -Wno-trigraphs -O2 \
	-fomit-frame-pointer -fno-strict-aliasing -fno-common\
	-D__KERNEL__  -DMODULE  -include $(KERNEL_INCLUDES)/linux/modversions.h
AFLAGS := -D__ASSEMBLY__ $(CPPFLAGS)


all: radeonfb.o radeon_vid.o

radeonfb.o: radeonfb.c radeon.h
	$(CC) $(CFLAGS) $(INCLUDES) -c $(basename $@).c
radeon_vid.o: radeon_vid.c radeon.h radeon_vid.h
	$(CC) $(CFLAGS) $(INCLUDES) -c $(basename $@).c

dep:

clean: 
	rm -f *.o *~

install:
	@echo Please copy *.o files to '/lib/modules/LINUX_VER/kernel/drivers/video' folder