blob: 343cd4ac7ba484980c038ac93131868faf6ee4b4 [file] [log] [blame]
Zonr Chang932648d2010-10-13 22:23:56 +08001#
2# Copyright (C) 2010 The Android Open Source Project
3#
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
24
25LOCAL_SRC_FILES:= \
26 main.cpp
27
28LOCAL_SHARED_LIBRARIES := \
Zonr Chang932648d2010-10-13 22:23:56 +080029 libbcc
Shih-wei Liao77ed6142010-04-07 12:21:42 -070030
31LOCAL_C_INCLUDES := \
32 $(LOCAL_PATH)/../include
33
Zonr Chang932648d2010-10-13 22:23:56 +080034LOCAL_MODULE_TAGS := tests
Shih-wei Liao77ed6142010-04-07 12:21:42 -070035
Shih-wei Liaoec5f1ec2010-09-20 16:22:24 -070036LOCAL_LDLIBS = -ldl
37
Shih-wei Liao77ed6142010-04-07 12:21:42 -070038include $(BUILD_HOST_EXECUTABLE)
39
40# Executable for target
41# ========================================================
42include $(CLEAR_VARS)
43
44LOCAL_MODULE:= bcc
45
46LOCAL_SRC_FILES:= \
47 main.cpp \
Zonr Chang932648d2010-10-13 22:23:56 +080048 disassem.cpp
Shih-wei Liao77ed6142010-04-07 12:21:42 -070049
50LOCAL_SHARED_LIBRARIES := \
Zonr Chang932648d2010-10-13 22:23:56 +080051 libbcc \
52 libdl
Shih-wei Liao77ed6142010-04-07 12:21:42 -070053
54LOCAL_C_INCLUDES := \
55 $(LOCAL_PATH)/../include
56
Zonr Chang932648d2010-10-13 22:23:56 +080057LOCAL_MODULE_TAGS := tests
Shih-wei Liao77ed6142010-04-07 12:21:42 -070058
59include $(BUILD_EXECUTABLE)