📄 makefile
字号:
## Makefile for Linux application test example.##---------------------------------------------------------------# Linux application Makefile sample# make -- the optical output without debug info# make clean -- clean the object file(s)# make install -- install the execute file(s) to INSTALLDIR#---------------------------------------------------------------# History:# Program start, Embest Lusi 2008.8.3CROSSDIR = /usr/crosstool/gcc-3.4.5-glibc-2.3.6/arm-linuxINSTALLDIR = $(TFTPDIR)LINUXDIR = $(KERNELDIR)#--------------------------------- /* execute file(s) */TESTFILE = Finger_test#--------------------------------- /* object file(s) */SRCFILE = Finger_test.c COMM.c#--------------------------------- /* header file(s) */TESTFILE_H = COMM.hCROSS=arm-linux-CC = $(CROSS)gccAS = $(CROSS)asLD = $(CROSS)ldCFLAGS += -O2 -Wall#all: $(TESTFILE)#$(TESTFILE): $(SRCFILE) $(TESTFILE_H) Makefile #$(CC) $(CFLAGS) -o $@ $@.call: $(CC) $(CFLAGS) $(SRCFILE) -o $(TESTFILE)clean: rm -f $(TESTFILE) install: $(TESTFILE) mkdir -p $(INSTALLDIR) cp --target-dir=$(INSTALLDIR) $(TESTFILE)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -