📄 makefile.lin
字号:
########## The following definition must be set for uCOS >= V2.8x ##############CFLAGS=-DNO_TYPEDEF_OS_FLAGS########## Path for uCOS-II core source files #################################UCOS_SRC=../../../../../source########## Path for uCOS-II WIN32 port source files ###########################UCOS_PORT_SRC=../src########## Path for uCOS-II WIN32 example source files ########################UCOS_PORT_EX=./########## Path for uCOS-II WIN32 port library file# ##########################UCOS_PORT_LIB=$(UCOS_PORT_EX)########## Name of Example source file ########################################EXAMPLE=test########## Name of Example source file ########################################EXAMPLE=testall: $(EXAMPLE).c app_cfg.h os_cfg.h includes.h $(UCOS_PORT_LIB)/ucos_ii.a makefile.lin @echo --- Recompiling the application --- @gcc -D__LINUX__ $(CFLAGS) -I$(UCOS_SRC) -I$(UCOS_PORT_SRC) -I$(UCOS_PORT_EX) $(EXAMPLE).c $(UCOS_PORT_LIB)/ucos_ii.a -lm -o $(EXAMPLE)$(UCOS_PORT_LIB)/ucos_ii.a: os_cfg.h @echo --- Recompiling library ucos_ii.a --- @gcc -c -D__LINUX__ $(CFLAGS) -I$(UCOS_SRC) -I$(UCOS_PORT_SRC) -I$(UCOS_PORT_EX) $(UCOS_SRC)/ucos_ii.c $(UCOS_PORT_SRC)/pc.c $(UCOS_PORT_SRC)/os_cpu_c.c @ar -r $(UCOS_PORT_LIB)/ucos_ii.a ucos_ii.o os_cpu_c.o pc.o clean: @rm -f *.o @rm -f *.bak @rm -f *~
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -