blob: 46fa2a257e0a4153dec02bee443dbc807cbab8f5 [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
Brian Carlstromcdc8de42011-07-19 14:23:17 -070017ART_CPP_EXTENSION := .cc
Carl Shapiro9bf84fd2011-06-17 17:05:25 -070018
Brian Carlstromcdc8de42011-07-19 14:23:17 -070019ART_CFLAGS := \
Carl Shapiro1fb86202011-06-27 17:43:13 -070020 -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
Brian Carlstrom934486c2011-07-12 23:42:50 -070030AEXEC_SRC_FILES := \
Carl Shapiro9bf84fd2011-06-17 17:05:25 -070031 src/main.cc
32
Brian Carlstrom934486c2011-07-12 23:42:50 -070033LIBART_COMMON_SRC_FILES := \
Carl Shapiroa5d5cfd2011-06-21 12:46:59 -070034 src/assembler.cc \
Carl Shapiro0e5d75d2011-07-06 18:28:37 -070035 src/class_linker.cc \
Carl Shapiro1fb86202011-06-27 17:43:13 -070036 src/dex_file.cc \
Carl Shapiro12eb78e2011-06-24 14:51:06 -070037 src/dex_instruction.cc \
Carl Shapiro0e5d75d2011-07-06 18:28:37 -070038 src/dex_verifier.cc \
Carl Shapiro1fb86202011-06-27 17:43:13 -070039 src/memory_region.cc \
Carl Shapiro3ee755d2011-06-28 12:11:04 -070040 src/object.cc \
Carl Shapiro1fb86202011-06-27 17:43:13 -070041 src/raw_dex_file.cc \
Carl Shapirod4e48fd2011-06-30 18:53:29 -070042 src/runtime.cc \
Carl Shapirob5573532011-07-12 18:22:59 -070043 src/stringpiece.cc \
Elliott Hugheseb4f6142011-07-15 17:43:51 -070044 src/stringprintf.cc \
Carl Shapirob5573532011-07-12 18:22:59 -070045 src/thread.cc
Carl Shapiroa5d5cfd2011-06-21 12:46:59 -070046
Brian Carlstrom934486c2011-07-12 23:42:50 -070047LIBART_TARGET_SRC_FILES := \
48 $(LIBART_COMMON_SRC_FILES) \
Elliott Hugheseb4f6142011-07-15 17:43:51 -070049 src/assembler_arm.cc \
Elliott Hughesffe67362011-07-17 12:09:27 -070050 src/logging_android.cc \
51 src/runtime_android.cc
Carl Shapiroa5d5cfd2011-06-21 12:46:59 -070052
Brian Carlstrom934486c2011-07-12 23:42:50 -070053LIBART_HOST_SRC_FILES := \
54 $(LIBART_COMMON_SRC_FILES) \
Elliott Hugheseb4f6142011-07-15 17:43:51 -070055 src/assembler_x86.cc \
Elliott Hughesffe67362011-07-17 12:09:27 -070056 src/logging_linux.cc \
57 src/runtime_linux.cc
Jesse Wilsonc981ace2011-06-22 14:17:14 -070058
Brian Carlstromcdc8de42011-07-19 14:23:17 -070059LIBARTTEST_COMMON_SRC_FILES := \
60 src/base64.cc
61
Brian Carlstrom934486c2011-07-12 23:42:50 -070062TEST_COMMON_SRC_FILES := \
Carl Shapiro0e5d75d2011-07-06 18:28:37 -070063 src/class_linker_test.cc \
Carl Shapiro1fb86202011-06-27 17:43:13 -070064 src/dex_file_test.cc \
65 src/dex_instruction_visitor_test.cc \
Carl Shapiro894d0fa2011-06-30 14:48:49 -070066 src/object_test.cc \
Carl Shapiro1fb86202011-06-27 17:43:13 -070067 src/raw_dex_file_test.cc
Jesse Wilsonc981ace2011-06-22 14:17:14 -070068
Brian Carlstrom934486c2011-07-12 23:42:50 -070069TEST_TARGET_SRC_FILES := \
70 $(TEST_COMMON_SRC_FILES)
Carl Shapiro008e4122011-06-23 17:27:46 -070071
Brian Carlstrom934486c2011-07-12 23:42:50 -070072TEST_HOST_SRC_FILES := \
73 $(TEST_COMMON_SRC_FILES) \
Carl Shapiro008e4122011-06-23 17:27:46 -070074 src/assembler_x86_test.cc