File: Makefile

package info (click to toggle)
rtlinux 3.1pre3-2
  • links: PTS
  • area: non-free
  • in suites: sarge, woody
  • size: 4,892 kB
  • ctags: 4,228
  • sloc: ansic: 26,204; sh: 2,069; makefile: 1,414; perl: 855; tcl: 489; asm: 380; cpp: 42
file content (62 lines) | stat: -rw-r--r-- 1,321 bytes parent folder | download | duplicates (2)
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
53
54
55
56
57
58
59
60
61
62
ALL = monitor periodic_test.o oneshot_test.o bulk_module.o bulk_app

ifdef CONFIG_PSC
ALL += psc_periodic
endif

all : $(ALL)

ifneq ($(wildcard ../rtl.mk),)
include ../rtl.mk
endif

clean: dummy
	rm -f *.o monitor gnuplot.out modules.dep bulk_app

psc_periodic: psc_periodic.c
	gcc -g -o psc_periodic psc_periodic.c -I../include/ -lrtlinux -L../psc

periodic_test: monitor periodic_test.o
	depmod *.o ../modules/*.o > modules.dep
	-rmmod rtl_sched
	insmod periodic_test.o
	./monitor
	rmmod periodic_test

periodic_view: gnuplot.out
	gnuplot < periodic.plot

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

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

oneshot_test: monitor oneshot_test.o
	depmod *.o ../modules/*.o > modules.dep
	-rmmod rtl_sched
	insmod oneshot_test.o
	./monitor
	rmmod oneshot_test

oneshot_view: gnuplot.out
	gnuplot < oneshot.plot

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

bulk_test: bulk_module.o bulk_app
	depmod *.o ../modules/*.o > modules.dep
	insmod bulk_module.o
	./bulk_app
	rmmod bulk_module

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

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

.PHONY: dummy

include $(RTL_DIR)/Rules.make