blob: 2729bab6d21f47658b52b5cfe0a8cdffbb2d7835 [file] [log] [blame]
Iliyan Malchevc3229892011-08-08 11:24:41 -07001ifeq ($(TARGET_BOARD_PLATFORM),omap4)
2
3LOCAL_PATH:= $(call my-dir)
4HARDWARE_TI_OMAP4_BASE:= $(LOCAL_PATH)
5OMAP4_DEBUG_MEMLEAK:= false
6
7ifeq ($(OMAP4_DEBUG_MEMLEAK),true)
8
9OMAP4_DEBUG_CFLAGS:= -DHEAPTRACKER
10OMAP4_DEBUG_LDFLAGS:= $(foreach f, $(strip malloc realloc calloc free), -Wl,--wrap=$(f))
11OMAP4_DEBUG_SHARED_LIBRARIES:= liblog
12BUILD_HEAPTRACKED_SHARED_LIBRARY:= hardware/ti/omap4xxx/heaptracked-shared-library.mk
13BUILD_HEAPTRACKED_EXECUTABLE:= hardware/ti/omap4xxx/heaptracked-executable.mk
14
15LOCAL_PATH:= $(call my-dir)
16include $(CLEAR_VARS)
17LOCAL_SRC_FILES:= heaptracker.c stacktrace.c mapinfo.c
18LOCAL_MODULE:= libheaptracker
19LOCAL_MODULE_TAGS:= optional
20include $(BUILD_STATIC_LIBRARY)
21
22include $(CLEAR_VARS)
23LOCAL_SRC_FILES:= tm.c
24LOCAL_MODULE:= tm
25LOCAL_MODULE_TAGS:= test
26include $(BUILD_HEAPTRACKED_EXECUTABLE)
27
28else
29BUILD_HEAPTRACKED_SHARED_LIBRARY:=$(BUILD_SHARED_LIBRARY)
30BUILD_HEAPTRACKED_EXECUTABLE:= $(BUILD_EXECUTABLE)
31endif
32
33include $(call first-makefiles-under,$(LOCAL_PATH))
34endif