Lukas Hänel | fc412b4 | 2012-06-01 19:12:29 +0200 | [diff] [blame] | 1 | # |
| 2 | # Makefile for the kernel mobicore drivers |
| 3 | # |
| 4 | GUD_ROOT_FOLDER := drivers/gud |
| 5 | # add our modules to kernel. |
| 6 | obj-$(CONFIG_MOBICORE_API) += mckernelapi.o |
| 7 | obj-$(CONFIG_MOBICORE_SUPPORT) += mcdrvmodule.o |
| 8 | |
| 9 | mcdrvmodule-objs := mobicore_driver/logging.o mobicore_driver/main.o |
| 10 | |
| 11 | mckernelapi-objs := mobicore_kernelapi/main.o \ |
| 12 | mobicore_kernelapi/clientlib.o \ |
| 13 | mobicore_kernelapi/device.o \ |
| 14 | mobicore_kernelapi/session.o \ |
| 15 | mobicore_kernelapi/connection.o |
| 16 | |
| 17 | # Release mode by default |
| 18 | ccflags-y := -DNDEBUG |
| 19 | ccflags-y += -Wno-declaration-after-statement |
| 20 | |
| 21 | ccflags-$(CONFIG_MOBICORE_DEBUG) += -DDEBUG |
| 22 | ccflags-$(CONFIG_MOBICORE_VERBOSE) += -DDEBUG_VERBOSE |
| 23 | |
| 24 | # Choose one platform from the folder |
| 25 | MOBICORE_PLATFORM := $(shell (ls -1 $(PWD)/$(GUD_ROOT_FOLDER)/mobicore_driver/platforms | tail -1) ) |
| 26 | # Use the available platform folder |
| 27 | ccflags-y += -I$(GUD_ROOT_FOLDER)/mobicore_driver/platforms/$(MOBICORE_PLATFORM) |
| 28 | |
| 29 | |
| 30 | ccflags-y += -I$(GUD_ROOT_FOLDER)/mobicore_driver/public |
| 31 | ccflags-y += -I$(GUD_ROOT_FOLDER)/mobicore_kernelapi/include |