📄 makefile.mipspro
字号:
############################################################################## Software Testing Automation Framework (STAF) ## (C) Copyright IBM Corp. 2001 ## ## This software is licensed under the Common Public License (CPL) V1.0. ######################################################################################################## Setup C/C++ variables ##########################CC_CC := CC -n32CC_C := CC -n32CC_MK_SHARED_LIB := CC -n32 -sharedifeq ($(BUILD_TYPE),retail) CC_BUILD_TYPE_FLAGS = $(CC_OPTIMIZE)else CC_BUILD_TYPE_FLAGS = $(CC_DEBUG)endifCC_DEBUG := -gCC_OPTIMIZE := -O1 -OPT:Olimit=0CC_FPIC := -KPICCC_SHAREDLIBNAMEFLAGS = -DSTAF_SHARED_LIB_PREFIX=$(OS_SHARED_LIB_PREFIX) \ -DSTAF_SHARED_LIB_SUFFIX=$(OS_SHARED_LIB_SUFFIX)CC_STD_SUPPORT := -DSTAF_Config_NoSTDIOStreamSupport \ -DSTAF_Config_NoSTDFStreamSupportCC_STL_PTHREAD_SUPPORT := -D_PTHREADS# Note: Message 1460 is a warning about declaring something inline after using# it. I don't know why this pops up, but it is all over the place, so# it is suppressed. Message 1552 is a warning that a variable was set# but never used. In all the cases I looked at, this appeared to be a# bug with the compiler, because the variable was used, so I suppressed# this warning as well. Message 1376 is a warning about no accessible# constructors. This is a mildly common idiom in STAF, along with# a couple of static-only classes, so I suppressed this as well.CC_SUPPRESSMESSAGES := -diag_suppress 1460,1552,1376CC_COMMONFLAGS = $(OS_COMMONFLAGS) $(COMMONFLAGS) $(CC_BUILD_TYPE_FLAGS) \ $(CC_STD_SUPPORT) $(CC_ARCHITECTURE) $(CC_FPIC) \ $(CC_SHAREDLIBNAMEFLAGS) $(CC_SUPPRESSMESSAGES) \ $(CC_STL_PTHREAD_SUPPORT) -DSTAF_NATIVE_COMPILERCC_CFLAGS = $(CC_COMMONFLAGS) $(CFLAGS)CC_LINKFLAGS = $(CC_COMMONFLAGS) $(LINKFLAGS) -Wl,-Bsymbolic########################################### Set commands needed by master makefile ############################################ Note: CC_LINK_IT and CC_SHARED_LIB_IT have the libraries after the obj's# due to a peculiar lookup algorithm used by the MIPSPro compiler. If# the libraries are before the obj's, none of the library routines are# found.define CC_DEPEND_IT $(CC_CC) -M $(CC_CFLAGS) $(ALL_INCLUDEDIR_LIST) $< | \ sed -e 's@\(.*\)\.o:@$(@D)/\1.o $(@D)/\1.d:@' >$@endefdefine CC_DEPEND_IT_C $(CC_C) -M $(CC_CFLAGS) $(ALL_INCLUDEDIR_LIST) $< | \ sed -e 's@\(.*\)\.o:@$(@D)/\1.o $(@D)/\1.d:@' >$@endefCC_COMPILE_IT = $(CC_CC) -c -o $@ $(CC_CFLAGS) $(ALL_INCLUDEDIR_LIST) $<CC_COMPILE_IT_C = $(CC_C) -c -o $@ $(CC_CFLAGS) $(ALL_INCLUDEDIR_LIST) $<CC_LINK_IT = $(CC_CC) -o $@ $(CC_LINKFLAGS) $(ALL_INCLUDEDIR_LIST)\ $(ALL_LIBDIR_LIST) $(OBJS) $(ALL_LIB_LIST)CC_SHARED_LIB_IT = $(CC_MK_SHARED_LIB) -o $@ $(CC_LINKFLAGS) $(ALL_LIBDIR_LIST)\ $(OBJS) $(ALL_LIB_LIST)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -