all: rt_process.o trigmod.o fptest trigapp


MYCFLAGS = -O2 -Wall
include rtl.mk


rt_process.o: rt_process.c
	$(CC) ${INCLUDE} ${CFLAGS} -c -o rt_process_tmp.o rt_process.c
	ld -r -static rt_process_tmp.o -o rt_process.o -L/usr/lib -lm 
	rm -f rt_process_tmp.o

fptest: fptest.c
	$(CC) ${INCLUDE} -O2 -Wall -o fptest fptest.c -lm 

test: fp_tasks.o fptest
	insmod fp_tasks.o
	./fptest


trigmod.o: trigmod.c
	$(CC) ${INCLUDE} ${CFLAGS} -c trigmod.c -o trigmod_tmp.o
	ld -r -static trigmod_tmp.o -o trigmod.o -L/usr/lib -lm 

trigapp: trigapp.c
	$(CC) ${INCLUDE} -o trigapp trigapp.c 


clean:
	rm -f *.o trigapp fptest sin.data cos.data
