?? makefile
字號:
# Comment/uncomment the following line to disable/enable debuggingDEBUG = n CC = gccINCLUDEDIR = /usr/includei/linuxifeq ($(DEBUG),y) DEBFLAGS = -O -g -D_DEBUG_ # "-O" is needed to expand inlineselse DEBFLAGS = -O2endifCFLAGS = -D__KERNEL__ -DMODULE -Wall -Wstrict-prototypes -fomit-frame-pointer \ -fno-strict-aliasing -pipe -mpreferred-stack-boundary=2 $(DEBFLAGS)CFLAGS += -I$(INCLUDEDIR)# Extract version number from headers.VER = `awk -F\" '/REL/ {print $$2}' $(INCLUDEDIR)/linux/version.h`TARGET = smbiosOBJS = $(TARGET).oSRC = bios.c main.c cooking.call: .depend $(TARGET).o$(TARGET).o: $(SRC:.c=.o) $(LD) -r $^ -o $@install: mkdir -p /lib/modules/$(VER)/misc install -c -m 644 $(TARGET).o /lib/modules/$(VER)/miscclean: rm -f *.o *~ core .dependdepend .depend dep: $(CC) $(CFLAGS) -M *.c > $@ifeq (.depend,$(wildcard .depend))include .dependendif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -