1LOCAL_PATH := $(call my-dir) 2 3LLVM_ROOT_PATH := $(LOCAL_PATH)/../.. 4include $(LLVM_ROOT_PATH)/llvm.mk 5 6bugpoint_passes_SRC_FILES := \ 7 TestPasses.cpp 8 9# BugpointPasses module for the host 10# ===================================================== 11include $(CLEAR_VARS) 12 13LOCAL_SRC_FILES := $(bugpoint_passes_SRC_FILES) 14LOCAL_MODULE := BugpointPasses 15 16LOCAL_MODULE_TAGS := optional 17LOCAL_MODULE_CLASS := SHARED_LIBRARIES # needed for tblgen 18ifeq ($(HOST_OS),darwin) 19LOCAL_LDFLAGS := -Wl,-undefined -Wl,dynamic_lookup 20endif 21 22include $(LLVM_HOST_BUILD_MK) 23include $(LLVM_GEN_INTRINSICS_MK) 24include $(BUILD_HOST_SHARED_LIBRARY) 25