blob: 9b37eeab699043329aac873471828990c3a4e741 [file] [log] [blame]
Oana Medvesana0361802013-12-20 13:52:46 +01001#
2# this makefile is called from the kernel make syste
3ifeq ($(MODE),release)
4 ccflags-y += -O2 -DNDEBUG
5else # DEBUG
6 # "-O" is needed to expand inlines
7 ccflags-y += -O -g3 -DDEBUG
8endif # DEBUG/RELEASE
9
10ifdef MOBICORE_CFLAGS
11 ccflags-y +=$(MOBICORE_CFLAGS)
12endif
13
14#Set the extra symbols
15ifdef MCDRV_SYMBOLS_FILE
16 KBUILD_EXTRA_SYMBOLS=$(MCDRV_SYMBOLS_FILE)
17endif
18
19ifeq ($(PLATFORM), ARM_VE_A9X4_QEMU)
20 ccflags-y += -DMC_NETLINK_COMPAT_V37
21endif
22
23ifeq ($(PLATFORM), MSM8974_SURF_STD)
24 ccflags-y += -DMC_NETLINK_COMPAT_V37
25endif
26
27ifeq ($(PLATFORM), EXYNOS_5422_STD)
28 ccflags-y += -DMC_NETLINK_COMPAT_V37
29endif
30
31ifeq ($(PLATFORM), EXYNOS_5430_STD)
32 ccflags-y += -DMC_NETLINK_COMPAT_V37
33endif
34
35#EXTRA_CFLAGS += -DDEBUG -DDEBUG_VERBOSE
36#EXTRA_CFLAGS += -Wno-declaration-after-statement
37ccflags-y += -Wno-declaration-after-statement
38# add our module to kernel.
39obj-m += mcKernelApi.o
40
41mcKernelApi-objs := main.o clientlib.o device.o session.o connection.o
42
43clean:
44 rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c .tmp_versions \
45 Module.markers Module.symvers modules.order
46
47depend .depend dep:
48 $(CC) $(CFLAGS) -M *.c > .depend
49
50ifeq (.depend,$(wildcard .depend))
51 include .depend
52endif