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 | 284d652 | 2012-04-25 11:18:54 -0700 | [diff] [blame] | 17 | ifeq (darwin,$(BUILD_OS)) |
| 18 | else |
| 19 | |
Shih-wei Liao | 77ed614 | 2010-04-07 12:21:42 -0700 | [diff] [blame] | 20 | LOCAL_PATH := $(call my-dir) |
| 21 | |
| 22 | # Executable for host |
| 23 | # ======================================================== |
| 24 | include $(CLEAR_VARS) |
| 25 | |
| 26 | LOCAL_MODULE := bcc |
Stephen Hines | b8ef690 | 2012-05-03 12:27:24 -0700 | [diff] [blame] | 27 | |
| 28 | LOCAL_SRC_FILES := \ |
| 29 | main.cpp |
| 30 | |
| 31 | LOCAL_SHARED_LIBRARIES := \ |
| 32 | libbcc |
| 33 | |
| 34 | LOCAL_C_INCLUDES := \ |
| 35 | $(LOCAL_PATH)/../../include |
| 36 | |
Daniel Malea | 094881f | 2011-12-14 17:39:16 -0500 | [diff] [blame] | 37 | LOCAL_MODULE_TAGS := tests eng |
Shih-wei Liao | 77ed614 | 2010-04-07 12:21:42 -0700 | [diff] [blame] | 38 | |
Shih-wei Liao | ec5f1ec | 2010-09-20 16:22:24 -0700 | [diff] [blame] | 39 | LOCAL_LDLIBS = -ldl |
| 40 | |
Stephen Hines | b8ef690 | 2012-05-03 12:27:24 -0700 | [diff] [blame] | 41 | LOCAL_CFLAGS += -D__HOST__ -Wall -Werror |
| 42 | |
Shih-wei Liao | 77ed614 | 2010-04-07 12:21:42 -0700 | [diff] [blame] | 43 | include $(BUILD_HOST_EXECUTABLE) |
| 44 | |
| 45 | # Executable for target |
| 46 | # ======================================================== |
| 47 | include $(CLEAR_VARS) |
| 48 | |
Logan | f340bf7 | 2011-01-14 17:51:40 +0800 | [diff] [blame] | 49 | LOCAL_MODULE := bcc |
Shih-wei Liao | 77ed614 | 2010-04-07 12:21:42 -0700 | [diff] [blame] | 50 | |
Stephen Hines | b8ef690 | 2012-05-03 12:27:24 -0700 | [diff] [blame] | 51 | LOCAL_SRC_FILES := \ |
| 52 | main.cpp |
Shih-wei Liao | 77ed614 | 2010-04-07 12:21:42 -0700 | [diff] [blame] | 53 | |
Stephen Hines | 3fb139a | 2012-05-03 12:25:46 -0700 | [diff] [blame] | 54 | LOCAL_SHARED_LIBRARIES := libdl libstlport libbcinfo libbcc |
Shih-wei Liao | 77ed614 | 2010-04-07 12:21:42 -0700 | [diff] [blame] | 55 | |
Stephen Hines | b8ef690 | 2012-05-03 12:27:24 -0700 | [diff] [blame] | 56 | LOCAL_C_INCLUDES := \ |
| 57 | $(LOCAL_PATH)/../../include |
| 58 | |
| 59 | LOCAL_MODULE_TAGS := optional |
| 60 | |
Shih-wei Liao | 9d9d6bd | 2011-10-19 01:34:29 -0700 | [diff] [blame] | 61 | include external/stlport/libstlport.mk |
Shih-wei Liao | 77ed614 | 2010-04-07 12:21:42 -0700 | [diff] [blame] | 62 | include $(BUILD_EXECUTABLE) |
Shih-wei Liao | 284d652 | 2012-04-25 11:18:54 -0700 | [diff] [blame] | 63 | |
| 64 | endif |