1LOCAL_PATH := $(call my-dir)
2
3LLVM_ROOT_PATH := $(LOCAL_PATH)/../../../
4
5
6#===---------------------------------------------------------------===
7# lli-child-target command line tool
8#===---------------------------------------------------------------===
9
10lli_child_target_SRC_FILES := \
11  ChildTarget.cpp \
12  ../RemoteTarget.cpp
13
14include $(CLEAR_VARS)
15
16LOCAL_MODULE := lli-child-target
17LOCAL_MODULE_TAGS := optional
18LOCAL_MODULE_CLASS := EXECUTABLES
19LOCAL_IS_HOST_MODULE := true
20
21LOCAL_SRC_FILES := $(lli_child_target_SRC_FILES)
22
23LOCAL_STATIC_LIBRARIES := \
24  libLLVMSupport
25
26LOCAL_LDLIBS += -lpthread -lm -ldl
27
28include $(LLVM_ROOT_PATH)/llvm.mk
29include $(LLVM_HOST_BUILD_MK)
30include $(LLVM_GEN_INTRINSICS_MK)
31include $(BUILD_HOST_EXECUTABLE)
32