blob: 4798d639d6f0d5814a1138180b164e73a646e5c0 [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 \
52 src/stringpiece.cc
Carl Shapiroa5d5cfd2011-06-21 12:46:59 -070053
54ifeq ($(LIBART_TARGET_ARCH),arm)
55LIBART_LOCAL_SRC_FILES += \
56 src/assembler_arm.cc
57endif
58
59ifeq ($(LIBART_TARGET_ARCH),x86)
60LIBART_LOCAL_SRC_FILES += \
61 src/assembler_x86.cc
62endif
Jesse Wilsonc981ace2011-06-22 14:17:14 -070063
Carl Shapiro12eb78e2011-06-24 14:51:06 -070064TEST_LOCAL_SRC_FILES := \
Carl Shapiro0e5d75d2011-07-06 18:28:37 -070065 src/class_linker_test.cc \
Carl Shapiro1fb86202011-06-27 17:43:13 -070066 src/dex_file_test.cc \
67 src/dex_instruction_visitor_test.cc \
Carl Shapiro894d0fa2011-06-30 14:48:49 -070068 src/object_test.cc \
Carl Shapiro1fb86202011-06-27 17:43:13 -070069 src/raw_dex_file_test.cc
Jesse Wilsonc981ace2011-06-22 14:17:14 -070070
Carl Shapiro008e4122011-06-23 17:27:46 -070071ifeq ($(TEST_TARGET_ARCH),arm)
72TEST_LOCAL_SRC_FILES +=
73endif
74
75ifeq ($(TEST_TARGET_ARCH),x86)
76TEST_LOCAL_SRC_FILES += \
77 src/assembler_x86_test.cc
78endif