sources.cmn和sources看名字就知道sources.cmn是针对整体的,sources针对个别的。
我们首先来看sources.cmn
!if 0
Copyright (c) Microsoft Corporation. All rights reserved.
!endif
!if 0
Use of this source code is subject to the terms of the Microsoft end-user
license agreement (EULA) under which you licensed this SOFTWARE PRODUCT.
If you did not accept the terms of the EULA, you are not authorized to use
this source code. For a copy of the EULA, please see the LICENSE.RTF on your
install media.
!endif
WINCEOEM=1--------------这些都是环境变量
WINCECPU=1
NOMIPS16CODE=1
RELEASETYPE=PLATFORM
_PLATCOMMONLIB=$(_PLATFORMROOT)/common/lib
_COMMONPUBROOT=$(_PUBLICROOT)/common
__PROJROOT=$(_PROJECTROOT)
_OEMINCPATH=$(_WINCEROOT)/public/common/sdk/inc;
_OEMINCPATH=$(_OEMINCPATH);$(_WINCEROOT)/public/common/oak/inc;
_OEMINCPATH=$(_OEMINCPATH);$(_WINCEROOT)/public/common/ddk/inc;
_ISVINCPATH=$(_WINCEROOT)/public/common/sdk/inc;
//---------从下面两句可以看出INCLUDES代表什么了,这个会在sources文件会用到。
INCLUDES=$(_TARGETPLATROOT)/src/inc;
INCLUDES=$(INCLUDES);$(_WINCEROOT)/public/common/oak/drivers/block/msflashfmd/inc
再来sources文件
!if 0
Copyright (c) Microsoft Corporation. All rights reserved.
!endif
!if 0
Use of this source code is subject to the terms of the Microsoft end-user
license agreement (EULA) under which you licensed this SOFTWARE PRODUCT.
If you did not accept the terms of the EULA, you are not authorized to use
this source code. For a copy of the EULA, please see the LICENSE.RTF on your
install media.
!endif
!IF 0
Module Name:
sources.
Abstract:
This file specifies the target component being built and the list of
sources files needed to build that component. Also specifies optional
compiler switches and libraries that are unique for the component being
built.
!ENDIF
TARGETNAME=smflash_lib
TARGETTYPE=LIBRARY
RELEASETYPE=PLATFORM
SYNCHRONIZE_BLOCK=1
WINCEOEM=1
WINCECPU=1
NOMIPS16CODE=1
ADEFINES=-pd "_TGTCPU SETS /"$(_TGTCPU)/"" $(ADEFINES)
LDEFINES=-subsystem:native /DEBUG /DEBUGTYPE:CV /FIXED:NO
INCLUDES=$(INCLUDES); $(_PUBLICROOT)/common/oak/drivers/block/msflashfmd/inc--使用了前面sources.cmn定义
SOURCES=fmd.cpp
ARM_SOURCES=arm/nand.s
---------------从这里可以看出,这些sources.cmn和sources都是通过环境变量来起作用的。
转载请标明wogoyixikexie@gliet桂林电子科技大学一系科协,如有错误,希望能够指出。
3358




被折叠的 条评论
为什么被折叠?



