]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/arm-ds5-gator.git/blob - driver/Makefile
gator-daemon: Fix sequence-point compile error
[android-sdk/arm-ds5-gator.git] / driver / Makefile
1 ifneq ($(KERNELRELEASE),)
3 # Uncomment the following line to enable kernel stack unwinding within gator, or update gator_backtrace.c
4 # EXTRA_CFLAGS +=       -DGATOR_KERNEL_STACK_UNWINDING
6 obj-m := gator.o
8 gator-y :=      gator_main.o \
9                 gator_events_irq.o \
10                 gator_events_sched.o \
11                 gator_events_net.o \
12                 gator_events_block.o \
13                 gator_events_meminfo.o \
14                 gator_events_perf_pmu.o
16 gator-y +=      gator_events_mmaped.o
18 ifneq ($(GATOR_WITH_MALI_SUPPORT),)
19 ifeq ($(GATOR_WITH_MALI_SUPPORT),MALI_T6xx)
20 gator-y +=      gator_events_mali_t6xx.o
21 else
22 gator-y +=      gator_events_mali.o
23 endif
24 EXTRA_CFLAGS += -DMALI_SUPPORT=$(GATOR_WITH_MALI_SUPPORT)
25 endif
27 gator-$(CONFIG_ARM) +=  gator_events_armv6.o \
28                         gator_events_armv7.o \
29                         gator_events_l2c-310.o \
30                         gator_events_scorpion.o
32 $(obj)/gator_main.o: gator_events.h
34 clean-files := gator_events.h
36        chk_events.h = :
37  quiet_chk_events.h = echo '  CHK     $@'
38 silent_chk_events.h = :
39 gator_events.h: FORCE
40         @$($(quiet)chk_events.h)
41         $(Q)cd $(obj) ; $(CONFIG_SHELL) $(obj)/gator_events.sh $@
43 else
45 all:
46         @echo
47         @echo "usage:"
48         @echo "      make -C <kernel_build_dir> M=\`pwd\` ARCH=arm CROSS_COMPILE=<...> modules"
49         @echo
50         $(error)
52 clean:
53         rm -f *.o .*.cmd gator_events.h modules.order Module.symvers gator.ko gator.mod.c
55 endif