Carl Shapiro | 105a9d2 | 2010-04-13 17:53:26 -0700 | [diff] [blame^] | 1 | # Only use this on the device or emulator. |
| 2 | ifneq ($(TARGET_SIMULATOR),true) |
| 3 | |
Shih-wei Liao | 77ed614 | 2010-04-07 12:21:42 -0700 | [diff] [blame] | 4 | LOCAL_PATH := $(call my-dir) |
| 5 | LLVM_ROOT_PATH := external/llvm/llvm |
| 6 | |
| 7 | # Shared library for target |
| 8 | # ======================================================== |
| 9 | include $(CLEAR_VARS) |
| 10 | LOCAL_PRELINK_MODULE := false |
| 11 | LOCAL_MODULE := libbcc |
| 12 | LOCAL_SRC_FILES := \ |
| 13 | bcc.cpp \ |
| 14 | bcc_runtime.c \ |
| 15 | runtime/lib/arm/adddf3vfp.S \ |
| 16 | runtime/lib/arm/addsf3vfp.S \ |
| 17 | runtime/lib/arm/divdf3vfp.S \ |
| 18 | runtime/lib/arm/divsf3vfp.S \ |
| 19 | runtime/lib/arm/eqdf2vfp.S \ |
| 20 | runtime/lib/arm/eqsf2vfp.S \ |
| 21 | runtime/lib/arm/extendsfdf2vfp.S \ |
| 22 | runtime/lib/arm/fixdfsivfp.S \ |
| 23 | runtime/lib/arm/fixsfsivfp.S \ |
| 24 | runtime/lib/arm/fixunsdfsivfp.S \ |
| 25 | runtime/lib/arm/fixunssfsivfp.S \ |
| 26 | runtime/lib/arm/floatsidfvfp.S \ |
| 27 | runtime/lib/arm/floatsisfvfp.S \ |
| 28 | runtime/lib/arm/floatunssidfvfp.S \ |
| 29 | runtime/lib/arm/floatunssisfvfp.S \ |
| 30 | runtime/lib/arm/gedf2vfp.S \ |
| 31 | runtime/lib/arm/gesf2vfp.S \ |
| 32 | runtime/lib/arm/gtdf2vfp.S \ |
| 33 | runtime/lib/arm/gtsf2vfp.S \ |
| 34 | runtime/lib/arm/ledf2vfp.S \ |
| 35 | runtime/lib/arm/lesf2vfp.S \ |
| 36 | runtime/lib/arm/ltdf2vfp.S \ |
| 37 | runtime/lib/arm/ltsf2vfp.S \ |
| 38 | runtime/lib/arm/muldf3vfp.S \ |
| 39 | runtime/lib/arm/mulsf3vfp.S \ |
| 40 | runtime/lib/arm/nedf2vfp.S \ |
| 41 | runtime/lib/arm/negdf2vfp.S \ |
| 42 | runtime/lib/arm/negsf2vfp.S \ |
| 43 | runtime/lib/arm/nesf2vfp.S \ |
| 44 | runtime/lib/arm/subdf3vfp.S \ |
| 45 | runtime/lib/arm/subsf3vfp.S \ |
| 46 | runtime/lib/arm/truncdfsf2vfp.S \ |
| 47 | runtime/lib/arm/unorddf2vfp.S \ |
| 48 | runtime/lib/arm/unordsf2vfp.S #\ |
| 49 | # disassembler/arm-dis.c \ |
| 50 | # disassembler/dis-asm.c |
| 51 | |
| 52 | LOCAL_STATIC_LIBRARIES := \ |
| 53 | libLLVMARMCodeGen \ |
| 54 | libLLVMARMInfo \ |
| 55 | libLLVMBitReader \ |
| 56 | libLLVMSelectionDAG \ |
| 57 | libLLVMAsmPrinter \ |
| 58 | libLLVMCodeGen \ |
| 59 | libLLVMJIT \ |
| 60 | libLLVMTarget \ |
| 61 | libLLVMMC \ |
| 62 | libLLVMScalarOpts \ |
| 63 | libLLVMTransformUtils \ |
| 64 | libLLVMCore \ |
| 65 | libLLVMSupport \ |
| 66 | libLLVMSystem \ |
| 67 | libLLVMAnalysis |
| 68 | |
| 69 | LOCAL_SHARED_LIBRARIES := libdl libcutils libstlport |
| 70 | |
| 71 | LOCAL_C_INCLUDES := \ |
| 72 | $(LOCAL_PATH)/include $(LOCAL_PATH)/disassembler |
| 73 | |
| 74 | #LOCAL_CFLAGS := -DUSE_DISASSEMBLER |
| 75 | |
| 76 | include $(LLVM_ROOT_PATH)/llvm-device-build.mk |
| 77 | include $(BUILD_SHARED_LIBRARY) |
| 78 | |
| 79 | # Shared library for host |
| 80 | # ======================================================== |
| 81 | include $(CLEAR_VARS) |
| 82 | |
| 83 | LOCAL_MODULE := libbcc |
| 84 | LOCAL_SRC_FILES := bcc.cpp bcc_runtime.c |
| 85 | |
| 86 | LOCAL_STATIC_LIBRARIES := \ |
| 87 | libcutils \ |
| 88 | libLLVMX86CodeGen \ |
| 89 | libLLVMX86Info \ |
| 90 | libLLVMBitReader \ |
| 91 | libLLVMSelectionDAG \ |
| 92 | libLLVMAsmPrinter \ |
| 93 | libLLVMCodeGen \ |
| 94 | libLLVMJIT \ |
| 95 | libLLVMTarget \ |
| 96 | libLLVMMC \ |
| 97 | libLLVMScalarOpts \ |
| 98 | libLLVMTransformUtils \ |
| 99 | libLLVMCore \ |
| 100 | libLLVMSupport \ |
| 101 | libLLVMSystem \ |
| 102 | libLLVMAnalysis |
| 103 | |
| 104 | LOCAL_LDLIBS := -ldl -lpthread |
| 105 | |
| 106 | LOCAL_C_INCLUDES := \ |
| 107 | $(LOCAL_PATH)/include |
| 108 | |
| 109 | include $(LLVM_ROOT_PATH)/llvm-host-build.mk |
| 110 | include $(BUILD_HOST_SHARED_LIBRARY) |
| 111 | |
| 112 | # Build children |
| 113 | # ======================================================== |
| 114 | |
| 115 | include $(call all-makefiles-under,$(LOCAL_PATH)) |
Carl Shapiro | 105a9d2 | 2010-04-13 17:53:26 -0700 | [diff] [blame^] | 116 | |
| 117 | endif |