📄 makefile
字号:
## $Id: Makefile 338 2008-11-10 04:15:26Z jcw $# $Revision: 338 $# $Author: jcw $# $Date: 2008-11-09 23:15:26 -0500 (Sun, 09 Nov 2008) $# $HeadURL: http://tinymicros.com/svn_public/arm/lpc2148_demo/trunk/timer/Makefile $#SRC_FILES=beep.c timer.c## Define all object files.#ARM_OBJ = $(SRC_FILES:.c=.o).PHONY: allifeq ($(STARTEDATTOP),true)all: $(ARM_OBJ)elseall : @echo "Project must be rebuilt from top level"endif$(ARM_OBJ) : %.o : %.c Makefile .depend $(CC) -c $(CFLAGS) $< -o $@ $(AR) rc $(COMMON)/common.a $@## The .depend files contains the list of header files that the# various source files depend on. By doing this, we'll only# rebuild the .o's that are affected by header files changing.#.depend: $(CC) $(CFLAGS) -M $(SRC_FILES) -o .dependifeq (.depend,$(wildcard .depend))include .dependendif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -