Android.mk revision 34d6eabc451f16d5f168fc1595ee604f21bccc51
1# Copyright 2006 The Android Open Source Project
2
3ifneq ($(TARGET_SIMULATOR),true)
4
5LOCAL_PATH := $(my-dir)
6include $(CLEAR_VARS)
7
8# From autoconf-generated Makefile
9strace_SOURCES = strace.c syscall.c util.c desc.c file.c \
10                 io.c ioctl.c mem.c net.c process.c bjm.c \
11                 resource.c signal.c sock.c system.c term.c time.c \
12                 proc.c stream.c
13
14#excluded_sources = ipc.c
15
16LOCAL_SRC_FILES:= $(strace_SOURCES)
17
18LOCAL_SHARED_LIBRARIES :=
19
20LOCAL_C_INCLUDES := \
21	$(KERNEL_HEADERS) \
22	$(LOCAL_PATH)/linux \
23	$(LOCAL_PATH)/android/arch/$(TARGET_ARCH)
24
25LOCAL_CFLAGS := -DHAVE_CONFIG_H -Dd_fileno=d_ino -D_LFS64_LARGEFILE=1
26
27ifeq ($(TARGET_ARCH),x86)
28LOCAL_CFLAGS += -Ulinux
29endif
30
31LOCAL_MODULE := strace
32
33LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
34
35LOCAL_MODULE_TAGS := debug
36
37include $(BUILD_EXECUTABLE)
38
39endif  # TARGET_SIMULATOR != true
40