3 # the sequence of parameter should be pay attension, or it will report error.
4 # eg: -lncurses paramter must be put after .o file, or it will report error.
7 # this file is a general compiler parameter defination.
12 \${${SRC_LANG}FLAGS_DEF_LIST_Y} \${FLAGS_DEF_LIST_Y}
13 \${${SRC_LANG}FLAGS_INCPATH_LIST_Y} \${FLAGS_INCPATH_LIST_Y}
14 \${${SRC_LANG}FLAGS_DBGINFO} \${FLAGS_DBGINFO}
15 \${${SRC_LANG}FLAGS_OPTMIZE} \${FLAGS_OPTMIZE}
16 \${${SRC_LANG}FLAGS_ARCH} \${FLAGS_ARCH}
17 \${${SRC_LANG}FLAGS_PIC} \${FLAGS_PIC}
18 \${${SRC_LANG}FLAGS_GCOV} \${FLAGS_GCOV}
19 \${${SRC_LANG}FLAGS_MISC} \${FLAGS_MISC}'
22 ${LDFLAGS_LIBPATH_LIST_Y}
23 ${LDFLAGS_DBG} ${FLAGS_DBG}
25 ${LDFLAGS_PIC} ${FLAGS_PIC}
29 ${LDFLAGS_GLOBAL_LIBS_Y}'
33 CMPL_O_OPT_FMT='-o ${DST_FILE}'
34 CMPL_I_OPT_FMT='$(envar SRC_FILE[@])'
42 # ${ASFLAGS_OUT} ${ASFLAGS_EXT}
43 ASM2O_CMD_FMT='${CC} ${ASFLAGS_OUT} ${ASFLAGS_EXT} ${CFLAGS} -c $(envar SRC_FILE[@]) -o ${DST_FILE}'
45 C2O_CMD_FMT='${CC} ${CFLAGS_OUT} ${CFLAGS_EXT} ${CFLAGS} ${CFLAGS_DEPHDR_Y} ${CFLAGS_CALLGRAPH_Y} -c $(envar SRC_FILE[@]) -o $(getenv DST_FILE[1])'
46 CXX2O_CMD_FMT='${CXX} ${CXXFLAGS_OUT} ${CXXFLAGS_EXT} ${CXXFLAGS} ${CFLAGS_DEPHDR_Y} ${CFLAGS_CALLGRAPH_Y} -c $(envar SRC_FILE[@]) -o $(getenv DST_FILE[1])'
47 CPP2O_CMD_FMT='${CPP} ${CPPFLAGS_OUT} ${CPPFLAGS_EXT} ${CPPFLAGS} ${CFLAGS_DEPHDR_Y} ${CFLAGS_CALLGRAPH_Y} $(envar SRC_FILE[@]) -o $(getenv DST_FILE[1])'
50 O2O_CMD_FMT='${LINK} ${CFLAGS_OUT} $(envar SRC_FILE[@]) -o ${DST_FILE} ${LDFLAGS}'
51 O2LIB_CMD_FMT='${AR} ${ARFLAGS} ${DST_FILE} $(envar SRC_FILE[@])'
52 O2DLL_CMD_FMT='${LINK} ${CFLAGS_OUT} $(envar SRC_FILE[@]) ${STATIC_LIB_FILE_LIST_Y} -o ${DST_FILE} ${LDFLAGS} ${LDFLAGS_SHARED}'
53 O2EXE_CMD_FMT='${LINK} ${CFLAGS_OUT} ${LDFLAGS_OUT} ${LDFLAGS_EXT} $(envar SRC_FILE[@]) ${STATIC_LIB_FILE_LIST_Y} -o ${DST_FILE} ${LDFLAGS}'
54 O2DRV_CMD_FMT='${LINK} ${CFLAGS_OUT} $(envar SRC_FILE[@]) ${STATIC_LIB_FILE_LIST_Y} -o ${DST_FILE} ${DRVLDFLAGS}'
57 ASM2EXE_CMD_FMT='${CC} ${ASMFLAGS_OUT} ${ASMFLAGS_EXT} ${ASMFLAGS} ${CFLAGS} ${LDFLAGS_OUT} ${LDFLAGS_EXT} ${LDFLAGS} $(envar SRC_FILE[@]) -o ${DST_FILE}'
59 C2EXE_CMD_FMT='${CC} ${CFLAGS_OUT} ${CFLAGS_EXT} ${CFLAGS} ${LDFLAGS_OUT} ${LDFLAGS_EXT} ${LDFLAGS} ${CFLAGS_CALLGRAPH} $(envar SRC_FILE[@]) $STATIC_LIB_FILE_LIST_Y -o ${DST_FILE}'
60 CXX2EXE_CMD_FMT='${CXX} ${CXXFLAGS_OUT} ${CXXFLAGS_EXT} ${CPPFLAGS} ${LDFLAGS_OUT} ${LDFLAGS_EXT} ${LDFLAGS} ${CFLAGS_DEPHDR_Y} ${CFLAGS_CALLGRAPH} $(envar SRC_FILE[@]) -o ${DST_FILE}'
61 CPP2EXE_CMD_FMT='${CPP} ${CPPFLAGS_OUT} ${CPPFLAGS_EXT} ${CPPFLAGS} ${LDFLAGS_OUT} ${LDFLAGS_EXT} ${LDFLAGS} ${CFLAGS_DEPHDR_Y} ${CFLAGS_CALLGRAPH} $(envar SRC_FILE[@]) -o ${DST_FILE}'