makefile
来自「基于linux和arm s3c2410的键盘驱动程序」· 代码 · 共 52 行
TXT
52 行
# Comment/uncomment the following line to enable/disable debugging#DEBUG = y# 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 detailsTOPDIR := $(pwd)include Rules.make# Add your debugging flag (or not) to CFLAGSifeq ($(DEBUG),y) DEBFLAGS = -O -g -DJIT_DEBUG -DJIQ_DEBUG -DALL_DEBUGelse DEBFLAGS = -O2endifCFLAGS += $(DEBFLAGS) -I..GENKSYMS = /sbin/genksymsifdef CONFIG_SMP GENKSYMS += -p smp_endifOBJS = sw4.oSRC = $(OBJS:.o:.c)BIN = testall: $(OBJS) $(BIN)clean: rm -f *.o *.ver *~ $(BIN)# Don't use -Wall here: the code is silly by designtest:test.c $(CC) -o $@ $<#FIXME: the 2.4.0 below is plain wrong :)ifdef CONFIG_MODVERSIONSexport.o import.o: export.verendifexport.ver: export.c $(CC) -I$(INCLUDEDIR) $(CFLAGS) -E -D__GENKSYMS__ $^ | \ $(GENKSYMS) -k 2.4.0 > $@
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?