?? makefile
字號:
# Comment/uncomment the following line to enable/disable debugging#DEBUG = y# Change it here or specify it on the "make" commandlineINCLUDEDIR = /usr/includeifeq ($(DEBUG),y) DEBFLAGS = -O -g -DJIT_DEBUG -DJIQ_DEBUG -DALL_DEBUGelse DEBFLAGS = -O2endifCFLAGS = -D__KERNEL__ -DMODULE -Wall $(DEBFLAGS)CFLAGS += -I$(INCLUDEDIR)# first the portable ones, then those that need newer kernel versions# this way everything compilable is built under 1.2 before getting errorsOBJS = faulty.o sleepy.o silly.o slave.o slaveD.o slaveH.o import.o \ master.o export.o hello.o \ jit.o jiq.o allocator.o all: $(OBJS)clean: rm -f *.o *~# Don't use -Wall here: the cose is silly by designhello.o: hello.c $(CC) -D__KERNEL__ -c $^ -o $@# set MODVERSIONS if the kernel uses itVERSUSED = $(shell grep 'define CONFIG_MODVERSIONS' \ $(INCLUDEDIR)/linux/autoconf.h | wc -l | sed 's/ //g')ifeq ($(VERSUSED),1) MODVERSIONS = yendif# and then use itifdef MODVERSIONSexport.o import.o: export.verendifexport.ver: export.c $(CC) -I$(INCLUDEDIR) -E -D__GENKSYMS__ $^ | genksyms > $@
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -