Android.common.mk revision c143c55718342519db5398e41dda31422cf16c79
1# 2# Copyright (C) 2011 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 17ART_CPP_EXTENSION := .cc 18 19ART_C_INCLUDES := \ 20 external/gtest/include \ 21 external/icu4c/common \ 22 external/icu4c/i18n \ 23 external/zlib \ 24 art/src \ 25 dalvik/libdex 26 27ART_CFLAGS := \ 28 -O0 \ 29 -ggdb3 \ 30 -Wall \ 31 -Werror \ 32 -Wextra \ 33 -Wno-unused-parameter \ 34 -Wstrict-aliasing=2 \ 35 -fno-align-jumps \ 36 -fstrict-aliasing 37 38AEXEC_SRC_FILES := \ 39 src/main.cc 40 41LIBART_COMMON_SRC_FILES := \ 42 src/assembler.cc \ 43 src/calling_convention.cc \ 44 src/class_linker.cc \ 45 src/dex_cache.cc \ 46 src/dex_file.cc \ 47 src/dex_instruction.cc \ 48 src/dex_verifier.cc \ 49 src/file.cc \ 50 src/file_linux.cc \ 51 src/heap.cc \ 52 src/image.cc \ 53 src/image_writer.cc \ 54 src/indirect_reference_table.cc \ 55 src/intern_table.cc \ 56 src/jni_compiler.cc \ 57 src/jni_internal.cc \ 58 src/mark_stack.cc \ 59 src/mark_sweep.cc \ 60 src/memory_region.cc \ 61 src/mspace.c \ 62 src/object.cc \ 63 src/object_bitmap.cc \ 64 src/offsets.cc \ 65 src/os_linux.cc \ 66 src/reference_table.cc \ 67 src/runtime.cc \ 68 src/space.cc \ 69 src/stringpiece.cc \ 70 src/stringprintf.cc \ 71 src/thread.cc \ 72 src/utils.cc \ 73 src/zip_archive.cc 74 75LIBART_TARGET_SRC_FILES := \ 76 $(LIBART_COMMON_SRC_FILES) \ 77 src/compiler/Utility.cc \ 78 src/compiler/SSATransformation.cc \ 79 src/compiler/Dataflow.cc \ 80 src/compiler/IntermediateRep.cc \ 81 src/compiler/Ralloc.cc \ 82 src/compiler/Frontend.cc \ 83 src/compiler/codegen/RallocUtil.cc \ 84 src/compiler/codegen/arm/Assemble.cc \ 85 src/compiler/codegen/arm/ArchUtility.cc \ 86 src/compiler/codegen/arm/LocalOptimizations.cc \ 87 src/compiler/codegen/arm/ArmRallocUtil.cc \ 88 src/compiler/codegen/arm/armv7-a/Codegen.cc \ 89 src/assembler_arm.cc \ 90 src/calling_convention_arm.cc \ 91 src/jni_internal_arm.cc \ 92 src/logging_android.cc \ 93 src/managed_register_arm.cc \ 94 src/runtime_android.cc \ 95 src/thread_arm.cc 96 97LIBART_HOST_SRC_FILES := \ 98 $(LIBART_COMMON_SRC_FILES) \ 99 src/assembler_x86.cc \ 100 src/calling_convention_x86.cc \ 101 src/jni_internal_x86.cc \ 102 src/logging_linux.cc \ 103 src/managed_register_x86.cc \ 104 src/runtime_linux.cc \ 105 src/thread_x86.cc 106 107LIBARTTEST_COMMON_SRC_FILES := \ 108 src/base64.cc 109 110TEST_COMMON_SRC_FILES := \ 111 src/class_linker_test.cc \ 112 src/dex_cache_test.cc \ 113 src/dex_file_test.cc \ 114 src/dex_instruction_visitor_test.cc \ 115 src/exception_test.cc \ 116 src/file_test.cc \ 117 src/image_test.cc \ 118 src/indirect_reference_table_test.cc \ 119 src/intern_table_test.cc \ 120 src/jni_internal_test.cc.arm \ 121 src/jni_compiler_test.cc.arm \ 122 src/object_test.cc \ 123 src/reference_table_test.cc \ 124 src/runtime_test.cc \ 125 src/space_test.cc \ 126 src/utils_test.cc \ 127 src/zip_archive_test.cc \ 128 src/compiler_test.cc 129 130TEST_TARGET_SRC_FILES := \ 131 $(TEST_COMMON_SRC_FILES) \ 132 src/managed_register_arm_test.cc 133 134TEST_HOST_SRC_FILES := \ 135 $(TEST_COMMON_SRC_FILES) \ 136 src/assembler_x86_test.cc \ 137 src/managed_register_x86_test.cc 138