# Makefile for a basic kernel module

CC=gcc

# RANDY:  There is an error on the next line
MODCFLAGS := -Wall -DMODULE -D__KERNEL__ -DLINUX -I/usr/src/linux/include

hello.o:        hello.c /usr/include/linux/version.h
		$(CC) $(MODCFLAGS) -c hello.c
		echo insmod hello.o to turn it on
		echo rmmod hello to turn if off
		echo
		echo X and kernel programming do not mix.
		echo Do the insmod and rmmod from outside X.
