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 (37 lines) | stat: -rw-r--r-- 923 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
all: sound.o
# testresched.o sendresched.o
# all: rt_process.o rt_irq.o rt_irq_gen.o nonrt_irq.o monitor

MYCFLAGS = -O2 -Wall
include ../../../rtl.mk

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

#test, remove any modules, load new ones and run app
test: 
	@echo "Sound test"
	@echo "Type <return> to continue"
	@read junk
	@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 frank_module 
	-rmmod rt_process 
	(cd $(RTL_DIR); scripts/rmrtl)
	@echo "Now insert the fifo and the scheduler"
	@echo "Type <return> to continue"
	@read junk
	(cd $(RTL_DIR); scripts/insrtl)
	@echo "Now start the real-time tasks  module"
	@echo "Type <return> to continue"
	@read junk
	@insmod sound.o
	@echo "Now starting the application"
	@cat linux.au >/dev/rtf0

clean:
	rm -f *.o

include $(RTL_DIR)/Rules.make