blob: 30a63ca84cfcaa350cffff1b5d638b72a13c9e4e [file] [log] [blame]
Carl Shapiro7b216702011-06-17 15:09:26 -07001#
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
Carl Shapiro9bf84fd2011-06-17 17:05:25 -070017LOCAL_CPP_EXTENSION := .cc
18
Carl Shapiro1fb86202011-06-27 17:43:13 -070019LOCAL_CFLAGS := \
20 -O0 \
21 -ggdb3 \
22 -Wall \
23 -Werror \
24 -Wextra \
25 -Wno-unused-parameter \
Carl Shapiro1fb86202011-06-27 17:43:13 -070026 -Wstrict-aliasing=2 \
27 -fno-align-jumps \
28 -fstrict-aliasing
29
30ifeq ($(TARGET_ARCH),arm)
31LOCAL_CFLAGS +=
32endif
33
34ifeq ($(TARGET_ARCH),x86)
35LOCAL_CFLAGS +=
36endif
37
Carl Shapiro9bf84fd2011-06-17 17:05:25 -070038AEXEC_LOCAL_SRC_FILES := \
39 src/main.cc
40
Carl Shapiro7b216702011-06-17 15:09:26 -070041LIBART_LOCAL_SRC_FILES := \
Carl Shapiroa5d5cfd2011-06-21 12:46:59 -070042 src/assembler.cc \
Carl Shapiro80d4dde2011-06-28 16:24:07 -070043 src/base64.cc \
Carl Shapiro0e5d75d2011-07-06 18:28:37 -070044 src/class_linker.cc \
Carl Shapiro1fb86202011-06-27 17:43:13 -070045 src/dex_file.cc \
Carl Shapiro12eb78e2011-06-24 14:51:06 -070046 src/dex_instruction.cc \
Carl Shapiro0e5d75d2011-07-06 18:28:37 -070047 src/dex_verifier.cc \
Carl Shapiro1fb86202011-06-27 17:43:13 -070048 src/memory_region.cc \
Carl Shapiro3ee755d2011-06-28 12:11:04 -070049 src/object.cc \
Carl Shapiro1fb86202011-06-27 17:43:13 -070050 src/raw_dex_file.cc \
Carl Shapirod4e48fd2011-06-30 18:53:29 -070051 src/runtime.cc \
Carl Shapirob5573532011-07-12 18:22:59 -070052 src/stringpiece.cc \
53 src/thread.cc
Carl Shapiroa5d5cfd2011-06-21 12:46:59 -070054
55ifeq ($(LIBART_TARGET_ARCH),arm)
56LIBART_LOCAL_SRC_FILES += \
57 src/assembler_arm.cc
58endif
59
60ifeq ($(LIBART_TARGET_ARCH),x86)
61LIBART_LOCAL_SRC_FILES += \
62 src/assembler_x86.cc
63endif
Jesse Wilsonc981ace2011-06-22 14:17:14 -070064
Carl Shapiro12eb78e2011-06-24 14:51:06 -070065TEST_LOCAL_SRC_FILES := \
Carl Shapiro0e5d75d2011-07-06 18:28:37 -070066 src/class_linker_test.cc \
Carl Shapiro1fb86202011-06-27 17:43:13 -070067 src/dex_file_test.cc \
68 src/dex_instruction_visitor_test.cc \
Carl Shapiro894d0fa2011-06-30 14:48:49 -070069 src/object_test.cc \
Carl Shapiro1fb86202011-06-27 17:43:13 -070070 src/raw_dex_file_test.cc
Jesse Wilsonc981ace2011-06-22 14:17:14 -070071
Carl Shapiro008e4122011-06-23 17:27:46 -070072ifeq ($(TEST_TARGET_ARCH),arm)
73TEST_LOCAL_SRC_FILES +=
74endif
75
76ifeq ($(TEST_TARGET_ARCH),x86)
77TEST_LOCAL_SRC_FILES += \
78 src/assembler_x86_test.cc
79endif