首页 > 其他 > 详细

makefile 编译指定目录

时间:2017-03-11 11:38:17      阅读:187      评论:0      收藏:0      [点我收藏+]

makefile 编译指定目录

 1 sub1=test1
 2 sub2=test2
 3 SUBDIRS = $(sub1) $(sub2)
 4 .PHONY:default all clean $(SUBDIRS) sub1 sub2
 5 default:all
 6 
 7 all clean:
 8     make $(SUBDIRS) TARGET=$@
 9 $(SUBDIRS):
10     make -C $@ $(TARGET)
11 sub1 sub2:
12     make  $($@) 

 

makefile 编译指定目录

原文:http://www.cnblogs.com/catgatp/p/6534249.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!