view drivers/radeon/Makefile @ 13395:07708ec98d87

New MD5 sum video output driver. For every frame, it calculates the MD5 sum and writes a list of those sums to an, optionally specified, output file. It does not rely on external programs to be installed. The MD5 sum code is borrowed from the uCIFS library, written by Christopher R. Hertel in 2004 and released under the LGPL license. Note: This driver is not yet activated and will not be compiled and linked to libvo. A separate patch will take care of that. This is just for adding the files to the repository.
author ivo
date Mon, 20 Sep 2004 01:01:08 +0000
parents b69ddd4d3bb9
children ce1ba8fd57e7
line wrap: on
line source

KERNEL_INCLUDES = /usr/src/linux/include
INCLUDES = -I$(KERNEL_INCLUDES)
# auto install
CONFIG_SHELL=/bin/sh -c
KERNEL_VERSION=$(shell $(CONFIG_SHELL) 'uname -r')
MOD_PATH_PREFIX=
MOD_PATH=$(MOD_PATH_PREFIX)/lib/modules/$(KERNEL_VERSION)/kernel/drivers/video/

#
# standard CFLAGS
#

CPPFLAGS := -D__KERNEL__ -I$(KERNEL_INCLUDES)

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


all: radeonfb.o radeon_vid.o rage128_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
rage128_vid.o: radeon_vid.c radeon.h radeon_vid.h
	$(CC) $(CFLAGS) -DRAGE128 $(INCLUDES) -c radeon_vid.c -o $@

dep:

clean: 
	rm -f *.o *~

install:
	mkdir -p $(MOD_PATH)
	cp radeonfb.o $(MOD_PATH)
	cp radeon_vid.o $(MOD_PATH)
	cp rage128_vid.o $(MOD_PATH)
	depmod -a
nodes:
	mknod /dev/radeon_vid c 178 0
	ln -s /dev/radeon_vid /dev/rage128_vid
# Stuff below is for me only ;)
vid:
	make install
	rmmod radeon_vid
	modprobe radeon_vid mtrr=1