⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile

📁 rtlinux(realtime linix)3.0,在kernel2.2.18上编译运行
💻
字号:
all: sched_toggle.o rtc_toggle.o rectangle.oMYCFLAGS = -O2 -Wallinclude ../../../rtl.mksched_toggle.o: sched_toggle.c common.h	$(CC) ${INCLUDE} ${CFLAGS} -c sched_toggle.crtc_toggle.o: rtc_toggle.c common.h	$(CC) ${INCLUDE} ${CFLAGS} -c rtc_toggle.crtc_toggle_fifo.o: rtc_toggle_fifo.c common.h	$(CC) ${INCLUDE} ${CFLAGS} -c -o rtc_toggle_fifo.o rtc_toggle_fifo.csine_wave.o: sine_wave.c common.h	$(CC) ${INCLUDE} ${CFLAGS} -c -o sine_wave.o sine_wave.c	$(LD) -r  -static -o sine_wave sine_wave.o -L/usr/lib -lm rectangle.o: rectangle.c	$(CC) ${INCLUDE} ${CFLAGS} -c -o rectangle.o  rectangle.c monitor: monitor.c	$(CC) ${INCLUDE} ${MYCFLAGS} -o monitor monitor.c#test, remove any modules, load new ones and run apptest_sched: 	@echo "Type <return> to continue"	@read junk	@make stop_test	@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 	(cd $(RTL_DIR); ./rmrtl)	@echo "Now insert the fifo and the scheduler"	@echo "Type <return> to continue"	@read junk	(cd $(RTL_DIR); ./insrtl)	@echo "Now start the real-time tasks  module"	@echo "Type <return> to continue"	@read junk	@insmod sched_toggle.otest_rectangle: 	@echo "Type <return> to continue"	@read junk	@make stop_test.o	@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 	(cd $(RTL_DIR); ./rmrtl)	@echo "Now insert the fifo and the scheduler"	@echo "Type <return> to continue"	@read junk	(cd $(RTL_DIR); ./insrtl)	@echo "Now start the real-time tasks  module"	@echo "Type <return> to continue"	@read junk	@insmod rectangle.otest_rtc: 	@make stop_test	@insmod rtc_toggle#This should be done with modeprobe to clear all rt modules# but it works this brute force way too.stop_test:	-rmmod frank_module	-rmmod rtc_toggle	-rmmod rectangle	-rmmod sched_toggle	-rmmod rt_process	-rmmod rtl_fifo	-rmmod rtl_sched	-rmmod rtl_fpschedclean:	rm -f *.oinclude $(RTL_DIR)/Rules.make

⌨️ 快捷键说明

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