?? makefile
字號:
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
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -