makefile

来自「最新rtlinux内核源码」· 代码 · 共 60 行

TXT
60
字号
all: semaphores.o semaphores_timed.oinclude ../../../rtl.mkhelp:	@echo "/********************************************************************/"	@echo "/********************************************************************/"	@echo "/* In this program, various threads wait on a semaphore. While they */"	@echo "/* are blocked another thread sends a signal to half of the         */"	@echo "/* semaphore-blocked threads. These threads are interrupted and get */"	@echo "/* out of the semaphore. The other threads remain blocked.          */"	@echo "/*  Note: There is also a test version for timed semaphores in the  */" 	@echo "/* file semaphores_timed.c  It can be started using:                */" 	@echo "/* make test_timed                                                  */" 	@echo "/********************************************************************/"	@echo "/********************************************************************/"clean:	rm -f *.orestart:	@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	(cd ../../../; scripts/rmrtl)	@echo "Now insert the fifo and scheduler"	@echo "Type <return> to continue"	@read junk	(cd ../../../; scripts/insrtl)test: all help restart	@echo "Now start the real-time tasks  module"	@echo "Type <return> to continue"	@read junk	@tail -f /var/log/messages -n 0 &	@insmod semaphores.o	@sleep 3	@echo "Now let's stop the application"	@echo "Type <return> to finish"	@read junk	@rmmod semaphores	@kill `pidof -s tail`test_timed: all help restart	@echo "Now start the real-time tasks  module"	@echo "Type <return> to continue"	@read junk	@tail -f /var/log/messages -n 0 &	@insmod semaphores_timed.o	@sleep 3	@echo "Now let's stop the application"	@echo "Type <return> to finish"	@read junk	@rmmod semaphores_timed	@kill `pidof -s tail`include ../../../Rules.make

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?