all: rt_process.o

# you might have to change this

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


CFLAGS = -O2 -Wall

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

rt_process.o: rt_process_tmp.o
	ld -r  -static -o rt_process.o rt_process_tmp.o -L/usr/lib -lm 



clean:
	rm -f rt_process.o rt_process_tmp.o
