makefile的写法makefile的写法
我们首先看一个简单的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
用户评论