# Comment/uncomment the following line to enable/disable debugging #DEBUG = y ifeq ($(DEBUG),y) DEBFLAGS = -O -g -DSCULLV_DEBU…
Makefile 源代码
一个工程中的源文件不计其数,其按类型、功能、模块分别放在若干个目录中,makefile定义了一系列的规则来指定哪些文件需要先编译,哪些文件需要后编译,哪些文件需要重新编译,甚至于进行更复杂的功能操作,因为makefile就像一个Shell脚本一样,也可以执行操作系统的命令。[1-…
# Comment/uncomment the following line to disable/enable debugging #DEBUG = y # Add your debugging flag (or not) to CFLAGS ifeq …
obj-m := usb-skeleton.o KERNELDIR ?= /lib/modules/$(shell uname -r)/build PWD := $(shell pwd) all: $(MAKE) -C $(KERNELDIR…
# Comment/uncomment the following line to disable/enable debugging #DEBUG = y # Add your debugging flag (or not) to CFLAGS ifeq …
foo:
# To build modules outside of the kernel tree, we run "make" # in the kernel source tree; the Makefile these then includes this # …
# Comment/uncomment the following line to disable/enable debugging #DEBUG = y CFLAGS += -O2 -I.. ifneq ($(KERNELRELEASE),) # cal…
# Comment/uncomment the following line to disable/enable debugging #DEBUG = y # Add your debugging flag (or not) to CFLAGS ifeq (…
# Comment/uncomment the following line to enable/disable debugging #DEBUG = y ifeq ($(DEBUG),y) DEBFLAGS = -O -g -DSCULLP_DEBU…
##################################################################### # # Created by u'nSP IDE 11:06:09 07/31…