自学内容网 自学内容网

【EthIf编译脚本】communication/EthIf/EthIf.mod.mk

communication/EthIf/EthIf.mod.mk 目录下的脚本文件内容是:

# EthIF
obj-$(USE_ETHIF) += EthIf_Lcfg.o
obj-$(USE_ETHIF) += EthIf_PBcfg.o
obj-$(USE_ETHIF) += EthIf.o

vpath-$(USE_ETHIF) += $(ROOTDIR)/communication/EthIf/src
inc-$(USE_ETHIF) += $(ROOTDIR)/communication/EthIf/inc
inc-$(USE_ETHIF) += $(ROOTDIR)/mcal/Eth/inc

它是Ethernet Interface (EthIf) components的makefile文件

具体分解如下:

  1. 定义了如下的编译中间文件 (obj可链接文件):
    obj- ( U S E E T H I F ) + = E t h I f L c f g . o o b j − (USE_ETHIF) += EthIf_Lcfg.o obj- (USEETHIF)+=EthIfLcfg.oobj(USE_ETHIF) += EthIf_PBcfg.o
    obj-$(USE_ETHIF) += EthIf.o
  2. Vpath (Virtual Path):
    vpath-$(USE_ETHIF) += ( R O O T D I R ) / c o m m u n i c a t i o n / E t h I f / s r c v p a t h − (ROOTDIR)/communication/EthIf/src vpath- (ROOTDIR)/communication/EthIf/srcvpath(USE_ETHIF)存了source files搜索路径.
    3.Include Paths:
    inc-$(USE_ETHIF) += ( R O O T D I R ) / c o m m u n i c a t i o n / E t h I f / i n c i n c − (ROOTDIR)/communication/EthIf/inc inc- (ROOTDIR)/communication/EthIf/incinc(USE_ETHIF) += ( R O O T D I R ) / m c a l / E t h / i n c i n c − (ROOTDIR)/mcal/Eth/inc inc- (ROOTDIR)/mcal/Eth/incinc(USE_ETHIF) add 头文件的搜索路径

原文地址:https://blog.csdn.net/huihuige092/article/details/144359067

免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!