Makefile:自动推导
CC = gcc
objects = mathApi.o main.o
bin = hello.exe
all:main
main:$(objects)
$(CC) -o $(bin) $(objects)
.PHONY: clean
clean:
rm -f $(objects) $(bin)
欢迎来到Riguz的小站!这是一个私人wiki,用来记录一些我的笔记。
CC = gcc
objects = mathApi.o main.o
bin = hello.exe
all:main
main:$(objects)
$(CC) -o $(bin) $(objects)
.PHONY: clean
clean:
rm -f $(objects) $(bin)