makefile的写法makefile的写法

上传:weixin_47278592 浏览: 22 推荐: 0 文件:TXT 大小:3.05KB 上传时间:2020-08-15 09:24:47 版权申诉
我们首先看一个简单的makefile: CC = g++ OBJS = main.o base.o derive.o EXEC = test $(EXEC): $(OBJS) $(CC) -o $@ $^ main.o: main.cpp base.h derive.h $(CC) -c $< base.o: base.cpp base.h $(CC) -c $< derive.o: derive.cpp derive.h base.h $(CC) -c $< c
上传资源
用户评论