1736c2756bf3c14ae9fef7255c119057f7a2be1edSvetoslav Ganov# 2736c2756bf3c14ae9fef7255c119057f7a2be1edSvetoslav Ganov# Copyright (C) 2011 The Android Open Source Project 3736c2756bf3c14ae9fef7255c119057f7a2be1edSvetoslav Ganov# 4736c2756bf3c14ae9fef7255c119057f7a2be1edSvetoslav Ganov# Licensed under the Apache License, Version 2.0 (the "License"); 5736c2756bf3c14ae9fef7255c119057f7a2be1edSvetoslav Ganov# you may not use this file except in compliance with the License. 6736c2756bf3c14ae9fef7255c119057f7a2be1edSvetoslav Ganov# You may obtain a copy of the License at 7736c2756bf3c14ae9fef7255c119057f7a2be1edSvetoslav Ganov# 8736c2756bf3c14ae9fef7255c119057f7a2be1edSvetoslav Ganov# http://www.apache.org/licenses/LICENSE-2.0 9736c2756bf3c14ae9fef7255c119057f7a2be1edSvetoslav Ganov# 10736c2756bf3c14ae9fef7255c119057f7a2be1edSvetoslav Ganov# Unless required by applicable law or agreed to in writing, software 11736c2756bf3c14ae9fef7255c119057f7a2be1edSvetoslav Ganov# distributed under the License is distributed on an "AS IS" BASIS, 12736c2756bf3c14ae9fef7255c119057f7a2be1edSvetoslav Ganov# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13736c2756bf3c14ae9fef7255c119057f7a2be1edSvetoslav Ganov# See the License for the specific language governing permissions and 14736c2756bf3c14ae9fef7255c119057f7a2be1edSvetoslav Ganov# limitations under the License. 15736c2756bf3c14ae9fef7255c119057f7a2be1edSvetoslav Ganov# 16736c2756bf3c14ae9fef7255c119057f7a2be1edSvetoslav Ganov 17736c2756bf3c14ae9fef7255c119057f7a2be1edSvetoslav GanovLOCAL_PATH := $(call my-dir) 18736c2756bf3c14ae9fef7255c119057f7a2be1edSvetoslav Ganov 19736c2756bf3c14ae9fef7255c119057f7a2be1edSvetoslav GanovLLVM_ROOT_PATH := external/llvm 204213804541a8b05cd0587b138a2fd9a3b7fd9350Svetoslav Ganov 214213804541a8b05cd0587b138a2fd9a3b7fd9350Svetoslav Ganov# Executable for host 224213804541a8b05cd0587b138a2fd9a3b7fd9350Svetoslav Ganov# ======================================================== 234213804541a8b05cd0587b138a2fd9a3b7fd9350Svetoslav Ganovinclude $(CLEAR_VARS) 24ea6fbc0981564f7bbf4c6fbb63af0175415121ceCasey Burkhardt 254213804541a8b05cd0587b138a2fd9a3b7fd9350Svetoslav GanovLOCAL_MODULE := bcinfo 264213804541a8b05cd0587b138a2fd9a3b7fd9350Svetoslav Ganov 27e15ccb93add99ebb9cd7aec03a04faa37f45b39dSvetoslav GanovLOCAL_SRC_FILES := \ 28736c2756bf3c14ae9fef7255c119057f7a2be1edSvetoslav Ganov main.cpp 29e15ccb93add99ebb9cd7aec03a04faa37f45b39dSvetoslav Ganov 30736c2756bf3c14ae9fef7255c119057f7a2be1edSvetoslav GanovLOCAL_SHARED_LIBRARIES := \ 31736c2756bf3c14ae9fef7255c119057f7a2be1edSvetoslav Ganov libbcinfo 32e15ccb93add99ebb9cd7aec03a04faa37f45b39dSvetoslav Ganov 33e15ccb93add99ebb9cd7aec03a04faa37f45b39dSvetoslav GanovLOCAL_STATIC_LIBRARIES := \ 344213804541a8b05cd0587b138a2fd9a3b7fd9350Svetoslav Ganov libLLVMBitReader \ 35f5a07905a3e025f95472a3f8d9935263e49ad6d3Svetoslav Ganov libLLVMBitWriter \ 36f5a07905a3e025f95472a3f8d9935263e49ad6d3Svetoslav Ganov libLLVMCore \ 3786783474fdec98a22bc22e224462767eab13e273Svetoslav Ganov libLLVMSupport 38736c2756bf3c14ae9fef7255c119057f7a2be1edSvetoslav Ganov 394213804541a8b05cd0587b138a2fd9a3b7fd9350Svetoslav GanovLOCAL_CFLAGS += -D__HOST__ 40f5a07905a3e025f95472a3f8d9935263e49ad6d3Svetoslav Ganov 414213804541a8b05cd0587b138a2fd9a3b7fd9350Svetoslav GanovLOCAL_C_INCLUDES := \ 42736c2756bf3c14ae9fef7255c119057f7a2be1edSvetoslav Ganov $(LOCAL_PATH)/../../include 43736c2756bf3c14ae9fef7255c119057f7a2be1edSvetoslav Ganov 44736c2756bf3c14ae9fef7255c119057f7a2be1edSvetoslav GanovLOCAL_LDLIBS = -ldl -lpthread 45736c2756bf3c14ae9fef7255c119057f7a2be1edSvetoslav Ganov 46736c2756bf3c14ae9fef7255c119057f7a2be1edSvetoslav Ganovinclude $(LLVM_ROOT_PATH)/llvm-host-build.mk 47736c2756bf3c14ae9fef7255c119057f7a2be1edSvetoslav Ganovinclude $(BUILD_HOST_EXECUTABLE) 48736c2756bf3c14ae9fef7255c119057f7a2be1edSvetoslav Ganov 49736c2756bf3c14ae9fef7255c119057f7a2be1edSvetoslav Ganov