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 head    1.1;
  2 access;
  3 symbols;
  4 locks
  5         baker:1.1; strict;
  6 comment @# @;
  7 
  8 
  9 1.1
 10 date    2008.05.06.23.07.34;    author baker;   state Exp;
 11 branches;
 12 next    ;
 13 
 14 
 15 desc
 16 @@
 17 
 18 
 19 1.1
 20 log
 21 @Initial revision
 22 @
 23 text
 24 @# Comment/uncomment the following line to disable/enable debugging
 25 #DEBUG = y
 26 
 27 # Add your debugging flag (or not) to CFLAGS
 28 ifeq ($(DEBUG),y)
 29   DEBFLAGS = -O -g # "-O" is needed to expand inlines
 30 else
 31   DEBFLAGS = -O2
 32 endif
 33 CFLAGS  += $(DEBFLAGS) -I$(LDDINCDIR)
 34 
 35 
 36 ifneq ($(KERNELRELEASE),)
 37 # call from kernel build system
 38 
 39 obj-m   := lddbus.o
 40 
 41 else
 42 
 43 KERNELDIR ?= /lib/modules/$(shell uname -r)/build
 44 PWD       := $(shell pwd)
 45 
 46 default:
 47         $(MAKE) -C $(KERNELDIR) SUBDIRS=$(PWD) LDDINCDIR=$(PWD)/../include modules
 48 
 49 endif
 50 
 51 
 52 
 53 clean:
 54         rm -rf *.o *.ko *~ core .depend *.mod.c .*.cmd .tmp_versions .*.o.d
 55 
 56 depend .depend dep:
 57         $(CC) $(CFLAGS) -M *.c > .depend
 58 
 59 
 60 ifeq (.depend,$(wildcard .depend))
 61 include .depend
 62 endif
 63 @
  This page was automatically generated by the LXR engine.