makefile

来自「SystemC Transaction Level Modelling. 是基于」· 代码 · 共 49 行

TXT
49
字号
!include <..\..\..\build-msvc/Makefile.config>OBJ_NAME = simple_AT_TAMY_INCLUDES = /I..\..\..\common\include\models              SRCDIR = ..\srcSRCCOMMONDIR = ..\..\common\srcCFLAGS = $(MY_INCLUDES) $(FLAGS)OBJS   = $(OBJ_NAME).obj#.PHONY: clean all run check announceall: announce $(OBJ_NAME).exeannounce:	@if  not defined $(FLAG_BATCH) echo. , echo $(OBJ_NAME):  		# Notes: # 1. two lines starting @type filter out lines containing#    "stopped by user" so that differences in messages between SystemC 2.2.0#    and SystemC 2.2.1 are not significant. # 2. The full path to find is used as some users may have cygwin installed,#    which includes another version of find# 3. find /v returns all lines that don't match. fc /w ignores (collapses)#    white spacecheck: announce $(OBJ_NAME).exe	@.\$(OBJ_NAME).exe > runtemp.log	@type runtemp.log | $(WINDIR)\system32\find /v /i "stopped by user" >run.log	@type ..\results\expected.log | $(WINDIR)\system32\find /v /i "stopped by user" >expected.log	@(fc /w run.log expected.log > diff.log) & if ERRORLEVEL 1  (echo "***ERROR:" & type diff.log) else (echo OK) run: announce $(OBJ_NAME).exe	@.\$(OBJ_NAME).exe$(OBJ_NAME).exe: $(OBJS)	$(LD) /OUT:"$@" $(LDFLAGS) $(OBJS)$(OBJ_NAME).obj: $(SRCDIR)\$(OBJ_NAME).cpp	$(CC) /c $(CFLAGS) %sclean:	del $(OBJ_NAME).exe *.obj *.log *.idb *.pdb *ilk

⌨️ 快捷键说明

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