makefile_realtime

来自「电路仿真程序 Classic Ladder is coded 100% in C」· 代码 · 共 43 行

TXT
43
字号
MODULE_FOR_RTL = module_rtlinux.o classicladder.o calc.o vars_access.o arithm_eval.o hardware.o# Following not taken into account.... :-(CFLAGS += -DRTLINUX_SUPPORTall: $(MODULE_FOR_RTL)	$(LD) -r -o classicladder_rtl_module.o $(MODULE_FOR_RTL)include /usr/rtlinux/rtl.mktest: all	@echo "#################################################"	@echo "# ClassicLadder -realtime- with RTLinux support #"	@echo "#################################################"	@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 mbuff	-rmmod classicladder_rtl_module.o	(cd /usr/rtlinux/; scripts/rmrtl)	@echo "Now insert the fifo and scheduler"	@echo "Type <return> to continue"	@read junk	(cd /usr/rtlinux/; scripts/insrtl)	@echo "Now start the real-time task module (calc of the rungs)"	@echo "Type <return> to continue"	@read junk	@sync	@sync	@insmod /usr/rtlinux/modules/mbuff.o	@insmod classicladder_rtl_module.o	@echo "Now start the GTK application (not real-time)"	./classicladder_rtl_support	@echo "Now let's remove the real-time module"	@rmmod classicladder_rtl_module	@rmmod mbuff#include $(RTL_DIR)/Rules.make

⌨️ 快捷键说明

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