目标类型

Makefile 的“目标类型”节包含构建配置的调试版本或发布版本所需的宏。

例如,用于 Microsoft 环境的 C++ Makefile 的目标类型部分的缺省内容如下所示:

############# 目标类型(调试/发布)###############
#########################################################
CPPCompileDebug=$OMCPPCompileDebug
CPPCompileRelease=$OMCPPCompileRelease
LinkDebug=$OMLinkDebug
LinkRelease=$OMLinkRelease
BuildSet=$OMBuildSet
SUBSYSTEM=$OMSubSystem
COM=$OMCOM
RPFrameWorkDll=$OMRPFrameWorkDll

ConfigurationCPPCompileSwitches=
   $OMReusableStatechartSwitches 
   $OMConfigurationCPPCompile Switches
!IF "$(RPFrameWorkDll)" == "True"
ConfigurationCPPCompileSwitches=
   $(ConfigurationCPPCompileSwitches) /D "FRAMEWORK_DLL"
!ENDIF 
!IF "$(COM)" == "True"
SUBSYSTEM=/SUBSYSTEM:windows
!ENDIF

反馈