all: mimodulo.o rtejemplo.o

# you might have to change this

# the path to the rt-linux kernel 
RTLINUX = ../linux

CFLAGS = -O2 -Wall

all: rtejemplo.o mimodulo.o simpletarea.o

rtejemplo.o: rtejemplo.c
	gcc -I${RTLINUX}/include ${CFLAGS} -D__KERNEL__ -D__RT__  -c rtejemplo.c

mimodulo.o: mimodulo.c
	gcc -I${RTLINUX}/include ${CFLAGS} -D__KERNEL__ -D__RT__  -c mimodulo.c

simpletarea.o: simpletarea.c
	gcc -I${RTLINUX}/include ${CFLAGS} -D__KERNEL__ -D__RT__ -c simpletarea.c

clean:
	rm -f rtejemplo.o
	rm -f mimodulo.o
	rm -f simpletarea.o
