Zonr Chang | 932648d | 2010-10-13 22:23:56 +0800 | [diff] [blame] | 1 | # |
Stephen Hines | b8ef690 | 2012-05-03 12:27:24 -0700 | [diff] [blame] | 2 | # Copyright (C) 2010 The Android Open Source Project |
Zonr Chang | 932648d | 2010-10-13 22:23:56 +0800 | [diff] [blame] | 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 |
Shih-wei Liao | 77ed614 | 2010-04-07 12:21:42 -0700 | [diff] [blame] | 24 | |
Stephen Hines | b8ef690 | 2012-05-03 12:27:24 -0700 | [diff] [blame] | 25 | LOCAL_SRC_FILES := \ |
| 26 | main.cpp |
| 27 | |
| 28 | LOCAL_SHARED_LIBRARIES := \ |
| 29 | libbcc |
| 30 | |
| 31 | LOCAL_C_INCLUDES := \ |
| 32 | $(LOCAL_PATH)/../../include |
| 33 | |
Shih-wei Liao | 77ed614 | 2010-04-07 12:21:42 -0700 | [diff] [blame] | 34 | LOCAL_MODULE_TAGS := tests eng |
Zonr Chang | fa52e20 | 2012-04-12 15:38:42 +0800 | [diff] [blame] | 35 | |
Shih-wei Liao | 59a24ea | 2012-05-02 04:55:45 -0700 | [diff] [blame] | 36 | # The definition of those functions in libLLVMSupport may elude libbcc due to linker. |
| 37 | # Should include libLLVMSupport since bcc references some functions within it. |
| 38 | LOCAL_STATIC_LIBRARIES := libLLVMSupport |
Zonr Chang | fa52e20 | 2012-04-12 15:38:42 +0800 | [diff] [blame] | 39 | LOCAL_SHARED_LIBRARIES := libbcc |
Shih-wei Liao | ec5f1ec | 2010-09-20 16:22:24 -0700 | [diff] [blame] | 40 | LOCAL_LDLIBS = -ldl |
| 41 | |
Stephen Hines | b8ef690 | 2012-05-03 12:27:24 -0700 | [diff] [blame] | 42 | LOCAL_CFLAGS += -D__HOST__ -Wall -Werror |
| 43 | |
Shih-wei Liao | 77ed614 | 2010-04-07 12:21:42 -0700 | [diff] [blame] | 44 | include $(BUILD_HOST_EXECUTABLE) |
| 45 | |
| 46 | # Executable for target |
| 47 | # ======================================================== |
| 48 | include $(CLEAR_VARS) |
| 49 | |
Logan | f340bf7 | 2011-01-14 17:51:40 +0800 | [diff] [blame] | 50 | LOCAL_MODULE := bcc |
Shih-wei Liao | 77ed614 | 2010-04-07 12:21:42 -0700 | [diff] [blame] | 51 | |
Stephen Hines | b8ef690 | 2012-05-03 12:27:24 -0700 | [diff] [blame] | 52 | LOCAL_SRC_FILES := \ |
| 53 | main.cpp |
Shih-wei Liao | 77ed614 | 2010-04-07 12:21:42 -0700 | [diff] [blame] | 54 | |
Stephen Hines | 3fb139a | 2012-05-03 12:25:46 -0700 | [diff] [blame] | 55 | LOCAL_SHARED_LIBRARIES := libdl libstlport libbcinfo libbcc |
Shih-wei Liao | 77ed614 | 2010-04-07 12:21:42 -0700 | [diff] [blame] | 56 | |
Stephen Hines | b8ef690 | 2012-05-03 12:27:24 -0700 | [diff] [blame] | 57 | LOCAL_C_INCLUDES := \ |
| 58 | $(LOCAL_PATH)/../../include |
| 59 | |
| 60 | LOCAL_MODULE_TAGS := optional |
| 61 | |
Shih-wei Liao | 9d9d6bd | 2011-10-19 01:34:29 -0700 | [diff] [blame] | 62 | include external/stlport/libstlport.mk |
Shih-wei Liao | 77ed614 | 2010-04-07 12:21:42 -0700 | [diff] [blame] | 63 | include $(BUILD_EXECUTABLE) |