gator: ARM DS-5.6 Streamline gator driver
[android-sdk/arm-ds5-gator.git] / Makefile
1 ifneq ($(KERNELRELEASE),)
3 obj-m := gator.o
5 gator-y :=      gator_main.o \
6                 gator_events_irq.o \
7                 gator_events_sched.o \
8                 gator_events_net.o \
9                 gator_events_block.o \
10                 gator_events_meminfo.o
12 gator-y +=      gator_events_mmaped.o
14 ifneq ($(GATOR_WITH_MALI_SUPPORT),)
15 gator-y +=      gator_events_mali.o
16 endif
18 gator-$(CONFIG_ARM) +=  gator_events_armv6.o \
19                         gator_events_armv7.o \
20                         gator_events_pl310.o
22 $(obj)/gator_main.o: gator_events.h
24 clean-files := gator_events.h
26        chk_events.h = :
27  quiet_chk_events.h = echo '  CHK     $@'
28 silent_chk_events.h = :
29 gator_events.h: FORCE
30         @$($(quiet)chk_events.h)
31         $(Q)cd $(obj) ; $(CONFIG_SHELL) $(obj)/gator_events.sh $@
33 else
35 all:
36         @echo
37         @echo "usage:"
38         @echo "      make -C <kernel_build_dir> M=\`pwd\` ARCH=arm CROSS_COMPILE=<...> modules"
39         @echo
40         $(error)
42 clean:
43         rm -f *.o modules.order Module.symvers gator.ko gator.mod.c
45 endif