COMPILE_TIME = $(shell echo %date:~0,4%/%date:~5,2%/%date:~8,2% %time:~0,2%:%time:~3,2%:%time:~6,2%)
CFLAGS += -DBUILD_TIME="\"$(COMPILE_TIME)\""
makefile获取编译时间
最新推荐文章于 2024-05-13 15:54:10 发布
COMPILE_TIME = $(shell echo %date:~0,4%/%date:~5,2%/%date:~8,2% %time:~0,2%:%time:~3,2%:%time:~6,2%)
CFLAGS += -DBUILD_TIME="\"$(COMPILE_TIME)\""