#
# Makefile for the diagnostic LED module (Alpha only!)
#
# Please uncomment the appropriate KERNEL= line !
#
CC	=	gcc
CFLAGS	=	-O2 -Wall -finline-functions
#KERNEL	=	-DKERNEL20
KERNEL	=	-DKERNEL21
MFLAGS	=	$(KERNEL) -D__KERNEL__ -I/usr/src/linux/include -Wall \
		-Wstrict-prototypes -O2 -fomit-frame-pointer -pipe \
		-mno-fp-regs -ffixed-8 -DMODULE -DMODVERSIONS \
		-include /usr/src/linux/include/linux/modversions.h

all:	led knight-rider procled

led:
	$(CC) $(MFLAGS) -c led_module.c -o led.o

knight-rider: knight-rider.o
	$(CC) -o knight-rider knight-rider.o

procled: procled.o
	$(CC) -o procled procled.o -lm

device:
	mknod /dev/led c 121 0

clean:
	rm -f *.o procled knight-rider
