File: Makefile

package info (click to toggle)
rtlinux 2.0rel-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 2,068 kB
  • ctags: 1,178
  • sloc: ansic: 7,169; makefile: 779; sh: 89
file content (52 lines) | stat: -rw-r--r-- 1,386 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
all: rt_process.o monitor histplot
# testresched.o sendresched.o
# all: rt_process.o rt_irq.o rt_irq_gen.o nonrt_irq.o monitor

include rtl.mk

histplot: histplot.c
	$(CC) -o histplot histplot.c

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

# rt_process.o: rt_process.c common.h
# 	$(CC) ${INCLUDE} ${CFLAGS} rt_process.c


#test, remove any modules, load new ones and run app
test: all
	@echo "This tests scheduling accuracy"
	@echo "by running a single periodic task using the one"
	@echo "shot schedular and testing checking times when it is called"
	@echo "First we remove any existing rtl-modules"
	@echo "You may see error warnings from \"make\" - ignore them"
	@echo "Type <return> to continue"
	@read junk
	-rmmod hello
	-rmmod sound
	-rmmod rt_process
	-rmmod frank_module
	(cd ../../; ./rmrtl)
	@echo "Now insert the fifo and scheduler"
	@echo "Type <return> to continue"
	@read junk
	(cd ../../; ./insrtl)
	@echo "Now start the real-time tasks  module"
	@echo "Type <return> to continue"
	@read junk
	@insmod rt_process.o
	@echo "Now starting the application"
	@echo "The \"min\" is the smallest timing error"
	@echo "A negative value means that the task ran too early"
	@echo "The \"max\" is the largest timing error"
	@./monitor

stop_test:
	-rmmod rt_process
	-rmmod rtl_fifo
	-rmmod rtl_sched
	-rmmod rtl_time

clean:
	rm -f *.o monitor  histplot