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 := sbull.o
18
19 else
20
21 KERNELDIR ?= /lib/modules/$(shell uname -r)/build
22 PWD := $(shell pwd)
23
24 default:
25 $(MAKE) -C $(KERNELDIR) M=$(PWD) modules
26
27 endif
28
29
30
31 clean:
32 rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c .tmp_versions
33
34 depend .depend dep:
35 $(CC) $(CFLAGS) -M *.c > .depend
36
37
38 ifeq (.depend,$(wildcard .depend))
39 include .depend
40 endif
|
This page was automatically generated by the
LXR engine.
|