blob: a351dc70c1dc5bd23f3c152cc039607134da1381 [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
Brian Carlstrom934486c2011-07-12 23:42:50 -070038AEXEC_SRC_FILES := \
Carl Shapiro9bf84fd2011-06-17 17:05:25 -070039 src/main.cc
40
Brian Carlstrom934486c2011-07-12 23:42:50 -070041LIBART_COMMON_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 \
Elliott Hugheseb4f6142011-07-15 17:43:51 -070053 src/stringprintf.cc \
Carl Shapirob5573532011-07-12 18:22:59 -070054 src/thread.cc
Carl Shapiroa5d5cfd2011-06-21 12:46:59 -070055
Brian Carlstrom934486c2011-07-12 23:42:50 -070056LIBART_TARGET_SRC_FILES := \
57 $(LIBART_COMMON_SRC_FILES) \
Elliott Hugheseb4f6142011-07-15 17:43:51 -070058 src/assembler_arm.cc \
Elliott Hughesffe67362011-07-17 12:09:27 -070059 src/logging_android.cc \
60 src/runtime_android.cc
Carl Shapiroa5d5cfd2011-06-21 12:46:59 -070061
Brian Carlstrom934486c2011-07-12 23:42:50 -070062LIBART_HOST_SRC_FILES := \
63 $(LIBART_COMMON_SRC_FILES) \
Elliott Hugheseb4f6142011-07-15 17:43:51 -070064 src/assembler_x86.cc \
Elliott Hughesffe67362011-07-17 12:09:27 -070065 src/logging_linux.cc \
66 src/runtime_linux.cc
Jesse Wilsonc981ace2011-06-22 14:17:14 -070067
Brian Carlstrom934486c2011-07-12 23:42:50 -070068TEST_COMMON_SRC_FILES := \
Carl Shapiro0e5d75d2011-07-06 18:28:37 -070069 src/class_linker_test.cc \
Carl Shapiro1fb86202011-06-27 17:43:13 -070070 src/dex_file_test.cc \
71 src/dex_instruction_visitor_test.cc \
Carl Shapiro894d0fa2011-06-30 14:48:49 -070072 src/object_test.cc \
Carl Shapiro1fb86202011-06-27 17:43:13 -070073 src/raw_dex_file_test.cc
Jesse Wilsonc981ace2011-06-22 14:17:14 -070074
Brian Carlstrom934486c2011-07-12 23:42:50 -070075TEST_TARGET_SRC_FILES := \
76 $(TEST_COMMON_SRC_FILES)
Carl Shapiro008e4122011-06-23 17:27:46 -070077
Brian Carlstrom934486c2011-07-12 23:42:50 -070078TEST_HOST_SRC_FILES := \
79 $(TEST_COMMON_SRC_FILES) \
Carl Shapiro008e4122011-06-23 17:27:46 -070080 src/assembler_x86_test.cc