📄 makefile
字号:
# simplest makefile of module
KERNELDIR = /usr/src/linux-2.4.27
CC = /usr/local/arm/2.95.3/bin/arm-linux-gcc
CFLAGS = -D__KERNEL__ -DMODULE -I$(KERNELDIR)/include -O2 -Wall
ifdef CONFIG_SMP
CFLAGS += -D__SMP__ -DSMP
endif
all: led_module.o test_led.o
led_module.o: led_module.c
$(LD) $(CFLAGS) -c $^
test_led.o: test_led.c
$(LD) $^ -o test_led
clean:
rm -f *.o test_led core
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -