diff options
author | Iliyan Malchev <malchev@google.com> | 2011-08-08 11:24:41 -0700 |
---|---|---|
committer | Iliyan Malchev <malchev@google.com> | 2011-08-08 11:46:17 -0700 |
commit | a40968e9b9abcdcc042948ea73346b020279d4b7 (patch) | |
tree | 926da5b4447017617fcc255b490eaee5174a4a9a /Android.mk | |
parent | 8558b0909d3f42288f488e6fd1341877c639a594 (diff) | |
download | hardware_ti_omap4-a40968e9b9abcdcc042948ea73346b020279d4b7.zip hardware_ti_omap4-a40968e9b9abcdcc042948ea73346b020279d4b7.tar.gz hardware_ti_omap4-a40968e9b9abcdcc042948ea73346b020279d4b7.tar.bz2 |
initial commit
Change-Id: I8f7a7eeece0e516efa486b77e9d97805c0e65d3e
Signed-off-by: Iliyan Malchev <malchev@google.com>
Diffstat (limited to 'Android.mk')
-rw-r--r-- | Android.mk | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk new file mode 100644 index 0000000..2729bab --- /dev/null +++ b/Android.mk @@ -0,0 +1,34 @@ +ifeq ($(TARGET_BOARD_PLATFORM),omap4) + +LOCAL_PATH:= $(call my-dir) +HARDWARE_TI_OMAP4_BASE:= $(LOCAL_PATH) +OMAP4_DEBUG_MEMLEAK:= false + +ifeq ($(OMAP4_DEBUG_MEMLEAK),true) + +OMAP4_DEBUG_CFLAGS:= -DHEAPTRACKER +OMAP4_DEBUG_LDFLAGS:= $(foreach f, $(strip malloc realloc calloc free), -Wl,--wrap=$(f)) +OMAP4_DEBUG_SHARED_LIBRARIES:= liblog +BUILD_HEAPTRACKED_SHARED_LIBRARY:= hardware/ti/omap4xxx/heaptracked-shared-library.mk +BUILD_HEAPTRACKED_EXECUTABLE:= hardware/ti/omap4xxx/heaptracked-executable.mk + +LOCAL_PATH:= $(call my-dir) +include $(CLEAR_VARS) +LOCAL_SRC_FILES:= heaptracker.c stacktrace.c mapinfo.c +LOCAL_MODULE:= libheaptracker +LOCAL_MODULE_TAGS:= optional +include $(BUILD_STATIC_LIBRARY) + +include $(CLEAR_VARS) +LOCAL_SRC_FILES:= tm.c +LOCAL_MODULE:= tm +LOCAL_MODULE_TAGS:= test +include $(BUILD_HEAPTRACKED_EXECUTABLE) + +else +BUILD_HEAPTRACKED_SHARED_LIBRARY:=$(BUILD_SHARED_LIBRARY) +BUILD_HEAPTRACKED_EXECUTABLE:= $(BUILD_EXECUTABLE) +endif + +include $(call first-makefiles-under,$(LOCAL_PATH)) +endif |