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

📄 makefile.vc

📁 此源码为UCOS在WIN32环境下的移植版本
💻 VC
字号:
########## 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.c

all:	$(EXAMPLE) app_cfg.h  os_cfg.h  includes.h  $(UCOS_PORT_LIB)\ucos_ii.lib  makefile.vc
	@echo --- Recompiling the application ---
	@cl -nologo /MD /W3 /D__WIN32__ /I$(UCOS_SRC) /I$(UCOS_PORT_SRC) /I$(UCOS_PORT_EX) $(EXAMPLE) $(UCOS_PORT_LIB)\ucos_ii.lib winmm.lib user32.lib

$(UCOS_PORT_LIB)\ucos_ii.lib:	os_cfg.h
	@echo --- Recompiling ucos_ii.lib ---
	@cl -nologo /c /MD /W3 /D__WIN32__ /I$(UCOS_SRC) /I$(UCOS_PORT_SRC) /I$(UCOS_PORT_EX) $(UCOS_SRC)\ucos_ii.c  $(UCOS_PORT_SRC)\os_cpu_c.c $(UCOS_PORT_SRC)\pc.c
	@lib /OUT:$(UCOS_PORT_LIB)\ucos_ii.lib ucos_ii.obj os_cpu_c.obj pc.obj 

clean:
	@if exist *.obj del *.obj
	@if exist *.bak del *.bak
	@if exist *.pdb del *.pdb
	@if exist *.ilk del *.ilk
	@if exist *.log del *.log	
	@if exist li*.  del li*.
	

⌨️ 快捷键说明

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