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)