INCLUDEDIR = /usr/include
CC = gcc

CFLAGS = -D__SMP__ -D__KERNEL__ -I$(INCLUDEDIR) -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=686 -DMODULE 

VER = $(shell awk -F\" '/REL/ {print $$2}' $(INCLUDEDIR)/linux/version.h)

OBJS = hello.o

all:	$(OBJS)
	
install:	
		install -d /lib/modules/$(VER)/misc
		install -c hello.o /lib/modules/$(VER)/misc

clean:	
	rm -f *.o *~ core *.bak
