Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 1 | # |
Stephen Hines | 2f6a493 | 2012-05-03 12:27:13 -0700 | [diff] [blame] | 2 | # Copyright (C) 2011 The Android Open Source Project |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +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 | # |
| 17 | |
| 18 | LOCAL_PATH := $(call my-dir) |
Stephen Hines | b8ef690 | 2012-05-03 12:27:24 -0700 | [diff] [blame] | 19 | include $(LOCAL_PATH)/../../libbcc-config.mk |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 20 | |
Stephen Hines | 2f6a493 | 2012-05-03 12:27:13 -0700 | [diff] [blame] | 21 | ifeq ($(libbcc_USE_DISASSEMBLER),1) |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 22 | |
| 23 | #===================================================================== |
Stephen Hines | 2f6a493 | 2012-05-03 12:27:13 -0700 | [diff] [blame] | 24 | # Common: libbccDisassembler |
| 25 | #===================================================================== |
| 26 | |
| 27 | libbcc_disassembler_SRC_FILES := \ |
| 28 | Disassembler.cpp |
| 29 | |
| 30 | |
| 31 | #===================================================================== |
| 32 | # Device Static Library: libbccDisassembler |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 33 | #===================================================================== |
| 34 | |
| 35 | include $(CLEAR_VARS) |
| 36 | |
Stephen Hines | 2f6a493 | 2012-05-03 12:27:13 -0700 | [diff] [blame] | 37 | LOCAL_MODULE := libbccDisassembler |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 38 | LOCAL_MODULE_TAGS := optional |
| 39 | LOCAL_MODULE_CLASS := STATIC_LIBRARIES |
Stephen Hines | b8ef690 | 2012-05-03 12:27:24 -0700 | [diff] [blame] | 40 | LOCAL_CFLAGS += $(libbcc_CFLAGS) |
| 41 | LOCAL_C_INCLUDES := $(libbcc_C_INCLUDES) |
Stephen Hines | 2f6a493 | 2012-05-03 12:27:13 -0700 | [diff] [blame] | 42 | LOCAL_SRC_FILES := $(libbcc_disassembler_SRC_FILES) |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 43 | |
Stephen Hines | b8ef690 | 2012-05-03 12:27:24 -0700 | [diff] [blame] | 44 | include $(LIBBCC_ROOT_PATH)/libbcc-gen-config-from-mk.mk |
| 45 | include $(LIBBCC_ROOT_PATH)/libbcc-build-rules.mk |
| 46 | include $(LLVM_ROOT_PATH)/llvm-device-build.mk |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 47 | include $(BUILD_STATIC_LIBRARY) |
| 48 | |
| 49 | |
| 50 | #===================================================================== |
Stephen Hines | 2f6a493 | 2012-05-03 12:27:13 -0700 | [diff] [blame] | 51 | # Host Static Library: libbccDisassembler |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 52 | #===================================================================== |
| 53 | |
| 54 | include $(CLEAR_VARS) |
| 55 | |
Stephen Hines | 2f6a493 | 2012-05-03 12:27:13 -0700 | [diff] [blame] | 56 | LOCAL_MODULE := libbccDisassembler |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 57 | LOCAL_MODULE_TAGS := optional |
| 58 | LOCAL_MODULE_CLASS := STATIC_LIBRARIES |
Stephen Hines | 2f6a493 | 2012-05-03 12:27:13 -0700 | [diff] [blame] | 59 | LOCAL_IS_HOST_MODULE := true |
Logan Chien | 6700527 | 2011-07-14 19:51:54 +0800 | [diff] [blame] | 60 | |
Stephen Hines | b8ef690 | 2012-05-03 12:27:24 -0700 | [diff] [blame] | 61 | LOCAL_CFLAGS += $(libbcc_CFLAGS) |
| 62 | LOCAL_CFLAGS += -D__HOST__ |
| 63 | LOCAL_C_INCLUDES := $(libbcc_C_INCLUDES) |
| 64 | |
Stephen Hines | 2f6a493 | 2012-05-03 12:27:13 -0700 | [diff] [blame] | 65 | LOCAL_SRC_FILES := $(libbcc_disassembler_SRC_FILES) |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 66 | |
Stephen Hines | b8ef690 | 2012-05-03 12:27:24 -0700 | [diff] [blame] | 67 | include $(LIBBCC_ROOT_PATH)/libbcc-gen-config-from-mk.mk |
| 68 | include $(LIBBCC_ROOT_PATH)/libbcc-build-rules.mk |
| 69 | include $(LLVM_ROOT_PATH)/llvm-host-build.mk |
Logan Chien | 7439685 | 2011-07-12 15:50:26 +0800 | [diff] [blame] | 70 | include $(BUILD_HOST_STATIC_LIBRARY) |
Stephen Hines | 2f6a493 | 2012-05-03 12:27:13 -0700 | [diff] [blame] | 71 | |
| 72 | endif # $(libbcc_USE_DISASSEMBLER) |