MTK 11A新加模块

来源:互联网 发布:统计分析软件这门课 编辑:程序博客网 时间:2024/04/28 09:58



1.option.mak增加编译选项

        COMPLIST += MyTest
        CUS_REL_SRC_COMP += MyTest
        CUSTOM_OPTION         += __MY_TEST__ 
        COM_DEFS    += __MT_TEST__

2.增加make文件

   \make\MyTest\MyTest.mak

MyTest.mak 文件添加内容:

# Define source file lists to SRC_LIST

.c文件路径MyTest.lis

SRC_LIST = MyTest\src\test.c \


# Define include path lists to INC_DIR

.h文件路径MyTest.inc

INC_DIR = MyTest\inc \


# Define the specified compile options to COMP_DEFS

宏定义MyTest.def

COMP_DEFS = __MY_TEST__ \


# Define the source file search paths to SRC_PATH

编译文件路径MyTest.path

SRC_PATH += MyTest\src

3.工程目录下增加文件

MyTest\src\mytest.c

MyTest\inc\mytest.h



原创粉丝点击