码迷,mamicode.com
首页 > 其他好文 > 详细

makefile编写规则

时间:2018-10-27 18:44:17      阅读:140      评论:0      收藏:0      [点我收藏+]

标签:efi   std   obj   file   new   libs   rom   makefile   gtest   

cc = g++ -std=c++11
prom = calc
deps = FtTest.h
obj = FtTest.o newft.o 
LIBS = -lgtest_c11

$(prom): $(obj)
    $(cc) -o $(prom) $(obj)  $(LIBS)

%.o: %.c $(deps)
    $(cc) -c $< -o $@

makefile编写规则

标签:efi   std   obj   file   new   libs   rom   makefile   gtest   

原文地址:https://www.cnblogs.com/ims-/p/9862557.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!