#Filename Makefile
#this file is used for show how to use makefile
$(info start working)
hello:hello.c
echo "nothing"
hello.bin:hello.c
@echo "now make hello.bin"
gcc hello.c -o hello.bin
.PHONY:he
he:hello.c
@echo "now make file"
gcc hello.c -o hello.bin
#function
define showFirstName
@echo $(1)
endef
define showWithoutParameters
echo "OSS"
endef
.PHONY:name
name:
#call function with parameters
$(call showFirstName, AnhuiOSS, OSS)
#call function without parameters
$(showWithoutParameters)
说明: