Makefile中用$(shell pwd)获取相对路径
发布日期:2021-05-14 10:08:27 浏览次数:12 分类:精选文章

本文共 3564 字,大约阅读时间需要 11 分钟。

���Makefile������������������������������������������������������������������������������������������������������������������������������������������������������������������������Makefile������������������������������������������shell������������������������������������������������������������������������������������������������������������������������������������������������������������������������������

������

���������Makefile���������������������������������������������������������������������������������������������������������������������������������������Makefile���������pwd���������������$(pwd)������������������������������������Makefile������������������������shell���������������������������shell������������������������������������������������������������������������

������$(shell pwd)������������������������

���Makefile������������$(shell pwd)������������������������������������������������������������������Makefile���������������shell���������������pwd������������������������������������������������������������$(shell pwd)������������������������������������������������������������������������������������������������������������������

������������Makefile���������include������

���������������������������������������������������������Makefile������-I������������������������������������������������������������������������������������������������������include���������������������������������������������subdir���������������������include���������������������������������

INCDIR := $(shell pwd)/subdirCPPFLAGS := -I$(INCDIR)/include

���������$(shell pwd)������������������������������������������������subdir������������������������������������������$(INCDIR)/include���������������������������������������������������������������������������subdir/include������������������

���$(pwd)���������

������������������������Makefile���������������$(pwd)���������������$(pwd)������������shell������������������������������������������Makefile��������������������������������������������� "���������"���������������������������������������������������������������������������������������������������������

������������������Makefile������������������������������������

P := $(pwd)  # ������������������������P := $(shell pwd)  # ������������������������all:    echo $P

������������$(pwd)������������������������Makefile���������������������������������������������������������������������������������������������������������������Makefile������������������

t���n ������

������������������������������������������������������������������������Makefile���������������

all:    echo "���������������������$(shell pwd)"    echo "������������������$(INCDIR)/include"

���������������������test.mk���������������������������make test���������������Makefile������������������������������������������������������������������������$(shell pwd)������������������������

������

������������������������������������������������������

  • ���Makefile������������$(shell pwd)���������������������������������������������������������
  • strictify������$(pwd)���������������������������������������������������Makefile������������������
  • ������������������������������������������������������������������������������������������������������������������������������
  • ������������������������������������������������Combining $(shell pwd)���������������������������������������������

���������������������������������������������Makefile���������������������������������������������������������������������������������������������������������������������������������������

上一篇:如何播放pcm文件
下一篇:960帧高速摄影原理及知识普及(红米K20Pro)

发表评论

最新留言

不错!
[***.144.177.141]2025年04月15日 12时39分34秒