1 # Comment/uncomment the following line to disable/enable debugging
2 #DEBUG = y
3
4 # Add your debugging flag (or not) to CFLAGS
5 ifeq ($(DEBUG),y)
6 DEBFLAGS = -O -g # "-O" is needed to expand inlines
7 else
8 DEBFLAGS = -O2
9 endif
10
11 EXTRA_CFLAGS += $(DEBFLAGS) -I$(LDDINCDIR)
12
13
14 ifneq ($(KERNELRELEASE),)
15 # call from kernel build system
16
17 obj-m := lddbus.o
18
19 else
20
21 KERNELDIR ?= /lib/modules/$(shell uname -r)/build
22 PWD := $(shell pwd)
23
24 default:
25 $(MAKE) -C $(KERNELDIR) SUBDIRS=$(PWD) LDDINCDIR=$(PWD)/../include modules
26
27 endif
28
29
30
31 clean:
32 rm -rf *.o *.ko *~ core .depend *.mod.c .*.cmd .tmp_versions .*.o.d
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.
|