makefile
来自「linux下ad7888使用spi口驱动程序代码」· 代码 · 共 36 行
TXT
36 行
KERNELDIR = /home/utu-linux_for_s3c2440_dm9000_V1.5.8/# The current directory is passed to sub-makes as argumentPWD := $(shell pwd)CROSS_COMPILE =/usr/local/arm/3.4.1/bin/arm-linux-CC = $(CROSS_COMPILE)gcc# Comment/uncomment the following line to disable/enable debuggingDEBUG = n# Add your debugging flag (or not) to CFLAGSifeq ($(DEBUG),y) DEBFLAGS = -O -g -DSCULL_DEBUG # "-O" is needed to expand inlineselse DEBFLAGS = -O2endifCFLAGS += $(DEBFLAGS)obj-m := adconvert.o modules: $(MAKE) -C $(KERNELDIR) M=$(PWD) modulesmodules_install: cp scull.ko $(INSTALLDIR)clean: rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c .tmp_versions.PHONY: modules modules_install clean
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?