Makefile modle
make official link:
https://www.gnu.org/software/make/manual/make.html#Rule-Introduction
[modle 1] TDM-GCC sigle file Makefile
OUTPUT_EXE = test.exe
OBJ_FILE = test.o
INCLUDE_FILE =
$(OUTPUT_EXE): $(OBJ_FILE)
gcc -o $(OUTPUT_EXE) $(OBJ_FILE)
%.o: %.c $(INCLUDE_FILE)
gcc -c $< -o $@
.PHONY:clean
clean:
del *.o *.exe