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