blob: 5bb20fac5a4df431c8f6d8e540c59163fc8731c8 [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 \
26 -Wno-deprecated \
27 -Wstrict-aliasing=2 \
28 -fno-align-jumps \
29 -fstrict-aliasing
30
31ifeq ($(TARGET_ARCH),arm)
32LOCAL_CFLAGS +=
33endif
34
35ifeq ($(TARGET_ARCH),x86)
36LOCAL_CFLAGS +=
37endif
38
Carl Shapiro9bf84fd2011-06-17 17:05:25 -070039AEXEC_LOCAL_SRC_FILES := \
40 src/main.cc
41
Carl Shapiro7b216702011-06-17 15:09:26 -070042LIBART_LOCAL_SRC_FILES := \
Carl Shapiroa5d5cfd2011-06-21 12:46:59 -070043 src/assembler.cc \
Carl Shapiro1fb86202011-06-27 17:43:13 -070044 src/dex_file.cc \
Carl Shapiro12eb78e2011-06-24 14:51:06 -070045 src/dex_instruction.cc \
Carl Shapiro1fb86202011-06-27 17:43:13 -070046 src/memory_region.cc \
Carl Shapiro3ee755d2011-06-28 12:11:04 -070047 src/object.cc \
Carl Shapiro1fb86202011-06-27 17:43:13 -070048 src/raw_dex_file.cc \
49 src/runtime.cc
Carl Shapiroa5d5cfd2011-06-21 12:46:59 -070050
51ifeq ($(LIBART_TARGET_ARCH),arm)
52LIBART_LOCAL_SRC_FILES += \
53 src/assembler_arm.cc
54endif
55
56ifeq ($(LIBART_TARGET_ARCH),x86)
57LIBART_LOCAL_SRC_FILES += \
58 src/assembler_x86.cc
59endif
Jesse Wilsonc981ace2011-06-22 14:17:14 -070060
Carl Shapiro12eb78e2011-06-24 14:51:06 -070061TEST_LOCAL_SRC_FILES := \
Carl Shapiro1fb86202011-06-27 17:43:13 -070062 src/dex_file_test.cc \
63 src/dex_instruction_visitor_test.cc \
64 src/raw_dex_file_test.cc
Jesse Wilsonc981ace2011-06-22 14:17:14 -070065
Carl Shapiro008e4122011-06-23 17:27:46 -070066ifeq ($(TEST_TARGET_ARCH),arm)
67TEST_LOCAL_SRC_FILES +=
68endif
69
70ifeq ($(TEST_TARGET_ARCH),x86)
71TEST_LOCAL_SRC_FILES += \
72 src/assembler_x86_test.cc
73endif