Zonr Chang | 932648d | 2010-10-13 22:23:56 +0800 | [diff] [blame] | 1 | # |
| 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 Liao | 77ed614 | 2010-04-07 12:21:42 -0700 | [diff] [blame] | 17 | LOCAL_PATH := $(call my-dir) |
| 18 | |
| 19 | # Executable for host |
| 20 | # ======================================================== |
| 21 | include $(CLEAR_VARS) |
| 22 | |
| 23 | LOCAL_MODULE := bcc |
| 24 | |
| 25 | LOCAL_SRC_FILES:= \ |
| 26 | main.cpp |
| 27 | |
| 28 | LOCAL_SHARED_LIBRARIES := \ |
Zonr Chang | 932648d | 2010-10-13 22:23:56 +0800 | [diff] [blame] | 29 | libbcc |
Shih-wei Liao | 77ed614 | 2010-04-07 12:21:42 -0700 | [diff] [blame] | 30 | |
| 31 | LOCAL_C_INCLUDES := \ |
| 32 | $(LOCAL_PATH)/../include |
| 33 | |
Zonr Chang | 932648d | 2010-10-13 22:23:56 +0800 | [diff] [blame] | 34 | LOCAL_MODULE_TAGS := tests |
Shih-wei Liao | 77ed614 | 2010-04-07 12:21:42 -0700 | [diff] [blame] | 35 | |
Shih-wei Liao | ec5f1ec | 2010-09-20 16:22:24 -0700 | [diff] [blame] | 36 | LOCAL_LDLIBS = -ldl |
| 37 | |
Shih-wei Liao | 77ed614 | 2010-04-07 12:21:42 -0700 | [diff] [blame] | 38 | include $(BUILD_HOST_EXECUTABLE) |
| 39 | |
| 40 | # Executable for target |
| 41 | # ======================================================== |
| 42 | include $(CLEAR_VARS) |
| 43 | |
| 44 | LOCAL_MODULE:= bcc |
| 45 | |
| 46 | LOCAL_SRC_FILES:= \ |
| 47 | main.cpp \ |
Zonr Chang | 932648d | 2010-10-13 22:23:56 +0800 | [diff] [blame] | 48 | disassem.cpp |
Shih-wei Liao | 77ed614 | 2010-04-07 12:21:42 -0700 | [diff] [blame] | 49 | |
| 50 | LOCAL_SHARED_LIBRARIES := \ |
Zonr Chang | 932648d | 2010-10-13 22:23:56 +0800 | [diff] [blame] | 51 | libbcc \ |
| 52 | libdl |
Shih-wei Liao | 77ed614 | 2010-04-07 12:21:42 -0700 | [diff] [blame] | 53 | |
| 54 | LOCAL_C_INCLUDES := \ |
| 55 | $(LOCAL_PATH)/../include |
| 56 | |
Zonr Chang | 932648d | 2010-10-13 22:23:56 +0800 | [diff] [blame] | 57 | LOCAL_MODULE_TAGS := tests |
Shih-wei Liao | 77ed614 | 2010-04-07 12:21:42 -0700 | [diff] [blame] | 58 | |
| 59 | include $(BUILD_EXECUTABLE) |