📄 makefile
字号:
# Comment/uncomment the following line to disable/enable debugging#DEBUG = y#EXTDEBUG = y #extended debugging (register dumps)# This Makefile has been simplified as much as possible, by putting all# generic material, independent of this specific directory, into# ../Rules.make. Read that file for detailsPATH=$PATH:/usr/local/bin:/usr/bin:/bin:/usr/local/arm-linux/binTOPDIR := $(shell cd ..; pwd)include Rules.make# Add your debugging flag (or not) to CFLAGSifeq ($(EXTDEBUG),y) DEBFLAGS = -O -g -DCAN_DEBUG -DREGDUMP # "-O" is needed to expand inlineselseifeq ($(DEBUG),y) DEBFLAGS = -O -g -DCAN_DEBUG # "-O" is needed to expand inlineselse DEBFLAGS = -O2endifendifCFLAGS += $(DEBFLAGS)CFLAGS += -I..VPATH = ./src:./include:./examplesTARGET = canOBJS = $(TARGET).oSRC = main.c hms30c7202_can.c c_can.c \ irq.c open.c close.c read.c write.c ioctl.c \all: .depend $(TARGET).o$(TARGET).o: $(SRC:.c=.o) $(LD) -r $^ -o $@install: install -d $(INSTALLDIR) install -c $(TARGET).o $(INSTALLDIR)clean: rm -f *.o src/*.o *~ core .depend depend .depend dep: $(CC) $(CFLAGS) -M src/*.c > $@#ifeq (.depend, $(wildcard .depend))#include .depend#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -