1. 首页
  2. 编程语言
  3. C
  4. makefile的写法makefile的写法

makefile的写法makefile的写法

上传者: 2020-08-15 09:24:47上传 TXT文件 3.05KB 热度 24次
我们首先看一个简单的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
下载地址
用户评论