blob: 3231228caf0a608ea0fda4f1feb9de567dc749af [file] [log] [blame]
Zonr Chang932648d2010-10-13 22:23:56 +08001#
Stephen Hinesb8ef6902012-05-03 12:27:24 -07002# Copyright (C) 2010 The Android Open Source Project
Zonr Chang932648d2010-10-13 22:23:56 +08003#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
Shih-wei Liao77ed6142010-04-07 12:21:42 -070017LOCAL_PATH := $(call my-dir)
18
19# Executable for host
20# ========================================================
21include $(CLEAR_VARS)
22
23LOCAL_MODULE := bcc
Shih-wei Liao77ed6142010-04-07 12:21:42 -070024
Stephen Hinesb8ef6902012-05-03 12:27:24 -070025LOCAL_SRC_FILES := \
26 main.cpp
27
28LOCAL_SHARED_LIBRARIES := \
29 libbcc
30
31LOCAL_C_INCLUDES := \
32 $(LOCAL_PATH)/../../include
33
Shih-wei Liao77ed6142010-04-07 12:21:42 -070034LOCAL_MODULE_TAGS := tests eng
Zonr Changfa52e202012-04-12 15:38:42 +080035
Shih-wei Liao59a24ea2012-05-02 04:55:45 -070036# The definition of those functions in libLLVMSupport may elude libbcc due to linker.
37# Should include libLLVMSupport since bcc references some functions within it.
38LOCAL_STATIC_LIBRARIES := libLLVMSupport
Zonr Changfa52e202012-04-12 15:38:42 +080039LOCAL_SHARED_LIBRARIES := libbcc
Shih-wei Liaoec5f1ec2010-09-20 16:22:24 -070040LOCAL_LDLIBS = -ldl
41
Stephen Hinesb8ef6902012-05-03 12:27:24 -070042LOCAL_CFLAGS += -D__HOST__ -Wall -Werror
43
Shih-wei Liao77ed6142010-04-07 12:21:42 -070044include $(BUILD_HOST_EXECUTABLE)
45
46# Executable for target
47# ========================================================
48include $(CLEAR_VARS)
49
Loganf340bf72011-01-14 17:51:40 +080050LOCAL_MODULE := bcc
Shih-wei Liao77ed6142010-04-07 12:21:42 -070051
Stephen Hinesb8ef6902012-05-03 12:27:24 -070052LOCAL_SRC_FILES := \
53 main.cpp
Shih-wei Liao77ed6142010-04-07 12:21:42 -070054
Stephen Hines3fb139a2012-05-03 12:25:46 -070055LOCAL_SHARED_LIBRARIES := libdl libstlport libbcinfo libbcc
Shih-wei Liao77ed6142010-04-07 12:21:42 -070056
Stephen Hinesb8ef6902012-05-03 12:27:24 -070057LOCAL_C_INCLUDES := \
58 $(LOCAL_PATH)/../../include
59
60LOCAL_MODULE_TAGS := optional
61
Shih-wei Liao9d9d6bd2011-10-19 01:34:29 -070062include external/stlport/libstlport.mk
Shih-wei Liao77ed6142010-04-07 12:21:42 -070063include $(BUILD_EXECUTABLE)