1 # Comment/uncomment the following line to disable/enable debugging
2 #DEBUG = y
3
4
5 # Add your debugging flag (or not) to CFLAGS
6 ifeq ($(DEBUG),y)
7 DEBFLAGS = -O -g -DSBULL_DEBUG # "-O" is needed to expand inlines
8 else
9 DEBFLAGS = -O2
10 endif
11
12 EXTRA_CFLAGS += $(DEBFLAGS) -I..
13
14 ifneq ($(KERNELRELEASE),)
15 # call from kernel build system
16
17 obj-m := snull.o
18
19 else
20
21 KERNELDIR ?= /lib/modules/$(shell uname -r)/build
22 PWD := $(shell pwd)
23
24 default:
25 echo KERNELDIR = $(KERNELDIR)
26 $(MAKE) -C $(KERNELDIR) M=$(PWD) modules
27
28 endif
29
30
31
32 clean:
33 rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c .tmp_versions
34
35 depend .depend dep:
36 $(CC) $(CFLAGS) -M *.c > .depend
37
38
39 ifeq (.depend,$(wildcard .depend))
40 include .depend
41 endif
|
This page was automatically generated by the
LXR engine.
|