Linux kernel & device driver programming

Cross-Referenced Linux and Device Driver Code

[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ]
Version: [ 2.6.11.8 ] [ 2.6.25 ] [ 2.6.25.8 ] [ 2.6.31.13 ] Architecture: [ i386 ]
  1 # Comment/uncomment the following line to disable/enable debugging
  2 #DEBUG = y
  3 
  4 EXTRA_CFLAGS += -O2 -I..
  5 
  6 ifneq ($(KERNELRELEASE),)
  7 # call from kernel build system
  8 
  9 obj-m   := shortprint.o
 10 
 11 else
 12 
 13 KERNELDIR ?= /lib/modules/$(shell uname -r)/build
 14 PWD       := $(shell pwd)
 15 
 16 default:
 17         $(MAKE) -C $(KERNELDIR) M=$(PWD) modules
 18 
 19 endif
 20 
 21 
 22 clean:
 23         rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c .tmp_versions
 24 
 25 depend .depend dep:
 26         $(CC) $(CFLAGS) -M *.c > .depend
 27 
 28 
 29 ifeq (.depend,$(wildcard .depend))
 30 include .depend
 31 endif
  This page was automatically generated by the LXR engine.