blob: 414b4d2e0c1683ee2980a975df4140ea95161d8d [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 Liao284d6522012-04-25 11:18:54 -070017ifeq (darwin,$(BUILD_OS))
18else
19
Shih-wei Liao77ed6142010-04-07 12:21:42 -070020LOCAL_PATH := $(call my-dir)
21
22# Executable for host
23# ========================================================
24include $(CLEAR_VARS)
25
26LOCAL_MODULE := bcc
Stephen Hinesb8ef6902012-05-03 12:27:24 -070027
28LOCAL_SRC_FILES := \
29 main.cpp
30
31LOCAL_SHARED_LIBRARIES := \
32 libbcc
33
34LOCAL_C_INCLUDES := \
35 $(LOCAL_PATH)/../../include
36
Daniel Malea094881f2011-12-14 17:39:16 -050037LOCAL_MODULE_TAGS := tests eng
Shih-wei Liao77ed6142010-04-07 12:21:42 -070038
Shih-wei Liaoec5f1ec2010-09-20 16:22:24 -070039LOCAL_LDLIBS = -ldl
40
Stephen Hinesb8ef6902012-05-03 12:27:24 -070041LOCAL_CFLAGS += -D__HOST__ -Wall -Werror
42
Shih-wei Liao77ed6142010-04-07 12:21:42 -070043include $(BUILD_HOST_EXECUTABLE)
44
45# Executable for target
46# ========================================================
47include $(CLEAR_VARS)
48
Loganf340bf72011-01-14 17:51:40 +080049LOCAL_MODULE := bcc
Shih-wei Liao77ed6142010-04-07 12:21:42 -070050
Stephen Hinesb8ef6902012-05-03 12:27:24 -070051LOCAL_SRC_FILES := \
52 main.cpp
Shih-wei Liao77ed6142010-04-07 12:21:42 -070053
Stephen Hines3fb139a2012-05-03 12:25:46 -070054LOCAL_SHARED_LIBRARIES := libdl libstlport libbcinfo libbcc
Shih-wei Liao77ed6142010-04-07 12:21:42 -070055
Stephen Hinesb8ef6902012-05-03 12:27:24 -070056LOCAL_C_INCLUDES := \
57 $(LOCAL_PATH)/../../include
58
59LOCAL_MODULE_TAGS := optional
60
Shih-wei Liao9d9d6bd2011-10-19 01:34:29 -070061include external/stlport/libstlport.mk
Shih-wei Liao77ed6142010-04-07 12:21:42 -070062include $(BUILD_EXECUTABLE)
Shih-wei Liao284d6522012-04-25 11:18:54 -070063
64endif