1331310e1f3f86a795f78e42b3f03558a43829f09Stephen Hines#
2331310e1f3f86a795f78e42b3f03558a43829f09Stephen Hines# Copyright (C) 2012 The Android Open Source Project
3331310e1f3f86a795f78e42b3f03558a43829f09Stephen Hines#
4331310e1f3f86a795f78e42b3f03558a43829f09Stephen Hines# Licensed under the Apache License, Version 2.0 (the "License");
5331310e1f3f86a795f78e42b3f03558a43829f09Stephen Hines# you may not use this file except in compliance with the License.
6331310e1f3f86a795f78e42b3f03558a43829f09Stephen Hines# You may obtain a copy of the License at
7331310e1f3f86a795f78e42b3f03558a43829f09Stephen Hines#
8331310e1f3f86a795f78e42b3f03558a43829f09Stephen Hines#      http://www.apache.org/licenses/LICENSE-2.0
9331310e1f3f86a795f78e42b3f03558a43829f09Stephen Hines#
10331310e1f3f86a795f78e42b3f03558a43829f09Stephen Hines# Unless required by applicable law or agreed to in writing, software
11331310e1f3f86a795f78e42b3f03558a43829f09Stephen Hines# distributed under the License is distributed on an "AS IS" BASIS,
12331310e1f3f86a795f78e42b3f03558a43829f09Stephen Hines# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13331310e1f3f86a795f78e42b3f03558a43829f09Stephen Hines# See the License for the specific language governing permissions and
14331310e1f3f86a795f78e42b3f03558a43829f09Stephen Hines# limitations under the License.
15331310e1f3f86a795f78e42b3f03558a43829f09Stephen Hines#
16331310e1f3f86a795f78e42b3f03558a43829f09Stephen Hines
17331310e1f3f86a795f78e42b3f03558a43829f09Stephen HinesLOCAL_PATH := $(call my-dir)
18331310e1f3f86a795f78e42b3f03558a43829f09Stephen Hines
19b220e480677cd740cbb0752ec77ddf3d59c7614eTim Murray# Don't build for unbundled branches
20b220e480677cd740cbb0752ec77ddf3d59c7614eTim Murrayifeq (,$(TARGET_BUILD_APPS))
213059d3ffe3fc41017912c34c7be19f25796ff93aStephen Hines
22331310e1f3f86a795f78e42b3f03558a43829f09Stephen Hines# Executable for host
23331310e1f3f86a795f78e42b3f03558a43829f09Stephen Hines# ========================================================
24331310e1f3f86a795f78e42b3f03558a43829f09Stephen Hinesinclude $(CLEAR_VARS)
25331310e1f3f86a795f78e42b3f03558a43829f09Stephen Hines
26331310e1f3f86a795f78e42b3f03558a43829f09Stephen HinesLOCAL_MODULE := bcc_compat
27331310e1f3f86a795f78e42b3f03558a43829f09Stephen HinesLOCAL_MODULE_CLASS := EXECUTABLES
28331310e1f3f86a795f78e42b3f03558a43829f09Stephen Hines
29331310e1f3f86a795f78e42b3f03558a43829f09Stephen HinesLOCAL_SHARED_LIBRARIES := \
30921dde4aafc233b173f7bfcf2e15b49f682281b4Romain Guy  libbcc \
314b778721adc9789411c2f2911578dab4d1d7c7b6Stephen Hines  libbcinfo \
32921dde4aafc233b173f7bfcf2e15b49f682281b4Romain Guy  libLLVM
33331310e1f3f86a795f78e42b3f03558a43829f09Stephen Hines
34331310e1f3f86a795f78e42b3f03558a43829f09Stephen HinesLOCAL_C_INCLUDES := \
35331310e1f3f86a795f78e42b3f03558a43829f09Stephen Hines  $(LOCAL_PATH)/../../include
36331310e1f3f86a795f78e42b3f03558a43829f09Stephen Hines
3748cd745480738c026312931877ecb8ebecb1c64eStephen Hinesifndef USE_MINGW
38331310e1f3f86a795f78e42b3f03558a43829f09Stephen HinesLOCAL_LDLIBS = -ldl
3948cd745480738c026312931877ecb8ebecb1c64eStephen Hinesendif
4048cd745480738c026312931877ecb8ebecb1c64eStephen Hines
41331310e1f3f86a795f78e42b3f03558a43829f09Stephen HinesLOCAL_SRC_FILES := Main.cpp
42331310e1f3f86a795f78e42b3f03558a43829f09Stephen Hines
43331310e1f3f86a795f78e42b3f03558a43829f09Stephen Hinesinclude $(LIBBCC_HOST_BUILD_MK)
44331310e1f3f86a795f78e42b3f03558a43829f09Stephen Hinesinclude $(LLVM_HOST_BUILD_MK)
45331310e1f3f86a795f78e42b3f03558a43829f09Stephen Hinesinclude $(BUILD_HOST_EXECUTABLE)
463059d3ffe3fc41017912c34c7be19f25796ff93aStephen Hines
473059d3ffe3fc41017912c34c7be19f25796ff93aStephen Hinesendif  # Don't build for PDK or unbundled branches
48