Makefile:自动推导

来自WHY42
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)